diff options
Diffstat (limited to 'media-sound/moc/moc-2.5.2-r1.ebuild')
-rw-r--r-- | media-sound/moc/moc-2.5.2-r1.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/media-sound/moc/moc-2.5.2-r1.ebuild b/media-sound/moc/moc-2.5.2-r1.ebuild new file mode 100644 index 000000000000..c3a79d27a2c9 --- /dev/null +++ b/media-sound/moc/moc-2.5.2-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_P=${P/_/-} +DESCRIPTION="Music On Console - ncurses interface for playing audio files" +HOMEPAGE="https://moc.daper.net" +SRC_URI="http://ftp.daper.net/pub/soft/moc/stable/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc ppc64 sparc x86" +IUSE="aac alsa +cache curl debug ffmpeg flac jack libsamplerate mad +magic modplug musepack + oss sid sndfile speex timidity tremor +unicode vorbis wavpack" + +RDEPEND=">=dev-libs/libltdl-2:0 + sys-libs/ncurses:0=[unicode?] + aac? ( media-libs/faad2 ) + alsa? ( media-libs/alsa-lib ) + cache? ( >=sys-libs/db-4:= ) + curl? ( net-misc/curl ) + ffmpeg? ( media-video/ffmpeg ) + flac? ( media-libs/flac ) + jack? ( media-sound/jack-audio-connection-kit ) + libsamplerate? ( media-libs/libsamplerate ) + mad? ( media-libs/libmad sys-libs/zlib media-libs/libid3tag ) + magic? ( sys-apps/file ) + modplug? ( media-libs/libmodplug ) + musepack? ( media-sound/musepack-tools media-libs/taglib ) + sid? ( >=media-libs/libsidplay-2 ) + sndfile? ( media-libs/libsndfile ) + speex? ( media-libs/speex ) + timidity? ( media-libs/libtimidity media-sound/timidity++ ) + vorbis? ( + media-libs/libogg + tremor? ( media-libs/tremor ) + !tremor? ( media-libs/libvorbis ) + ) + wavpack? ( media-sound/wavpack )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_configure() { + local myconf=( + $(use_enable debug) + $(use_enable cache) + $(use_with oss) + $(use_with alsa) + $(use_with jack) + $(use_with magic) + $(use_with unicode ncursesw) + $(use_with libsamplerate samplerate) + $(use_with aac) + $(use_with ffmpeg) + $(use_with flac) + $(use_with modplug) + $(use_with mad mp3) + --without-rcc + $(use_with musepack) + $(use_with sid sidplay2) + $(use_with sndfile) + $(use_with speex) + $(use_with timidity) + $(use_with vorbis vorbis $(usex tremor tremor "")) + $(use_with wavpack) + $(use_with curl) + ) + + econf "${myconf[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + +} |