From 656415c9ea59def40c02f7dff6e0650186b509f3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Oct 2023 12:12:04 +0100 Subject: gentoo auto-resync : 11:10:2023 - 12:12:04 --- media-sound/Manifest.gz | Bin 57452 -> 57448 bytes media-sound/mpg123/Manifest | 2 + media-sound/mpg123/mpg123-1.32.3.ebuild | 110 +++++++++++++++++++++++ media-sound/qsynth/Manifest | 2 - media-sound/qsynth/qsynth-0.9.11-r2.ebuild | 72 --------------- media-sound/spotify/Manifest | 4 +- media-sound/spotify/spotify-1.2.20-r3.ebuild | 130 --------------------------- media-sound/spotify/spotify-1.2.22.ebuild | 130 +++++++++++++++++++++++++++ 8 files changed, 244 insertions(+), 206 deletions(-) create mode 100644 media-sound/mpg123/mpg123-1.32.3.ebuild delete mode 100644 media-sound/qsynth/qsynth-0.9.11-r2.ebuild delete mode 100644 media-sound/spotify/spotify-1.2.20-r3.ebuild create mode 100644 media-sound/spotify/spotify-1.2.22.ebuild (limited to 'media-sound') diff --git a/media-sound/Manifest.gz b/media-sound/Manifest.gz index fe5ad6f8a432..48e778af0a46 100644 Binary files a/media-sound/Manifest.gz and b/media-sound/Manifest.gz differ diff --git a/media-sound/mpg123/Manifest b/media-sound/mpg123/Manifest index 234e56c23b3e..0db2febb3352 100644 --- a/media-sound/mpg123/Manifest +++ b/media-sound/mpg123/Manifest @@ -1,4 +1,6 @@ DIST mpg123-1.31.3.tar.bz2 1094474 BLAKE2B 343bca53e067485dba438a177ba65f38d512c4aaac6f413bb1e070f99d6407f9a694899f06fbd3577ef287b4e898b38ac3585f86d18f643cab15f678d3105c11 SHA512 5dd550e06f5d0d432cac1b7e546215e56378b44588c1a98031498473211e08bc4228de45be41f7ba764f7f6c0eb752a6501235bcc3712c9a8d8852ae3c607d98 +DIST mpg123-1.32.3.tar.bz2 1111054 BLAKE2B 67f889403c2bb639d675ec5ebea5a19c4b7174971d62bdd8d940ad659e6b0c06dada38422fc9d71b878917aa89e305ec48c8faa78d65d507cd6a0c9a79951359 SHA512 946c1073b6eebfd65333ec543df1caeea25864479e9c8e153fb53d8b636cc756d8d81947f7b5cbedbbfb1ea664d3fb27562ed36e7726d95e80591bd2ad622afc EBUILD mpg123-1.31.3-r1.ebuild 2989 BLAKE2B 4c42558156e251601969641261db7d209a46f3ba1824cd0379a0fbb2704858fc389b880437c1a39d2871278a0cb47d6384f77b4eefc2b203d3404377963b5677 SHA512 efe89a4deee7bd0b914a5adba2a7789719ce1a66bc94ef612dc5d5013883ba5a8ab2be26515158e58d7fa29c1cabda05353b344c93a3c1237193481916b97a48 EBUILD mpg123-1.31.3.ebuild 2991 BLAKE2B 8a0ed91c206eb68ff907b23c34bd93431f518c7b344b7f2b62256ef8f4fa4b5cb40a18893d17164dfede32c2e39eb906ba7c38ec23b4d8c0c93476305c14af75 SHA512 ddaea7b6484da86fda2622889793e698b49e4ab3e3fe7b3f595cef280cbf264a8ef5c6796a09bea0196af8d1dbd7f8691041629d648d5a79a8308e5807577b3e +EBUILD mpg123-1.32.3.ebuild 2995 BLAKE2B ee72ec758577c6540a3d29f70014b925fcfee01ded68c7fbd7de4607d72449f4569387bf12cade643f8995f400b7f2cf25c52ce87fab472e4604e8be8931023e SHA512 ea9e57f12a762cfc482370ff3a6b01a414ec7470caf98531377505ae9fa666bb7aabab7705e01d9ec70c3e858902992890c35d3b1453bf93a4478e2a7f40129f MISC metadata.xml 526 BLAKE2B 42eed8f068420cefea4cf3e75a880889be7abe182feec2aa95e0e7f550cf68eb2582460e43500d24b7ad189adb3e0e135da1079efb405957fe3dfc6b93a91ece SHA512 11e572b6ec77d6c971766e666db84ee4b605479c3f89ba639177de7fb109a8d9e38d1f5034a52554736e6bd0915aae84830169ba3580f6d64794adc4c8cb9d0e diff --git a/media-sound/mpg123/mpg123-1.32.3.ebuild b/media-sound/mpg123/mpg123-1.32.3.ebuild new file mode 100644 index 000000000000..6ccb1a328acc --- /dev/null +++ b/media-sound/mpg123/mpg123-1.32.3.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs libtool multilib-minimal + +DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" +HOMEPAGE="https://www.mpg123.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext cpu_flags_ppc_altivec alsa coreaudio int-quality ipv6 jack cpu_flags_x86_mmx nas oss portaudio pulseaudio sdl cpu_flags_x86_sse" + +# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs. +# Note: build system prefers libsdl2 > libsdl. We could in theory add both +# but it's tricky when it comes to handling switching between them properly. +# We'd need a USE flag for both sdl1 and sdl2 and to make them clash. +RDEPEND=" + dev-libs/libltdl:0 + alsa? ( media-libs/alsa-lib ) + jack? ( virtual/jack ) + nas? ( media-libs/nas ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-libs/libpulse ) + sdl? ( media-libs/libsdl2 )" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/libtool + virtual/pkgconfig +" +IDEPEND="app-eselect/eselect-mpg123" + +DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README ) + +src_prepare() { + default + elibtoolize # for Darwin bundles +} + +multilib_src_configure() { + local _audio=dummy + local _output=dummy + local _cpu=generic_fpu + + # Build fails without -D_GNU_SOURCE like this: + # error: ‘struct hostent’ has no member named ‘h_addr’ + append-cflags -D_GNU_SOURCE + + append-lfs-flags + + if $(multilib_is_native_abi) ; then + local flag + for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do + if use ${flag}; then + _audio+=" ${flag/pulseaudio/pulse}" + _output=${flag/pulseaudio/pulse} + fi + done + fi + + use cpu_flags_ppc_altivec && _cpu=altivec + + if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then + use cpu_flags_x86_sse && _cpu=x86-64 + elif use x86 && gcc-specs-pie ; then + # Don't use any mmx, 3dnow, sse and 3dnowext + # bug #164504 + _cpu=generic_fpu + else + use cpu_flags_x86_mmx && _cpu=mmx + use cpu_flags_x86_3dnow && _cpu=3dnow + use cpu_flags_x86_sse && _cpu=x86 + use cpu_flags_x86_3dnowext && _cpu=x86 + fi + + local myconf=( + --with-optimization=0 + --with-audio="${_audio}" + --with-default-audio=${_output} + --with-cpu=${_cpu} + --enable-network + $(use_enable ipv6) + --enable-int-quality=$(usex int-quality) + ) + + multilib_is_native_abi || myconf+=( --disable-modules ) + + ECONF_SOURCE="${S}" econf "${myconf[@]}" + + if ! $(multilib_is_native_abi) ; then + sed -i -e 's:src doc:src/libmpg123:' Makefile || die + fi +} + +multilib_src_install_all() { + einstalldocs + mv "${ED}"/usr/bin/mpg123{,-mpg123} + find "${ED}" -type f -name '*.la' -delete || die +} + +pkg_postinst() { + eselect mpg123 update ifunset +} + +pkg_postrm() { + eselect mpg123 update ifunset +} diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest index 7418ce101f66..660bd25f9cc3 100644 --- a/media-sound/qsynth/Manifest +++ b/media-sound/qsynth/Manifest @@ -1,6 +1,4 @@ -DIST qsynth-0.9.11.tar.gz 333402 BLAKE2B 72a57a978bad1c4b2abcb287ea27c1c1365c06efdeedcd9bb69ca01a20304f48b19065c5e5181e8d30a3d4137eee56ec69cfba32dd8d2fa29f3ea1140019e089 SHA512 3d6c40066db235fc39ca804de1a352ade9e03e162b5901d0e1170f1f0cb4ec3e1631d2fe2b1e50a9cbab9528bca54ebb0afb8e5d615fb8f0b06b9761ae472f2d DIST qsynth-0.9.12.tar.gz 333588 BLAKE2B 778edbb60535aea55f3d82074e8723b37fef6fa01975403211317753f790e14baf9f59db294f68e3d067a2142b450878cfaf412ad22480744936a2eee1d654d1 SHA512 44017d24c09714d174c774083462f7dc263f2abc7aaf7d2cda0f4987b007210a33dcfb35d47eacd5682859e5299f75e26e47fd2f73458eb2a05a36c27d5889f0 -EBUILD qsynth-0.9.11-r2.ebuild 1433 BLAKE2B cac4a796d53643b31eb8603ddcf71aca7370d505fcd47292941e6e29d95f5fc9a7853a50a96d0fcdc2868190d120d10b12ab474203d9eec5fa689e87a1da691f SHA512 e51eb23c60665cce64c5dad45ba5d56fb145b2fba4b9b4f73edc03167519d5a852abc9bf844f8fdfa2ee23b52e0064f3f1752f016063d17111de0eb01ce230a1 EBUILD qsynth-0.9.12.ebuild 1433 BLAKE2B cac4a796d53643b31eb8603ddcf71aca7370d505fcd47292941e6e29d95f5fc9a7853a50a96d0fcdc2868190d120d10b12ab474203d9eec5fa689e87a1da691f SHA512 e51eb23c60665cce64c5dad45ba5d56fb145b2fba4b9b4f73edc03167519d5a852abc9bf844f8fdfa2ee23b52e0064f3f1752f016063d17111de0eb01ce230a1 EBUILD qsynth-9999.ebuild 1437 BLAKE2B 2e3d53ab8b02fd4942e275bb3304282921c8c8e0f90897731ed7348d711fde579f40ecdd93e8d5f390521bcb4eabaa8ee537356968ded0bb6f707df69706d362 SHA512 cc1e36a7c57a47de01dcd2266604f22358df7bdf8967e85541c438238de53471e9d3b301d005ba9020f74b5dcf404e4c7fc2e524c80a59e0a57bc1b0e4419ff6 MISC metadata.xml 763 BLAKE2B 871d9e5edd0dcd434d496c2d40f997717d424502a5d7072264886477eaaf4bf460e32746bc899a124d97f5cadf116c0cdd198d017ebd4e9cbd769ba2af8a8512 SHA512 147e494f3b468283759a06d361d286e211e95cabbfc6daef67c406e5f19a9eb04ec611f41273ddb0c712dd1fd9afa3a71922bd9cfe749c388ab61d550dc86def diff --git a/media-sound/qsynth/qsynth-0.9.11-r2.ebuild b/media-sound/qsynth/qsynth-0.9.11-r2.ebuild deleted file mode 100644 index 5928b0e9f74b..000000000000 --- a/media-sound/qsynth/qsynth-0.9.11-r2.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake desktop xdg - -DESCRIPTION="Qt application to control FluidSynth" -HOMEPAGE="https://qsynth.sourceforge.io/" - -if [[ ${PV} == *9999* ]]; then - EGIT_REPO_URI="https://git.code.sf.net/p/qsynth/code" - inherit git-r3 -else - SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz" - KEYWORDS="amd64 ppc ppc64 x86" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+alsa debug jack pulseaudio qt6" - -REQUIRED_USE="|| ( alsa jack pulseaudio )" - -BDEPEND=" - qt6? ( dev-qt/qttools:6[linguist] ) - !qt6? ( dev-qt/linguist-tools:5 ) -" -DEPEND=" - qt6? ( - dev-qt/qtbase:6[gui,network,widgets] - dev-qt/qtsvg:6 - ) - !qt6? ( - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - ) - media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?] -" -RDEPEND="${DEPEND}" - -src_configure() { - local mycmakeargs=( - -DCONFIG_DEBUG=$(usex debug 1 0) - -DCONFIG_QT6=$(usex qt6 1 0) - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - - # The desktop file is invalid, and we also change the command - # depending on useflags - rm "${D}/usr/share/applications/org.rncbc.qsynth.desktop" || die - - local cmd - if use jack; then - cmd="qsynth" - elif use pulseaudio; then - cmd="qsynth -a pulseaudio" - elif use alsa; then - cmd="qsynth -a alsa" - else - cmd="qsynth -a oss" - fi - - make_desktop_entry "${cmd}" Qsynth org.rncbc.qsynth -} diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest index bc71b1c7dc1e..11f86b442187 100644 --- a/media-sound/spotify/Manifest +++ b/media-sound/spotify/Manifest @@ -1,4 +1,4 @@ AUX spotify-wrapper 922 BLAKE2B c3ac2049a1302ec6ac0c1dc4c1514199c49a87474ef77c392e0ce5c2dba65788255e5b04dc3b8142fd8f315ebfd2491a7ec259d6347357e059fd0e2f7f777caf SHA512 f658cd4338c3072638d39d79eb6b1a5d959cfd4398dbb08d5cd108ab246c43e337ad11cf10a25c57cad12c8342526f8928c992e81d0c5c678fc5056f8832f42c -DIST spotify-client_1.2.20.1210.g2a8a8a57_amd64.deb 124183006 BLAKE2B 32f48b06311d25ced25516e8a521dd87ebd44179fdb93b6f5ba53636eb4b53b5be97092d227968846188f0d51d9a8f6f2e350d009b797519d1cb0f252783076d SHA512 a527d6fecec9fa925d8c60e0ba8764ec8f53d3f5268d0b968d3bdeca7d367081f7faa0bcd1fe016491f15e37a1238ad40dbca1fc93b2533e0238e7a7a07f352b -EBUILD spotify-1.2.20-r3.ebuild 3688 BLAKE2B 68697650937820a6c7ea7b908ff54e3faa1e82c5e2a677685626e50ea10099b58693ae85d4931df179448ff840333ff13db668abbd94adee00acc5e0be1bffec SHA512 389febcee44203d6e26867851ab9b9988b424b321e6270b42aeba0979ed52bf097da44eae3d17acc8b5bde661e34783f2876a1f7074a3363e431935d717d20ec +DIST spotify-client_1.2.22.982.g794acc0a_amd64.deb 124729466 BLAKE2B 4ba3955f3a6038125e828d335277bdb9646950d2e0ea05048598f7cd4f2b479ca82915a523afe1973860b519303423a44cd911f5998407cd107f3a819765a3e6 SHA512 fa30eb268fb52a2b5a697b39c4e93e4b625ecef596beb93cdf3509fb798ec16722b5f1aa2592041d7f7209df1e6262891aa451f79f9807d3a89725ba31b79140 +EBUILD spotify-1.2.22.ebuild 3687 BLAKE2B ce50fa16fc1ab71c4854795bbf02ea4e09b5da944a6bf7927fb6818b2166f976bd278f64c9e9177807fd6d702562221df434a80cada25f8d2c1212eba9345062 SHA512 c7a7311912e4f90b9f7344dfe18125fd9ba3882bd82713f831d495d0dc9228790dc8212c91c4953f2b40c75cb3f71a03b5616bf888ba2779a3cfb8917abd2c66 MISC metadata.xml 521 BLAKE2B 6859f340482640ec95ed103b2ca4b1e6c316509d8b87402068e1164a4efeaac9cf8ac5360ea038eb09c3682dd8e8e10a9cc872a3820c1a8341fcccaab34e0a18 SHA512 7527cfdf2d421e1bd7c156b930f980a464fad60f2ba2fafa5b79e4f04baad97a6ce3176987e8a32c8b5bcae20acf2b416812b26de1f7bc76205e0d8bee4e98e8 diff --git a/media-sound/spotify/spotify-1.2.20-r3.ebuild b/media-sound/spotify/spotify-1.2.20-r3.ebuild deleted file mode 100644 index 333a0fd7c799..000000000000 --- a/media-sound/spotify/spotify-1.2.20-r3.ebuild +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop pax-utils unpacker xdg - -DESCRIPTION="Spotify is a social music platform" -HOMEPAGE="https://www.spotify.com/download/linux/" -SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/" -BUILD_ID_AMD64="1210.g2a8a8a57" -SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb" - -LICENSE="Spotify" -SLOT="0" -KEYWORDS="amd64" -IUSE="libnotify local-playback pax-kernel pulseaudio" -RESTRICT="mirror strip" - -BDEPEND=" - >=dev-util/patchelf-0.10 - sys-devel/gettext -" -RDEPEND=" - >=app-accessibility/at-spi2-core-2.46.0:2 - dev-libs/expat - dev-libs/glib:2 - dev-libs/nspr - dev-libs/nss - dev-libs/openssl:0= - dev-python/dbus-python - media-libs/alsa-lib - media-libs/fontconfig - media-libs/harfbuzz - media-libs/mesa[X(+)] - net-misc/curl[ssl] - net-print/cups[ssl(+)] - sys-apps/dbus - sys-libs/zlib - x11-libs/cairo - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:3 - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXcomposite - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXrandr - x11-libs/libdrm - x11-libs/libxcb - x11-libs/libxkbcommon - x11-libs/pango - !gnome-extra/gnome-integration-spotify - libnotify? ( x11-libs/libnotify ) - dev-libs/libayatana-appindicator - local-playback? ( media-video/ffmpeg:0/56.58.58 ) - pulseaudio? ( media-libs/libpulse ) - !pulseaudio? ( media-sound/apulse ) -" - #gnome-integration-spotify causes spotify to fail to launch - #sys-libs/glibc - -S="${WORKDIR}/" - -QA_PREBUILT=" - opt/spotify/spotify-client/spotify - opt/spotify/spotify-client/libEGL.so - opt/spotify/spotify-client/libGLESv2.so - opt/spotify/spotify-client/libcef.so - opt/spotify/spotify-client/libvk_swiftshader.so - opt/spotify/spotify-client/libvulkan.so.1 - opt/spotify/spotify-client/swiftshader/libEGL.so - opt/spotify/spotify-client/swiftshader/libGLESv2.so -" - -src_prepare() { - default - # Spotify links against libcurl-gnutls.so.4, which does not exist in Gentoo. - patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/bin/spotify \ - || die "failed to patch libcurl library dependency" -} - -src_install() { - gunzip usr/share/doc/spotify-client/changelog.gz || die - dodoc usr/share/doc/spotify-client/changelog - - SPOTIFY_PKG_HOME=usr/share/spotify - insinto /usr/share/pixmaps - doins ${SPOTIFY_PKG_HOME}/icons/*.png - - # install in /opt/spotify - SPOTIFY_HOME=/opt/spotify/spotify-client - insinto ${SPOTIFY_HOME} - doins -r ${SPOTIFY_PKG_HOME}/* - fperms +x ${SPOTIFY_HOME}/spotify - - dodir /usr/bin - SPOTIFY_HOME=${SPOTIFY_HOME} LIBDIR=$(get_libdir) \ - envsubst '$SPOTIFY_HOME $LIBDIR' \ - < "${FILESDIR}/spotify-wrapper" > "${D}/usr/bin/spotify" || die - fperms +x /usr/bin/spotify - - local size - for size in 16 22 24 32 48 64 128 256 512; do - newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \ - "spotify-client.png" - done - domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop" - if use pax-kernel; then - #create the headers, reset them to default, then paxmark -m them - pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die - pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die - pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die - eqawarn "You have set USE=pax-kernel meaning that you intend to run" - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" - eqawarn "you suspect that ${PN} is being broken by this modification," - eqawarn "please open a bug." - fi -} - -pkg_postinst() { - xdg_pkg_postinst - - ewarn "If Spotify crashes after an upgrade its cache may be corrupt." - ewarn "To remove the cache:" - ewarn "rm -rf ~/.cache/spotify" -} diff --git a/media-sound/spotify/spotify-1.2.22.ebuild b/media-sound/spotify/spotify-1.2.22.ebuild new file mode 100644 index 000000000000..127db91f635d --- /dev/null +++ b/media-sound/spotify/spotify-1.2.22.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop pax-utils unpacker xdg + +DESCRIPTION="Spotify is a social music platform" +HOMEPAGE="https://www.spotify.com/download/linux/" +SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/" +BUILD_ID_AMD64="982.g794acc0a" +SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb" + +LICENSE="Spotify" +SLOT="0" +KEYWORDS="amd64" +IUSE="libnotify local-playback pax-kernel pulseaudio" +RESTRICT="mirror strip" + +BDEPEND=" + >=dev-util/patchelf-0.10 + sys-devel/gettext +" +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + dev-libs/openssl:0= + dev-python/dbus-python + media-libs/alsa-lib + media-libs/fontconfig + media-libs/harfbuzz + media-libs/mesa[X(+)] + net-misc/curl[ssl] + net-print/cups[ssl(+)] + sys-apps/dbus + sys-libs/zlib + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libdrm + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/pango + !gnome-extra/gnome-integration-spotify + libnotify? ( x11-libs/libnotify ) + dev-libs/libayatana-appindicator + local-playback? ( media-video/ffmpeg:0/56.58.58 ) + pulseaudio? ( media-libs/libpulse ) + !pulseaudio? ( media-sound/apulse ) +" + #gnome-integration-spotify causes spotify to fail to launch + #sys-libs/glibc + +S="${WORKDIR}/" + +QA_PREBUILT=" + opt/spotify/spotify-client/spotify + opt/spotify/spotify-client/libEGL.so + opt/spotify/spotify-client/libGLESv2.so + opt/spotify/spotify-client/libcef.so + opt/spotify/spotify-client/libvk_swiftshader.so + opt/spotify/spotify-client/libvulkan.so.1 + opt/spotify/spotify-client/swiftshader/libEGL.so + opt/spotify/spotify-client/swiftshader/libGLESv2.so +" + +src_prepare() { + default + # Spotify links against libcurl-gnutls.so.4, which does not exist in Gentoo. + patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/bin/spotify \ + || die "failed to patch libcurl library dependency" +} + +src_install() { + gunzip usr/share/doc/spotify-client/changelog.gz || die + dodoc usr/share/doc/spotify-client/changelog + + SPOTIFY_PKG_HOME=usr/share/spotify + insinto /usr/share/pixmaps + doins ${SPOTIFY_PKG_HOME}/icons/*.png + + # install in /opt/spotify + SPOTIFY_HOME=/opt/spotify/spotify-client + insinto ${SPOTIFY_HOME} + doins -r ${SPOTIFY_PKG_HOME}/* + fperms +x ${SPOTIFY_HOME}/spotify + + dodir /usr/bin + SPOTIFY_HOME=${SPOTIFY_HOME} LIBDIR=$(get_libdir) \ + envsubst '$SPOTIFY_HOME $LIBDIR' \ + < "${FILESDIR}/spotify-wrapper" > "${D}/usr/bin/spotify" || die + fperms +x /usr/bin/spotify + + local size + for size in 16 22 24 32 48 64 128 256 512; do + newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \ + "spotify-client.png" + done + domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop" + if use pax-kernel; then + #create the headers, reset them to default, then paxmark -m them + pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die + pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die + pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die + eqawarn "You have set USE=pax-kernel meaning that you intend to run" + eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" + eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" + eqawarn "you suspect that ${PN} is being broken by this modification," + eqawarn "please open a bug." + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + ewarn "If Spotify crashes after an upgrade its cache may be corrupt." + ewarn "To remove the cache:" + ewarn "rm -rf ~/.cache/spotify" +} -- cgit v1.2.3