diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2024-10-30 12:54:33 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-10-30 12:54:33 +0100 |
commit | e96418a00ccf7d254f62f9563e26c545b9f3067e (patch) | |
tree | 1ab990784c64244636e706d90fdd63790f85a3be /media-sound/cmus | |
parent | media-sound/qjackctl: bump to 1.0.3 (diff) | |
download | gentoo-e96418a00ccf7d254f62f9563e26c545b9f3067e.tar.gz gentoo-e96418a00ccf7d254f62f9563e26c545b9f3067e.tar.bz2 gentoo-e96418a00ccf7d254f62f9563e26c545b9f3067e.zip |
media-sound/cmus: bump to 2.12.0 + updated homepage
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/cmus')
-rw-r--r-- | media-sound/cmus/Manifest | 1 | ||||
-rw-r--r-- | media-sound/cmus/cmus-2.12.0.ebuild | 151 | ||||
-rw-r--r-- | media-sound/cmus/cmus-9999.ebuild | 2 |
3 files changed, 153 insertions, 1 deletions
diff --git a/media-sound/cmus/Manifest b/media-sound/cmus/Manifest index 843013cdd3c1..13cf42ec0023 100644 --- a/media-sound/cmus/Manifest +++ b/media-sound/cmus/Manifest @@ -1 +1,2 @@ DIST cmus-2.11.0.tar.gz 335367 BLAKE2B 69584b929afcf82e540e8a4382bc3b3ee4a24dc00fe27d0956941ceb0d446395f824068405c52732c4f684d7b32b5436b246cf7b97c73ba9ebbabbb479e2326f SHA512 370c8eea6e67b328befb24d98ef3945fabc65b33d0bb9ae09cedd1c453b18a307061c042b2119f37f3684a4a39b86b3535efaa2c955e58c8e680628ef0a03452 +DIST cmus-2.12.0.tar.gz 348685 BLAKE2B 44cc3acf676faa9deb4496351154b597a6ef079e4fb07b2a316988c2b84d414e61032ddc787f3d8d8b4f117fb2439c0f1012f4bfca5c735116c98fd043a7a045 SHA512 95dc35e76bb220476986470977d4affc3b7d81a4d057057d62d3f8015abb3c24ec371ece8d3d77fd0e59062c9f3b1bd73dd438ace1eadf3ce39aa86b209a7de5 diff --git a/media-sound/cmus/cmus-2.12.0.ebuild b/media-sound/cmus/cmus-2.12.0.ebuild new file mode 100644 index 000000000000..37e6d0242dc9 --- /dev/null +++ b/media-sound/cmus/cmus-2.12.0.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/cmus/cmus.git" + inherit git-r3 +else + SRC_URI="https://github.com/cmus/cmus/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="Ncurses based music player with plugin support for many formats" +HOMEPAGE="https://cmus.github.io/ https://github.com/cmus/cmus" + +S="${WORKDIR}/${P/_/-}" + +LICENSE="GPL-2" +SLOT="0" +IUSE="aac alsa ao cddb cdio debug discid elogind examples ffmpeg +flac jack libsamplerate + +mad mikmod modplug mp4 musepack opus oss pidgin pulseaudio sndio systemd tremor +unicode + +vorbis wavpack" + +# Both CONFIG_TREMOR=y and CONFIG_VORBIS=y are required to link to tremor libs instead of vorbis libs +REQUIRED_USE=" + ?? ( elogind systemd ) + tremor? ( vorbis ) + mp4? ( aac )" # enabling mp4 adds -lfaad + +BDEPEND=" + virtual/pkgconfig +" +DEPEND=" + sys-libs/ncurses:=[unicode(+)?] + aac? ( media-libs/faad2 ) + alsa? ( media-libs/alsa-lib ) + ao? ( media-libs/libao ) + cddb? ( media-libs/libcddb ) + cdio? ( dev-libs/libcdio-paranoia ) + discid? ( media-libs/libdiscid ) + elogind? ( sys-auth/elogind ) + ffmpeg? ( media-video/ffmpeg:= ) + flac? ( media-libs/flac:= ) + jack? ( virtual/jack ) + libsamplerate? ( media-libs/libsamplerate ) + mad? ( media-libs/libmad ) + mikmod? ( media-libs/libmikmod:0 ) + modplug? ( media-libs/libmodplug ) + mp4? ( media-libs/libmp4v2:0 ) + musepack? ( media-sound/musepack-tools ) + opus? ( media-libs/opusfile ) + pulseaudio? ( media-libs/libpulse ) + sndio? ( media-sound/sndio ) + systemd? ( sys-apps/systemd ) + tremor? ( media-libs/tremor ) + !tremor? ( vorbis? ( media-libs/libvorbis ) ) + wavpack? ( media-sound/wavpack ) +" +RDEPEND="${DEPEND} + pidgin? ( + dev-python/dbus-python + net-im/pidgin + ) +" + +DOCS=( AUTHORS README.md ) + +PATCHES=( + "${FILESDIR}/${PN}-2.9.1-atomic.patch" +) + +src_configure() { + my_config() { + local value + use ${1} && value=a || value=n + myconf+=( ${2}=${value} ) + } + + local debuglevel=1 + use debug && debuglevel=2 + local myconf=( + CONFIG_CUE=y + CONFIG_ARTS=n + CONFIG_SUN=n + CONFIG_SNDIO=n + CONFIG_WAVEOUT=n + CONFIG_VTX=n + CONFIG_ROAR=n + ) + + my_config cddb CONFIG_CDDB + my_config cdio CONFIG_CDIO + my_config discid CONFIG_DISCID + my_config flac CONFIG_FLAC + my_config mad CONFIG_MAD + my_config modplug CONFIG_MODPLUG + my_config mikmod CONFIG_MIKMOD + my_config musepack CONFIG_MPC + my_config vorbis CONFIG_VORBIS + my_config tremor CONFIG_TREMOR + my_config opus CONFIG_OPUS + my_config wavpack CONFIG_WAVPACK + my_config mp4 CONFIG_MP4 + my_config aac CONFIG_AAC + my_config ffmpeg CONFIG_FFMPEG + my_config pulseaudio CONFIG_PULSE + my_config alsa CONFIG_ALSA + my_config jack CONFIG_JACK + my_config sndio CONFIG_SNDIO + my_config libsamplerate CONFIG_SAMPLERATE + my_config ao CONFIG_AO + my_config oss CONFIG_OSS + + if use elogind || use systemd; then + myconf+=( CONFIG_MPRIS=a ) + else + myconf+=( CONFIG_MPRIS=n ) + fi + + ./configure prefix="${EPREFIX}"/usr "${myconf[@]}" \ + exampledir="${EPREFIX}"/usr/share/doc/${PF}/examples \ + libdir="${EPREFIX}"/usr/$(get_libdir) DEBUG=${debuglevel} || die +} + +src_compile() { + tc-export_build_env BUILD_CC + emake V=2 \ + CC="$(tc-getCC)" LD="$(tc-getCC)" \ + HOSTCC="${BUILD_CC}" HOSTLD="${BUILD_CC}" \ + HOST_CFLAGS="${BUILD_CFLAGS}" HOST_LDFLAGS="${BUILD_LDFLAGS}" +} + +src_install() { + default + + if ! use examples; then + rm -rf "${ED}"/usr/share/doc/${PF}/examples || die + fi + + insinto /usr/share/zsh/site-functions + doins contrib/_cmus + + newbashcomp contrib/${PN}.bash-completion ${PN} + + if use pidgin; then + newbin contrib/cmus-updatepidgin.py cmus-updatepidgin + fi +} diff --git a/media-sound/cmus/cmus-9999.ebuild b/media-sound/cmus/cmus-9999.ebuild index 78b2cf8d7a3c..37e6d0242dc9 100644 --- a/media-sound/cmus/cmus-9999.ebuild +++ b/media-sound/cmus/cmus-9999.ebuild @@ -14,7 +14,7 @@ else fi DESCRIPTION="Ncurses based music player with plugin support for many formats" -HOMEPAGE="https://cmus.github.io/" +HOMEPAGE="https://cmus.github.io/ https://github.com/cmus/cmus" S="${WORKDIR}/${P/_/-}" |