From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- media-sound/mpd/Manifest | 10 +- media-sound/mpd/mpd-0.21.18-r1.ebuild | 298 ---------------------------------- media-sound/mpd/mpd-0.21.19-r1.ebuild | 298 ---------------------------------- media-sound/mpd/mpd-0.21.20.ebuild | 2 +- media-sound/mpd/mpd-0.21.21.ebuild | 298 ++++++++++++++++++++++++++++++++++ media-sound/mpd/mpd-0.21.22.ebuild | 298 ++++++++++++++++++++++++++++++++++ 6 files changed, 602 insertions(+), 602 deletions(-) delete mode 100644 media-sound/mpd/mpd-0.21.18-r1.ebuild delete mode 100644 media-sound/mpd/mpd-0.21.19-r1.ebuild create mode 100644 media-sound/mpd/mpd-0.21.21.ebuild create mode 100644 media-sound/mpd/mpd-0.21.22.ebuild (limited to 'media-sound/mpd') diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest index 9bafe627f9fc..b6b23a861d38 100644 --- a/media-sound/mpd/Manifest +++ b/media-sound/mpd/Manifest @@ -1,10 +1,10 @@ AUX mpd-0.18.conf.patch 2969 BLAKE2B 6b1e56234cd061cab0f7704889af9f20ee0653d3c20d60eecf3a62ce6c3eb0e6a8c29252ef6e3045a96af6e8cd12d7c27dfbdf8a79fa3ed025258b8c9cb7b05d SHA512 4b646bc5d8fe4c76421f4cb0dbc7894cf9118492662ea1127f90c48f84760a1167988692c2b63f49182afcd46c578de7203356bbf9dd47787f9129f7c3dbf4a5 AUX mpd-0.21.1.logrotate 120 BLAKE2B 2111ba897a77a766adf0827c4da7132d5315c7c13ba8e29d582f1030a902492945b0bad6781bbf551e83afd38b957e953215674c669aa2745c1dfa004b20d4b6 SHA512 4a610d4805c32989673d6295fdf4290dc29b11e5b5f3baa2aa957ef9334566f13fa1937e70dc6fe414277e6a026442e4c7e4b406aaf424b96b392da0200ec732 AUX mpd-0.21.4.init 723 BLAKE2B 4ccaff9b7ee18b1afaf38009da1c002fa36420c81f597b57e4614727d7425e9323836db997a6876ae4b8266182f34cbb72199f8db5ef8aed79f5beb4fb5ea483 SHA512 ad67bee1e614b2901e977e0a7a9bfea7ec9bdf3af9546664f42c1d1426eb5e7990028546390219912e724eeca8ad063a2ac39a048be281527b19b0a79e819961 -DIST mpd-0.21.18.tar.xz 676084 BLAKE2B f55ea278da4b50bf24da476ed9e3ff50a8130215702fb5c4a0accdbfeb00ed734983034ce6ee0542623e42d488555b1c709acefbba026f0e01f17f25f749b833 SHA512 68b4d9dc4be8454d7ef92df2a7b42513dc2d97bfd6b11ba99bce6709fc58ccbeab05419863bacb7a3427f1325bc88da74f9f4b48206222349085f02d0135e1a8 -DIST mpd-0.21.19.tar.xz 676020 BLAKE2B 295dd9067b8517739334fa09d4afc95f1167f291441bc34c4e5c4177bda66ef60eb3f4184f9192242faf64997b05d1c0a13736d1d6a3f343317271acc24a0e70 SHA512 50609b104b84b37dbb297fb40e8f4b352f13de7be5791b8d48c3af3459bfa0f0f88d1d37dcbb0d2409aaee881bca7a7bf6f871b82418ddade19829b02a2bde6a DIST mpd-0.21.20.tar.xz 676396 BLAKE2B e87d844ac0b20f10df7d2306d1c76f76ead84f5e61acb51f60d62847b1fb4f2ada66b20e0a36d87eaf70289027139e4beb80ea8ef7637b1cdb656c9635adb720 SHA512 9dd49190ba4c85014d24e88cdb02a4649e8fb687a49fc9ea019f23725eda483980008e9abebf0ad3960bd310b693c56999699d7c7ddee3ca18e9b2aa6d5a2176 -EBUILD mpd-0.21.18-r1.ebuild 8066 BLAKE2B c4e60bfb097f6aa97503bba0c7d86e33eceb1e0b87c88ea293a948ff59937b1311d350e429ed2e2c21a41141d9a2a148a16b83eda9a2f8be9c114281a579d5de SHA512 904cef84394f2b315cab7b9b354514286c19217d4525aed7c3f3e7ca8cec372e610dbaf2a81780dbaf0e7aecf10c00f63a5a2f2185de49e5164415a28c2a716b -EBUILD mpd-0.21.19-r1.ebuild 8068 BLAKE2B 5c4a14d78ac4b26adcbcee75f664adc52e1706987c173157e75947a9b736c24ece135f851fdbd82c0f4acc653517b66335139522ae25e5fe7b0ea2dbce226a5d SHA512 fa9d4080a221fa1d253c4b63377786abdb40f148f39720d7d30c29c44496a4830fb9f07f8ac336630114ae430fadbcda9c76d872d1bc45c9836789a7589cf0c2 -EBUILD mpd-0.21.20.ebuild 8068 BLAKE2B 5c4a14d78ac4b26adcbcee75f664adc52e1706987c173157e75947a9b736c24ece135f851fdbd82c0f4acc653517b66335139522ae25e5fe7b0ea2dbce226a5d SHA512 fa9d4080a221fa1d253c4b63377786abdb40f148f39720d7d30c29c44496a4830fb9f07f8ac336630114ae430fadbcda9c76d872d1bc45c9836789a7589cf0c2 +DIST mpd-0.21.21.tar.xz 676668 BLAKE2B 83964784db4a7372344853ebf2e9c966e23ac293c06304a8aa6f927ec8ea38d2749d88670f1c5e380953bb8b777b4b0f2c5e8a98d7eb3cf1bae50b5e11549150 SHA512 1780a24f341dec1cbc3d9170cc2fc8249081cac8f677ff17df15fc959787cf43d30696eefba9b8a44824da14eee3d58e2ee78b34db1335c0a182b4c2a89e6b3a +DIST mpd-0.21.22.tar.xz 679244 BLAKE2B d2d76662d1f249b138d3a173cdf712eafcebf91e819b70f2cbc6ccb36ca4bc1f2319972548445789d8861345af5e18ea82f071cd7874a7380bbdda85cf834b73 SHA512 051d97500d8224fe4769a667a58c7915eebcca809e9345a30881f99d7c33d99907d9cc0258c0a5fd20f10609edbeb6da16941099ac3c033762ceb4b116e4df04 +EBUILD mpd-0.21.20.ebuild 8056 BLAKE2B 48fff6cdcc18bc6ec1d2c5d95581e523857a632ff447b2e422c6acab8917af45f698d1e3b2b78456076dee6b56f48588f7dd1971a105219ea6938f366abdba24 SHA512 b90a1e4f7d4bc85223ce338699d423ccf46a94f9b1d3172e6d8379ee218b6858fe9cf8f31325d4580093c21bfee7873d1888ff50e54975d14e1a7555d3659aea +EBUILD mpd-0.21.21.ebuild 8058 BLAKE2B bcd02da8d2815f0226b0a12af2ecf059e6b19633110234ab6c86c4149f3a3a3bfb709eb839ce6ec96f210032e78be7e9bfdef9285d2381281df1d982886535a1 SHA512 98088d506f8943ac1722a26773929193432b7d1e3aa5a02cf0c459065dab2dc4b0fc9e14e8a03caf7b5bf06bece5e3cbe2660200bc6d52228b4ea8980b30ed25 +EBUILD mpd-0.21.22.ebuild 8058 BLAKE2B bcd02da8d2815f0226b0a12af2ecf059e6b19633110234ab6c86c4149f3a3a3bfb709eb839ce6ec96f210032e78be7e9bfdef9285d2381281df1d982886535a1 SHA512 98088d506f8943ac1722a26773929193432b7d1e3aa5a02cf0c459065dab2dc4b0fc9e14e8a03caf7b5bf06bece5e3cbe2660200bc6d52228b4ea8980b30ed25 MISC metadata.xml 2473 BLAKE2B da637e3495141e79aec3a6a1d676c6d98440482e00c57b48efdd9d8a93185d7d093cd2544a2a31beb552ac31f3ea4be897a036b640d630a02f297bde6e2a9f29 SHA512 e7afe6339926473e212cdd9a5be5f4e72c47e78b7ed9839621a09b331c40b4a21312ba4f8fe4154c4cd88908d005af4f3eca17cd6407ea8d10e294775d19299d diff --git a/media-sound/mpd/mpd-0.21.18-r1.ebuild b/media-sound/mpd/mpd-0.21.18-r1.ebuild deleted file mode 100644 index 9194a171c2c3..000000000000 --- a/media-sound/mpd/mpd-0.21.18-r1.ebuild +++ /dev/null @@ -1,298 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic linux-info meson systemd xdg-utils - -DESCRIPTION="The Music Player Daemon (mpd)" -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~hppa ~ppc ~ppc64 ~sh x86 ~x64-macos" -IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl +dbus debug - +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify - +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms - modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz - recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd - test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp - zeroconf zip zlib" - -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" -DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod - modplug mpg123 musepack flac sid vorbis wavpack wildmidi" -ENCODER_PLUGINS="audiofile flac lame twolame vorbis" - -REQUIRED_USE=" - || ( ${OUTPUT_PLUGINS} ) - || ( ${DECODER_PLUGINS} ) - network? ( || ( ${ENCODER_PLUGINS} ) ) - recorder? ( || ( ${ENCODER_PLUGINS} ) ) - upnp? ( expat ) - webdav? ( curl expat ) - " - -RESTRICT="!test? ( test )" - -RDEPEND=" - acct-user/mpd - alsa? ( - media-libs/alsa-lib - media-sound/alsa-utils - ) - - ao? ( media-libs/libao[alsa?,pulseaudio?] ) - audiofile? ( media-libs/audiofile:= ) - - cdio? ( - dev-libs/libcdio:= - dev-libs/libcdio-paranoia - ) - - chromaprint? ( media-libs/chromaprint ) - curl? ( net-misc/curl ) - dbus? ( sys-apps/dbus ) - expat? ( dev-libs/expat ) - faad? ( media-libs/faad2 ) - - ffmpeg? ( - libav? ( media-video/libav:0= ) - !libav? ( media-video/ffmpeg:0= ) - ) - - flac? ( media-libs/flac ) - fluidsynth? ( media-sound/fluidsynth ) - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) - icu? ( dev-libs/icu:= ) - id3tag? ( media-libs/libid3tag ) - jack? ( virtual/jack ) - lame? ( network? ( media-sound/lame ) ) - libmpdclient? ( media-libs/libmpdclient ) - libsamplerate? ( media-libs/libsamplerate ) - libsoxr? ( media-libs/soxr ) - mad? ( media-libs/libmad ) - mikmod? ( media-libs/libmikmod ) - mms? ( media-libs/libmms ) - modplug? ( media-libs/libmodplug ) - mpg123? ( media-sound/mpg123 ) - musepack? ( media-sound/musepack-tools ) - network? ( media-libs/libshout ) - nfs? ( net-fs/libnfs ) - openal? ( media-libs/openal ) - opus? ( media-libs/opus ) - pulseaudio? ( media-sound/pulseaudio ) - qobuz? ( dev-libs/libgcrypt:0 ) - samba? ( net-fs/samba ) - selinux? ( sec-policy/selinux-mpd ) - sid? ( || ( - media-libs/libsidplay:2 - media-libs/libsidplayfp - ) ) - sndfile? ( media-libs/libsndfile ) - soundcloud? ( >=dev-libs/yajl-2:= ) - sqlite? ( dev-db/sqlite:3 ) - systemd? ( sys-apps/systemd ) - tidal? ( dev-libs/yajl - net-misc/curl ) - twolame? ( media-sound/twolame ) - udisks? ( sys-fs/udisks:2 ) - upnp? ( net-libs/libupnp:0 ) - vorbis? ( media-libs/libvorbis ) - wavpack? ( media-sound/wavpack ) - wildmidi? ( media-sound/wildmidi ) - zeroconf? ( net-dns/avahi[dbus] ) - zip? ( dev-libs/zziplib ) - zlib? ( sys-libs/zlib:= )" - -DEPEND="${RDEPEND} - >=dev-libs/boost-1.58:= - test? ( dev-cpp/gtest )" - -BDEPEND=">=dev-util/meson-0.49.2 - virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${PN}-0.18.conf.patch -) - -pkg_setup() { - if use eventfd; then - CONFIG_CHECK+=" ~EVENTFD" - ERROR_EVENTFD="${P} requires eventfd in-kernel support." - fi - - if use signalfd; then - CONFIG_CHECK+=" ~SIGNALFD" - ERROR_SIGNALFD="${P} requires signalfd in-kernel support." - fi - - if use inotify; then - CONFIG_CHECK+=" ~INOTIFY_USER" - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." - fi - - if use eventfd || use signalfd || use inotify; then - linux-info_pkg_setup - fi - - elog "If you will be starting mpd via /etc/init.d/mpd, please make - sure that MPD's pid_file is _set_." -} - -src_prepare() { - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" - default -} - -src_configure() { - local emesonargs=( - -Dbzip2=$(usex bzip2 enabled disabled) - -Dcdio_paranoia=$(usex cdio enabled disabled) - -Dchromaprint=$(usex chromaprint enabled disabled) - -Dcue=$(usex cue true false) - -Dcurl=$(usex curl enabled disabled) - -Ddbus=$(usex dbus enabled disabled) - -Ddebug=$(usex debug true false) - -Deventfd=$(usex eventfd true false) - -Dexpat=$(usex expat enabled disabled) - -Dicu=$(usex icu enabled disabled) - -Did3tag=$(usex id3tag enabled disabled) - -Dinotify=$(usex inotify true false) - -Dipv6=$(usex ipv6 enabled disabled) - -Diso9660=$(usex cdio enabled disabled) - -Dlibmpdclient=$(usex libmpdclient enabled disabled) - -Dlibsamplerate=$(usex libsamplerate enabled disabled) - -Dmms=$(usex mms enabled disabled) - -Dnfs=$(usex nfs enabled disabled) - -Dsignalfd=$(usex signalfd true false) - -Dsmbclient=$(usex samba enabled disabled) - -Dsoxr=$(usex libsoxr enabled disabled) - -Dsqlite=$(usex sqlite enabled disabled) - -Dsystemd=$(usex systemd enabled disabled) - -Dtest=$(usex test true false) - -Dudisks=$(usex udisks enabled disabled) - -Dupnp=$(usex upnp enabled disabled) - -Dwebdav=$(usex webdav enabled disabled) - -Dzeroconf=$(usex zeroconf avahi disabled) - -Dzlib=$(usex zlib enabled disabled) - -Dzzip=$(usex zip enabled disabled) - ) - - emesonargs+=( - -Dalsa=$(usex alsa enabled disabled) - -Dao=$(usex ao enabled disabled) - -Dfifo=$(usex fifo true false) - -Djack=$(usex jack enabled disabled) - -Dopenal=$(usex openal enabled disabled) - -Doss=$(usex oss enabled disabled) - -Dpipe=$(usex pipe true false) - -Dpulse=$(usex pulseaudio enabled disabled) - -Drecorder=$(usex recorder true false) - ) - - if use samba || use upnp; then - emesonargs+=( -Dneighbor=true ) - fi - - append-lfs-flags - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" - - if use network; then - - emesonargs+=( - -Dshine=disabled - -Dshout=enabled - -Dvorbisenc=$(usex vorbis enabled disabled) - -Dhttpd=true - -Dlame=$(usex lame enabled disabled) - -Dtwolame=$(usex twolame enabled disabled) - -Dwave_encoder=$(usex audiofile true false) - ) - fi - - emesonargs+=( - # media-libs/adplug is not packaged anymore - -Dadplug=disabled - -Daudiofile=$(usex audiofile enabled disabled) - -Dfaad=$(usex faad enabled disabled) - -Dffmpeg=$(usex ffmpeg enabled disabled) - -Dflac=$(usex flac enabled disabled) - -Dfluidsynth=$(usex fluidsynth enabled disabled) - -Dgme=$(usex gme enabled disabled) - -Dmad=$(usex mad enabled disabled) - -Dmikmod=$(usex mikmod enabled disabled) - -Dmodplug=$(usex modplug enabled disabled) - -Dmpcdec=$(usex musepack enabled disabled) - -Dmpg123=$(usex mpg123 enabled disabled) - -Dopus=$(usex opus enabled disabled) - -Dsidplay=$(usex sid enabled disabled) - -Dsndfile=$(usex sndfile enabled disabled) - -Dvorbis=$(usex vorbis enabled disabled) - -Dwavpack=$(usex wavpack enabled disabled) - -Dwildmidi=$(usex wildmidi enabled disabled) - - ) - - emesonargs+=( - -Dqobuz=$(usex qobuz enabled disabled) - -Dsoundcloud=$(usex soundcloud enabled disabled) - -Dtidal=$(usex tidal enabled disabled) - ) - - emesonargs+=( - --libdir="/usr/$(get_libdir)" - -Ddocumentation=false - -Dsndio=disabled #not yet in the tree - -Dsolaris_output=disabled - - -Ddatabase=true - -Ddsd=true - -Dtcp=true - - -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" - -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" - ) - - if use icu; then - emesonargs+=( -Diconv=enabled ) - else - emesonargs+=( -Diconv=disabled ) - fi - - meson_src_configure -} - -src_install() { - meson_src_install - - insinto /etc - newins doc/mpdconf.dist mpd.conf - - insinto /etc/logrotate.d - newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} - - newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} - - if use unicode; then - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ - "${ED}"/etc/mpd.conf || die "sed failed" - fi - - doman doc/mpd.1 - doman doc/mpd.conf.5 - - keepdir /var/lib/mpd - keepdir /var/lib/mpd/music - keepdir /var/lib/mpd/playlists - -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/media-sound/mpd/mpd-0.21.19-r1.ebuild b/media-sound/mpd/mpd-0.21.19-r1.ebuild deleted file mode 100644 index 8ef1c4dc8826..000000000000 --- a/media-sound/mpd/mpd-0.21.19-r1.ebuild +++ /dev/null @@ -1,298 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic linux-info meson systemd xdg-utils - -DESCRIPTION="The Music Player Daemon (mpd)" -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x64-macos" -IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl +dbus debug - +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify - +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms - modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz - recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd - test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp - zeroconf zip zlib" - -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" -DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod - modplug mpg123 musepack flac sid vorbis wavpack wildmidi" -ENCODER_PLUGINS="audiofile flac lame twolame vorbis" - -REQUIRED_USE=" - || ( ${OUTPUT_PLUGINS} ) - || ( ${DECODER_PLUGINS} ) - network? ( || ( ${ENCODER_PLUGINS} ) ) - recorder? ( || ( ${ENCODER_PLUGINS} ) ) - upnp? ( expat ) - webdav? ( curl expat ) - " - -RESTRICT="!test? ( test )" - -RDEPEND=" - acct-user/mpd - alsa? ( - media-libs/alsa-lib - media-sound/alsa-utils - ) - - ao? ( media-libs/libao[alsa?,pulseaudio?] ) - audiofile? ( media-libs/audiofile:= ) - - cdio? ( - dev-libs/libcdio:= - dev-libs/libcdio-paranoia - ) - - chromaprint? ( media-libs/chromaprint ) - curl? ( net-misc/curl ) - dbus? ( sys-apps/dbus ) - expat? ( dev-libs/expat ) - faad? ( media-libs/faad2 ) - - ffmpeg? ( - libav? ( media-video/libav:0= ) - !libav? ( media-video/ffmpeg:0= ) - ) - - flac? ( media-libs/flac ) - fluidsynth? ( media-sound/fluidsynth ) - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) - icu? ( dev-libs/icu:= ) - id3tag? ( media-libs/libid3tag ) - jack? ( virtual/jack ) - lame? ( network? ( media-sound/lame ) ) - libmpdclient? ( media-libs/libmpdclient ) - libsamplerate? ( media-libs/libsamplerate ) - libsoxr? ( media-libs/soxr ) - mad? ( media-libs/libmad ) - mikmod? ( media-libs/libmikmod ) - mms? ( media-libs/libmms ) - modplug? ( media-libs/libmodplug ) - mpg123? ( media-sound/mpg123 ) - musepack? ( media-sound/musepack-tools ) - network? ( media-libs/libshout ) - nfs? ( net-fs/libnfs ) - openal? ( media-libs/openal ) - opus? ( media-libs/opus ) - pulseaudio? ( media-sound/pulseaudio ) - qobuz? ( dev-libs/libgcrypt:0 ) - samba? ( net-fs/samba ) - selinux? ( sec-policy/selinux-mpd ) - sid? ( || ( - media-libs/libsidplay:2 - media-libs/libsidplayfp - ) ) - sndfile? ( media-libs/libsndfile ) - soundcloud? ( >=dev-libs/yajl-2:= ) - sqlite? ( dev-db/sqlite:3 ) - systemd? ( sys-apps/systemd ) - tidal? ( dev-libs/yajl - net-misc/curl ) - twolame? ( media-sound/twolame ) - udisks? ( sys-fs/udisks:2 ) - upnp? ( net-libs/libupnp:0 ) - vorbis? ( media-libs/libvorbis ) - wavpack? ( media-sound/wavpack ) - wildmidi? ( media-sound/wildmidi ) - zeroconf? ( net-dns/avahi[dbus] ) - zip? ( dev-libs/zziplib ) - zlib? ( sys-libs/zlib:= )" - -DEPEND="${RDEPEND} - >=dev-libs/boost-1.58:= - test? ( dev-cpp/gtest )" - -BDEPEND=">=dev-util/meson-0.49.2 - virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${PN}-0.18.conf.patch -) - -pkg_setup() { - if use eventfd; then - CONFIG_CHECK+=" ~EVENTFD" - ERROR_EVENTFD="${P} requires eventfd in-kernel support." - fi - - if use signalfd; then - CONFIG_CHECK+=" ~SIGNALFD" - ERROR_SIGNALFD="${P} requires signalfd in-kernel support." - fi - - if use inotify; then - CONFIG_CHECK+=" ~INOTIFY_USER" - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." - fi - - if use eventfd || use signalfd || use inotify; then - linux-info_pkg_setup - fi - - elog "If you will be starting mpd via /etc/init.d/mpd, please make - sure that MPD's pid_file is _set_." -} - -src_prepare() { - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" - default -} - -src_configure() { - local emesonargs=( - -Dbzip2=$(usex bzip2 enabled disabled) - -Dcdio_paranoia=$(usex cdio enabled disabled) - -Dchromaprint=$(usex chromaprint enabled disabled) - -Dcue=$(usex cue true false) - -Dcurl=$(usex curl enabled disabled) - -Ddbus=$(usex dbus enabled disabled) - -Ddebug=$(usex debug true false) - -Deventfd=$(usex eventfd true false) - -Dexpat=$(usex expat enabled disabled) - -Dicu=$(usex icu enabled disabled) - -Did3tag=$(usex id3tag enabled disabled) - -Dinotify=$(usex inotify true false) - -Dipv6=$(usex ipv6 enabled disabled) - -Diso9660=$(usex cdio enabled disabled) - -Dlibmpdclient=$(usex libmpdclient enabled disabled) - -Dlibsamplerate=$(usex libsamplerate enabled disabled) - -Dmms=$(usex mms enabled disabled) - -Dnfs=$(usex nfs enabled disabled) - -Dsignalfd=$(usex signalfd true false) - -Dsmbclient=$(usex samba enabled disabled) - -Dsoxr=$(usex libsoxr enabled disabled) - -Dsqlite=$(usex sqlite enabled disabled) - -Dsystemd=$(usex systemd enabled disabled) - -Dtest=$(usex test true false) - -Dudisks=$(usex udisks enabled disabled) - -Dupnp=$(usex upnp enabled disabled) - -Dwebdav=$(usex webdav enabled disabled) - -Dzeroconf=$(usex zeroconf avahi disabled) - -Dzlib=$(usex zlib enabled disabled) - -Dzzip=$(usex zip enabled disabled) - ) - - emesonargs+=( - -Dalsa=$(usex alsa enabled disabled) - -Dao=$(usex ao enabled disabled) - -Dfifo=$(usex fifo true false) - -Djack=$(usex jack enabled disabled) - -Dopenal=$(usex openal enabled disabled) - -Doss=$(usex oss enabled disabled) - -Dpipe=$(usex pipe true false) - -Dpulse=$(usex pulseaudio enabled disabled) - -Drecorder=$(usex recorder true false) - ) - - if use samba || use upnp; then - emesonargs+=( -Dneighbor=true ) - fi - - append-lfs-flags - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" - - if use network; then - - emesonargs+=( - -Dshine=disabled - -Dshout=enabled - -Dvorbisenc=$(usex vorbis enabled disabled) - -Dhttpd=true - -Dlame=$(usex lame enabled disabled) - -Dtwolame=$(usex twolame enabled disabled) - -Dwave_encoder=$(usex audiofile true false) - ) - fi - - emesonargs+=( - # media-libs/adplug is not packaged anymore - -Dadplug=disabled - -Daudiofile=$(usex audiofile enabled disabled) - -Dfaad=$(usex faad enabled disabled) - -Dffmpeg=$(usex ffmpeg enabled disabled) - -Dflac=$(usex flac enabled disabled) - -Dfluidsynth=$(usex fluidsynth enabled disabled) - -Dgme=$(usex gme enabled disabled) - -Dmad=$(usex mad enabled disabled) - -Dmikmod=$(usex mikmod enabled disabled) - -Dmodplug=$(usex modplug enabled disabled) - -Dmpcdec=$(usex musepack enabled disabled) - -Dmpg123=$(usex mpg123 enabled disabled) - -Dopus=$(usex opus enabled disabled) - -Dsidplay=$(usex sid enabled disabled) - -Dsndfile=$(usex sndfile enabled disabled) - -Dvorbis=$(usex vorbis enabled disabled) - -Dwavpack=$(usex wavpack enabled disabled) - -Dwildmidi=$(usex wildmidi enabled disabled) - - ) - - emesonargs+=( - -Dqobuz=$(usex qobuz enabled disabled) - -Dsoundcloud=$(usex soundcloud enabled disabled) - -Dtidal=$(usex tidal enabled disabled) - ) - - emesonargs+=( - --libdir="/usr/$(get_libdir)" - -Ddocumentation=false - -Dsndio=disabled #not yet in the tree - -Dsolaris_output=disabled - - -Ddatabase=true - -Ddsd=true - -Dtcp=true - - -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" - -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" - ) - - if use icu; then - emesonargs+=( -Diconv=enabled ) - else - emesonargs+=( -Diconv=disabled ) - fi - - meson_src_configure -} - -src_install() { - meson_src_install - - insinto /etc - newins doc/mpdconf.dist mpd.conf - - insinto /etc/logrotate.d - newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} - - newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} - - if use unicode; then - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ - "${ED}"/etc/mpd.conf || die "sed failed" - fi - - doman doc/mpd.1 - doman doc/mpd.conf.5 - - keepdir /var/lib/mpd - keepdir /var/lib/mpd/music - keepdir /var/lib/mpd/playlists - -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/media-sound/mpd/mpd-0.21.20.ebuild b/media-sound/mpd/mpd-0.21.20.ebuild index 8ef1c4dc8826..540d4c5ec34f 100644 --- a/media-sound/mpd/mpd-0.21.20.ebuild +++ b/media-sound/mpd/mpd-0.21.20.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x64-macos" +KEYWORDS="~alpha amd64 ~arm ~ppc ~ppc64 x86 ~x64-macos" IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl +dbus debug +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms diff --git a/media-sound/mpd/mpd-0.21.21.ebuild b/media-sound/mpd/mpd-0.21.21.ebuild new file mode 100644 index 000000000000..731ab04c695d --- /dev/null +++ b/media-sound/mpd/mpd-0.21.21.ebuild @@ -0,0 +1,298 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic linux-info meson systemd xdg-utils + +DESCRIPTION="The Music Player Daemon (mpd)" +HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" +SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x64-macos" +IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl +dbus debug + +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify + +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms + modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz + recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd + test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp + zeroconf zip zlib" + +OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" +DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod + modplug mpg123 musepack flac sid vorbis wavpack wildmidi" +ENCODER_PLUGINS="audiofile flac lame twolame vorbis" + +REQUIRED_USE=" + || ( ${OUTPUT_PLUGINS} ) + || ( ${DECODER_PLUGINS} ) + network? ( || ( ${ENCODER_PLUGINS} ) ) + recorder? ( || ( ${ENCODER_PLUGINS} ) ) + upnp? ( expat ) + webdav? ( curl expat ) + " + +RESTRICT="!test? ( test )" + +RDEPEND=" + acct-user/mpd + alsa? ( + media-libs/alsa-lib + media-sound/alsa-utils + ) + + ao? ( media-libs/libao[alsa?,pulseaudio?] ) + audiofile? ( media-libs/audiofile:= ) + + cdio? ( + dev-libs/libcdio:= + dev-libs/libcdio-paranoia + ) + + chromaprint? ( media-libs/chromaprint ) + curl? ( net-misc/curl ) + dbus? ( sys-apps/dbus ) + expat? ( dev-libs/expat ) + faad? ( media-libs/faad2 ) + + ffmpeg? ( + libav? ( media-video/libav:0= ) + !libav? ( media-video/ffmpeg:0= ) + ) + + flac? ( media-libs/flac ) + fluidsynth? ( media-sound/fluidsynth ) + gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) + icu? ( dev-libs/icu:= ) + id3tag? ( media-libs/libid3tag ) + jack? ( virtual/jack ) + lame? ( network? ( media-sound/lame ) ) + libmpdclient? ( media-libs/libmpdclient ) + libsamplerate? ( media-libs/libsamplerate ) + libsoxr? ( media-libs/soxr ) + mad? ( media-libs/libmad ) + mikmod? ( media-libs/libmikmod ) + mms? ( media-libs/libmms ) + modplug? ( media-libs/libmodplug ) + mpg123? ( media-sound/mpg123 ) + musepack? ( media-sound/musepack-tools ) + network? ( media-libs/libshout ) + nfs? ( net-fs/libnfs ) + openal? ( media-libs/openal ) + opus? ( media-libs/opus ) + pulseaudio? ( media-sound/pulseaudio ) + qobuz? ( dev-libs/libgcrypt:0 ) + samba? ( net-fs/samba ) + selinux? ( sec-policy/selinux-mpd ) + sid? ( || ( + media-libs/libsidplay:2 + media-libs/libsidplayfp + ) ) + sndfile? ( media-libs/libsndfile ) + soundcloud? ( >=dev-libs/yajl-2:= ) + sqlite? ( dev-db/sqlite:3 ) + systemd? ( sys-apps/systemd ) + tidal? ( dev-libs/yajl + net-misc/curl ) + twolame? ( media-sound/twolame ) + udisks? ( sys-fs/udisks:2 ) + upnp? ( net-libs/libupnp:0 ) + vorbis? ( media-libs/libvorbis ) + wavpack? ( media-sound/wavpack ) + wildmidi? ( media-sound/wildmidi ) + zeroconf? ( net-dns/avahi[dbus] ) + zip? ( dev-libs/zziplib ) + zlib? ( sys-libs/zlib:= )" + +DEPEND="${RDEPEND} + >=dev-libs/boost-1.58:= + test? ( dev-cpp/gtest )" + +BDEPEND=">=dev-util/meson-0.49.2 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.18.conf.patch +) + +pkg_setup() { + if use eventfd; then + CONFIG_CHECK+=" ~EVENTFD" + ERROR_EVENTFD="${P} requires eventfd in-kernel support." + fi + + if use signalfd; then + CONFIG_CHECK+=" ~SIGNALFD" + ERROR_SIGNALFD="${P} requires signalfd in-kernel support." + fi + + if use inotify; then + CONFIG_CHECK+=" ~INOTIFY_USER" + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." + fi + + if use eventfd || use signalfd || use inotify; then + linux-info_pkg_setup + fi + + elog "If you will be starting mpd via /etc/init.d/mpd, please make + sure that MPD's pid_file is _set_." +} + +src_prepare() { + cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" + default +} + +src_configure() { + local emesonargs=( + -Dbzip2=$(usex bzip2 enabled disabled) + -Dcdio_paranoia=$(usex cdio enabled disabled) + -Dchromaprint=$(usex chromaprint enabled disabled) + -Dcue=$(usex cue true false) + -Dcurl=$(usex curl enabled disabled) + -Ddbus=$(usex dbus enabled disabled) + -Ddebug=$(usex debug true false) + -Deventfd=$(usex eventfd true false) + -Dexpat=$(usex expat enabled disabled) + -Dicu=$(usex icu enabled disabled) + -Did3tag=$(usex id3tag enabled disabled) + -Dinotify=$(usex inotify true false) + -Dipv6=$(usex ipv6 enabled disabled) + -Diso9660=$(usex cdio enabled disabled) + -Dlibmpdclient=$(usex libmpdclient enabled disabled) + -Dlibsamplerate=$(usex libsamplerate enabled disabled) + -Dmms=$(usex mms enabled disabled) + -Dnfs=$(usex nfs enabled disabled) + -Dsignalfd=$(usex signalfd true false) + -Dsmbclient=$(usex samba enabled disabled) + -Dsoxr=$(usex libsoxr enabled disabled) + -Dsqlite=$(usex sqlite enabled disabled) + -Dsystemd=$(usex systemd enabled disabled) + -Dtest=$(usex test true false) + -Dudisks=$(usex udisks enabled disabled) + -Dupnp=$(usex upnp enabled disabled) + -Dwebdav=$(usex webdav enabled disabled) + -Dzeroconf=$(usex zeroconf avahi disabled) + -Dzlib=$(usex zlib enabled disabled) + -Dzzip=$(usex zip enabled disabled) + ) + + emesonargs+=( + -Dalsa=$(usex alsa enabled disabled) + -Dao=$(usex ao enabled disabled) + -Dfifo=$(usex fifo true false) + -Djack=$(usex jack enabled disabled) + -Dopenal=$(usex openal enabled disabled) + -Doss=$(usex oss enabled disabled) + -Dpipe=$(usex pipe true false) + -Dpulse=$(usex pulseaudio enabled disabled) + -Drecorder=$(usex recorder true false) + ) + + if use samba || use upnp; then + emesonargs+=( -Dneighbor=true ) + fi + + append-lfs-flags + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" + + if use network; then + + emesonargs+=( + -Dshine=disabled + -Dshout=enabled + -Dvorbisenc=$(usex vorbis enabled disabled) + -Dhttpd=true + -Dlame=$(usex lame enabled disabled) + -Dtwolame=$(usex twolame enabled disabled) + -Dwave_encoder=$(usex audiofile true false) + ) + fi + + emesonargs+=( + # media-libs/adplug is not packaged anymore + -Dadplug=disabled + -Daudiofile=$(usex audiofile enabled disabled) + -Dfaad=$(usex faad enabled disabled) + -Dffmpeg=$(usex ffmpeg enabled disabled) + -Dflac=$(usex flac enabled disabled) + -Dfluidsynth=$(usex fluidsynth enabled disabled) + -Dgme=$(usex gme enabled disabled) + -Dmad=$(usex mad enabled disabled) + -Dmikmod=$(usex mikmod enabled disabled) + -Dmodplug=$(usex modplug enabled disabled) + -Dmpcdec=$(usex musepack enabled disabled) + -Dmpg123=$(usex mpg123 enabled disabled) + -Dopus=$(usex opus enabled disabled) + -Dsidplay=$(usex sid enabled disabled) + -Dsndfile=$(usex sndfile enabled disabled) + -Dvorbis=$(usex vorbis enabled disabled) + -Dwavpack=$(usex wavpack enabled disabled) + -Dwildmidi=$(usex wildmidi enabled disabled) + + ) + + emesonargs+=( + -Dqobuz=$(usex qobuz enabled disabled) + -Dsoundcloud=$(usex soundcloud enabled disabled) + -Dtidal=$(usex tidal enabled disabled) + ) + + emesonargs+=( + --libdir="/usr/$(get_libdir)" + -Ddocumentation=false + -Dsndio=disabled #not yet in the tree + -Dsolaris_output=disabled + + -Ddatabase=true + -Ddsd=true + -Dtcp=true + + -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" + -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" + ) + + if use icu; then + emesonargs+=( -Diconv=enabled ) + else + emesonargs+=( -Diconv=disabled ) + fi + + meson_src_configure +} + +src_install() { + meson_src_install + + insinto /etc + newins doc/mpdconf.dist mpd.conf + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} + + if use unicode; then + sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ + "${ED}"/etc/mpd.conf || die "sed failed" + fi + + doman doc/mpd.1 + doman doc/mpd.conf.5 + + keepdir /var/lib/mpd + keepdir /var/lib/mpd/music + keepdir /var/lib/mpd/playlists + +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/media-sound/mpd/mpd-0.21.22.ebuild b/media-sound/mpd/mpd-0.21.22.ebuild new file mode 100644 index 000000000000..731ab04c695d --- /dev/null +++ b/media-sound/mpd/mpd-0.21.22.ebuild @@ -0,0 +1,298 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic linux-info meson systemd xdg-utils + +DESCRIPTION="The Music Player Daemon (mpd)" +HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" +SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x64-macos" +IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl +dbus debug + +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify + +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms + modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz + recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd + test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp + zeroconf zip zlib" + +OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" +DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod + modplug mpg123 musepack flac sid vorbis wavpack wildmidi" +ENCODER_PLUGINS="audiofile flac lame twolame vorbis" + +REQUIRED_USE=" + || ( ${OUTPUT_PLUGINS} ) + || ( ${DECODER_PLUGINS} ) + network? ( || ( ${ENCODER_PLUGINS} ) ) + recorder? ( || ( ${ENCODER_PLUGINS} ) ) + upnp? ( expat ) + webdav? ( curl expat ) + " + +RESTRICT="!test? ( test )" + +RDEPEND=" + acct-user/mpd + alsa? ( + media-libs/alsa-lib + media-sound/alsa-utils + ) + + ao? ( media-libs/libao[alsa?,pulseaudio?] ) + audiofile? ( media-libs/audiofile:= ) + + cdio? ( + dev-libs/libcdio:= + dev-libs/libcdio-paranoia + ) + + chromaprint? ( media-libs/chromaprint ) + curl? ( net-misc/curl ) + dbus? ( sys-apps/dbus ) + expat? ( dev-libs/expat ) + faad? ( media-libs/faad2 ) + + ffmpeg? ( + libav? ( media-video/libav:0= ) + !libav? ( media-video/ffmpeg:0= ) + ) + + flac? ( media-libs/flac ) + fluidsynth? ( media-sound/fluidsynth ) + gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) + icu? ( dev-libs/icu:= ) + id3tag? ( media-libs/libid3tag ) + jack? ( virtual/jack ) + lame? ( network? ( media-sound/lame ) ) + libmpdclient? ( media-libs/libmpdclient ) + libsamplerate? ( media-libs/libsamplerate ) + libsoxr? ( media-libs/soxr ) + mad? ( media-libs/libmad ) + mikmod? ( media-libs/libmikmod ) + mms? ( media-libs/libmms ) + modplug? ( media-libs/libmodplug ) + mpg123? ( media-sound/mpg123 ) + musepack? ( media-sound/musepack-tools ) + network? ( media-libs/libshout ) + nfs? ( net-fs/libnfs ) + openal? ( media-libs/openal ) + opus? ( media-libs/opus ) + pulseaudio? ( media-sound/pulseaudio ) + qobuz? ( dev-libs/libgcrypt:0 ) + samba? ( net-fs/samba ) + selinux? ( sec-policy/selinux-mpd ) + sid? ( || ( + media-libs/libsidplay:2 + media-libs/libsidplayfp + ) ) + sndfile? ( media-libs/libsndfile ) + soundcloud? ( >=dev-libs/yajl-2:= ) + sqlite? ( dev-db/sqlite:3 ) + systemd? ( sys-apps/systemd ) + tidal? ( dev-libs/yajl + net-misc/curl ) + twolame? ( media-sound/twolame ) + udisks? ( sys-fs/udisks:2 ) + upnp? ( net-libs/libupnp:0 ) + vorbis? ( media-libs/libvorbis ) + wavpack? ( media-sound/wavpack ) + wildmidi? ( media-sound/wildmidi ) + zeroconf? ( net-dns/avahi[dbus] ) + zip? ( dev-libs/zziplib ) + zlib? ( sys-libs/zlib:= )" + +DEPEND="${RDEPEND} + >=dev-libs/boost-1.58:= + test? ( dev-cpp/gtest )" + +BDEPEND=">=dev-util/meson-0.49.2 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.18.conf.patch +) + +pkg_setup() { + if use eventfd; then + CONFIG_CHECK+=" ~EVENTFD" + ERROR_EVENTFD="${P} requires eventfd in-kernel support." + fi + + if use signalfd; then + CONFIG_CHECK+=" ~SIGNALFD" + ERROR_SIGNALFD="${P} requires signalfd in-kernel support." + fi + + if use inotify; then + CONFIG_CHECK+=" ~INOTIFY_USER" + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." + fi + + if use eventfd || use signalfd || use inotify; then + linux-info_pkg_setup + fi + + elog "If you will be starting mpd via /etc/init.d/mpd, please make + sure that MPD's pid_file is _set_." +} + +src_prepare() { + cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" + default +} + +src_configure() { + local emesonargs=( + -Dbzip2=$(usex bzip2 enabled disabled) + -Dcdio_paranoia=$(usex cdio enabled disabled) + -Dchromaprint=$(usex chromaprint enabled disabled) + -Dcue=$(usex cue true false) + -Dcurl=$(usex curl enabled disabled) + -Ddbus=$(usex dbus enabled disabled) + -Ddebug=$(usex debug true false) + -Deventfd=$(usex eventfd true false) + -Dexpat=$(usex expat enabled disabled) + -Dicu=$(usex icu enabled disabled) + -Did3tag=$(usex id3tag enabled disabled) + -Dinotify=$(usex inotify true false) + -Dipv6=$(usex ipv6 enabled disabled) + -Diso9660=$(usex cdio enabled disabled) + -Dlibmpdclient=$(usex libmpdclient enabled disabled) + -Dlibsamplerate=$(usex libsamplerate enabled disabled) + -Dmms=$(usex mms enabled disabled) + -Dnfs=$(usex nfs enabled disabled) + -Dsignalfd=$(usex signalfd true false) + -Dsmbclient=$(usex samba enabled disabled) + -Dsoxr=$(usex libsoxr enabled disabled) + -Dsqlite=$(usex sqlite enabled disabled) + -Dsystemd=$(usex systemd enabled disabled) + -Dtest=$(usex test true false) + -Dudisks=$(usex udisks enabled disabled) + -Dupnp=$(usex upnp enabled disabled) + -Dwebdav=$(usex webdav enabled disabled) + -Dzeroconf=$(usex zeroconf avahi disabled) + -Dzlib=$(usex zlib enabled disabled) + -Dzzip=$(usex zip enabled disabled) + ) + + emesonargs+=( + -Dalsa=$(usex alsa enabled disabled) + -Dao=$(usex ao enabled disabled) + -Dfifo=$(usex fifo true false) + -Djack=$(usex jack enabled disabled) + -Dopenal=$(usex openal enabled disabled) + -Doss=$(usex oss enabled disabled) + -Dpipe=$(usex pipe true false) + -Dpulse=$(usex pulseaudio enabled disabled) + -Drecorder=$(usex recorder true false) + ) + + if use samba || use upnp; then + emesonargs+=( -Dneighbor=true ) + fi + + append-lfs-flags + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" + + if use network; then + + emesonargs+=( + -Dshine=disabled + -Dshout=enabled + -Dvorbisenc=$(usex vorbis enabled disabled) + -Dhttpd=true + -Dlame=$(usex lame enabled disabled) + -Dtwolame=$(usex twolame enabled disabled) + -Dwave_encoder=$(usex audiofile true false) + ) + fi + + emesonargs+=( + # media-libs/adplug is not packaged anymore + -Dadplug=disabled + -Daudiofile=$(usex audiofile enabled disabled) + -Dfaad=$(usex faad enabled disabled) + -Dffmpeg=$(usex ffmpeg enabled disabled) + -Dflac=$(usex flac enabled disabled) + -Dfluidsynth=$(usex fluidsynth enabled disabled) + -Dgme=$(usex gme enabled disabled) + -Dmad=$(usex mad enabled disabled) + -Dmikmod=$(usex mikmod enabled disabled) + -Dmodplug=$(usex modplug enabled disabled) + -Dmpcdec=$(usex musepack enabled disabled) + -Dmpg123=$(usex mpg123 enabled disabled) + -Dopus=$(usex opus enabled disabled) + -Dsidplay=$(usex sid enabled disabled) + -Dsndfile=$(usex sndfile enabled disabled) + -Dvorbis=$(usex vorbis enabled disabled) + -Dwavpack=$(usex wavpack enabled disabled) + -Dwildmidi=$(usex wildmidi enabled disabled) + + ) + + emesonargs+=( + -Dqobuz=$(usex qobuz enabled disabled) + -Dsoundcloud=$(usex soundcloud enabled disabled) + -Dtidal=$(usex tidal enabled disabled) + ) + + emesonargs+=( + --libdir="/usr/$(get_libdir)" + -Ddocumentation=false + -Dsndio=disabled #not yet in the tree + -Dsolaris_output=disabled + + -Ddatabase=true + -Ddsd=true + -Dtcp=true + + -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" + -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" + ) + + if use icu; then + emesonargs+=( -Diconv=enabled ) + else + emesonargs+=( -Diconv=disabled ) + fi + + meson_src_configure +} + +src_install() { + meson_src_install + + insinto /etc + newins doc/mpdconf.dist mpd.conf + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} + + if use unicode; then + sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ + "${ED}"/etc/mpd.conf || die "sed failed" + fi + + doman doc/mpd.1 + doman doc/mpd.conf.5 + + keepdir /var/lib/mpd + keepdir /var/lib/mpd/music + keepdir /var/lib/mpd/playlists + +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} -- cgit v1.2.3