From 3ac7f3357d4d0ce2da34d7ef2734cd40df42d488 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 2 Aug 2024 01:50:44 +0300 Subject: [PATCH] app-misc/spicetify-cli: drop 2.36.13, 2.36.14 Signed-off-by: Alfred Wingate --- app-misc/spicetify-cli/Manifest | 4 - .../spicetify-cli-2.36.13.ebuild | 105 ------------------ .../spicetify-cli-2.36.14.ebuild | 105 ------------------ 3 files changed, 214 deletions(-) delete mode 100644 app-misc/spicetify-cli/spicetify-cli-2.36.13.ebuild delete mode 100644 app-misc/spicetify-cli/spicetify-cli-2.36.14.ebuild diff --git a/app-misc/spicetify-cli/Manifest b/app-misc/spicetify-cli/Manifest index e645a76..4a0b4fe 100644 --- a/app-misc/spicetify-cli/Manifest +++ b/app-misc/spicetify-cli/Manifest @@ -1,6 +1,2 @@ -DIST spicetify-cli-2.36.13-deps.tar.xz 5203916 BLAKE2B 6563c43cc708a6c7c037f49ea0fc6cf5ff51af3a6073e8ebbdcf91bce4ff6adf62e4b3eaf04122dfc48614ca65a3e3b60adb73a9388e59e7a601dfae8d040aa1 SHA512 658a8d1e127247a51cea1e9284c3d912c035528373cefa52a8369ddbb0de857178481e7aec84f611e40eb4f5b0a9d212bee19135b6855de010ac05b3f1630954 -DIST spicetify-cli-2.36.13.tar.gz 2020031 BLAKE2B 62b52ddab0e045906b55ec577f0d5d5c29211143c472f4fbe856d6036c41c6807d319a3788ee13c1c25251e853757a229e99a150eb1d01ddd1c7ff0e9e5ed12c SHA512 afac8ef74c40301053203cc3566a6528d034067375d87ccb7415bfaf4ab0b85aec62b4a0932be82aa89ddcc8762e4a72d2a39c0fe746034f06b716f045daea57 -DIST spicetify-cli-2.36.14-deps.tar.xz 5203804 BLAKE2B 5b430add99572678f452a75f6dea3bf9b7bda51c38679dd502613e613c16931f2cb76f71a2e113df00bfb16df0043fb404f9190b25a136bd3ae74a30969bd82d SHA512 3fed571f03bdc1c8ce7fc2041cdc54fb966653d5041767772c6dafdb6287727a91f449edef63209dc69cb9d999b054bd3c6c034bcc7685435f034ca444ad40a0 -DIST spicetify-cli-2.36.14.tar.gz 2020437 BLAKE2B 2350bc9aa0414f8fd8bca36acf0c47bfbf17dbe93094e63d88299eba9b5ba2cec64cd815daf9fa690db5e916361e6d3004ff6dea75d8d6a5b0eec9c38d608e68 SHA512 b9f09241d8a68d307d67fb1a90b9f9f8f660ffccc9870639720247549ad03c7552d47ac5458c91c77da036bd5beeeaaaf27bdf943411481d05347c4ffc42a6b1 DIST spicetify-cli-2.36.15-deps.tar.xz 5207432 BLAKE2B fe6af1e3308c1492bd41ba6fba2a09fcd2c57b4ead4ed6c11d6f9df73a031af2fc5ea0f91d38a43c4f02caff56fc1f30b1dc36bf437e637e823cf5ca487a421c SHA512 80bdcfdbbff4d554a2e45eb57d45258f6ecd089485842924683704ebbd26060344b240dfe4bf80bbb847c2ea0bd62097f552d3f742dfd4145854b8f1e2da7876 DIST spicetify-cli-2.36.15.tar.gz 2020827 BLAKE2B eeea01c083025f5c7df8cc0f83d3494fd7f593126c47836fb2ef810026080b94096edd543548a32f1ad0ef1b478dbc65f48d04bdc7c204b68ad660d4b4f9cf6f SHA512 747e4de5f30c23865af74e8b3ed055d481540a4a27c7520f9db77d2acc36c45f333891a58ce757cecf95dfeedd20e61e78aa6d22d1cc03b34f5bf87f339d1b82 diff --git a/app-misc/spicetify-cli/spicetify-cli-2.36.13.ebuild b/app-misc/spicetify-cli/spicetify-cli-2.36.13.ebuild deleted file mode 100644 index efca4c3..0000000 --- a/app-misc/spicetify-cli/spicetify-cli-2.36.13.ebuild +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module - -MY_PN="cli" - -WHITELIST_VERSIONS=( - "<> 1.2.8 1.2.40" -) - -whitelist_versions() { - local version_spec version1 version2 - local -a deps - - SPOTIFY_VERSIONS= - - # Iterate in reverse for elog - for ((index = $(( ${#WHITELIST_VERSIONS[@]} - 1 )); index >= 0; index--)); do - read -r version_spec version1 version2 <<< "${WHITELIST_VERSIONS[${index}]}" - - case ${version_spec} in - "<>") - deps[$index]="( <=media-sound/spotify-${version2} >=media-sound/spotify-${version1} )" - SPOTIFY_VERSIONS+="${version1} -> ${version2}" - ;; - "~") - deps[$index]="~media-sound/spotify-${version1}" - SPOTIFY_VERSIONS+="${version1}" - ;; - *) - die "Invalid version specifier in WHITELIST_VERSIONS" - ;; - esac - - if [[ ${index} == 0 ]]; then - SPOTIFY_VERSIONS+=". " - elif [[ ${index} == 1 ]]; then - SPOTIFY_VERSIONS+=" and " - else - SPOTIFY_VERSIONS+=", " - fi - done - - RDEPEND=" || ( ${deps[@]} )" -} -whitelist_versions - -DESCRIPTION="Commandline tool to customize Spotify client." -HOMEPAGE="https://spicetify.app/" -SRC_URI=" - https://github.com/spicetify/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz -" -S="${WORKDIR}/${MY_PN}-${PV}" - -LICENSE="Apache-2.0 BSD LGPL-2.1 MIT" -SLOT="0" -KEYWORDS="~amd64" - -# no tests -RESTRICT="test" - -INSTALLDIR="/opt/${PN}" - -src_compile() { - ego build -ldflags "-X main.version=${PV}" -} - -src_install() { - insinto "${INSTALLDIR}" - doins -r {CustomApps,Extensions,Themes,jsHelper,cli} - newbin - spicetify <<-EOF - #!/usr/bin/env sh - exec /opt/spicetify-cli/cli \$@ - EOF - fperms +x "${INSTALLDIR}/cli" -} - -pkg_postinst() { - elog "Spicetify requires a Spotify install that it can modify." - elog "To give read and write permissions to everyone on the system to run the following commands as root." - elog "# chmod a+wr /opt/spotify/spotify-client" - elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R" - elog "" - elog "WARNING: Do not run spicetify as root please" - elog "" - elog "Spicetify compatibility is limited to the following Spotify versions:" - elog " ${SPOTIFY_VERSIONS}" - elog "" - elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:" - elog " https://spicetify.app/docs/advanced-usage/installation#spotify-installed-from-flatpak" - elog "" - elog "To install themes see:" - elog " https://spicetify.app/docs/advanced-usage/themes" - - if $(has_version -r ">=media-sound/spotify-1.2.25"); then - elog "" - elog "The New Releases custom app no longer works with Spotify 1.2.25 and higher. As an alternative," - elog "please use What's New which was created by Spotify and can be enabled via Experimental Features" - elog "if it isn't already enabled." - fi -} diff --git a/app-misc/spicetify-cli/spicetify-cli-2.36.14.ebuild b/app-misc/spicetify-cli/spicetify-cli-2.36.14.ebuild deleted file mode 100644 index 6b961da..0000000 --- a/app-misc/spicetify-cli/spicetify-cli-2.36.14.ebuild +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module - -MY_PN="cli" - -WHITELIST_VERSIONS=( - "<> 1.2.13 1.2.40" -) - -whitelist_versions() { - local version_spec version1 version2 - local -a deps - - SPOTIFY_VERSIONS= - - # Iterate in reverse for elog - for ((index = $(( ${#WHITELIST_VERSIONS[@]} - 1 )); index >= 0; index--)); do - read -r version_spec version1 version2 <<< "${WHITELIST_VERSIONS[${index}]}" - - case ${version_spec} in - "<>") - deps[$index]="( <=media-sound/spotify-${version2} >=media-sound/spotify-${version1} )" - SPOTIFY_VERSIONS+="${version1} -> ${version2}" - ;; - "~") - deps[$index]="~media-sound/spotify-${version1}" - SPOTIFY_VERSIONS+="${version1}" - ;; - *) - die "Invalid version specifier in WHITELIST_VERSIONS" - ;; - esac - - if [[ ${index} == 0 ]]; then - SPOTIFY_VERSIONS+=". " - elif [[ ${index} == 1 ]]; then - SPOTIFY_VERSIONS+=" and " - else - SPOTIFY_VERSIONS+=", " - fi - done - - RDEPEND=" || ( ${deps[@]} )" -} -whitelist_versions - -DESCRIPTION="Commandline tool to customize Spotify client." -HOMEPAGE="https://spicetify.app/" -SRC_URI=" - https://github.com/spicetify/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz -" -S="${WORKDIR}/${MY_PN}-${PV}" - -LICENSE="Apache-2.0 BSD LGPL-2.1 MIT" -SLOT="0" -KEYWORDS="~amd64" - -# no tests -RESTRICT="test" - -INSTALLDIR="/opt/${PN}" - -src_compile() { - ego build -ldflags "-X main.version=${PV}" -} - -src_install() { - insinto "${INSTALLDIR}" - doins -r {CustomApps,Extensions,Themes,jsHelper,cli} - newbin - spicetify <<-EOF - #!/usr/bin/env sh - exec /opt/spicetify-cli/cli \$@ - EOF - fperms +x "${INSTALLDIR}/cli" -} - -pkg_postinst() { - elog "Spicetify requires a Spotify install that it can modify." - elog "To give read and write permissions to everyone on the system to run the following commands as root." - elog "# chmod a+wr /opt/spotify/spotify-client" - elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R" - elog "" - elog "WARNING: Do not run spicetify as root please" - elog "" - elog "Spicetify compatibility is limited to the following Spotify versions:" - elog " ${SPOTIFY_VERSIONS}" - elog "" - elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:" - elog " https://spicetify.app/docs/advanced-usage/installation#spotify-installed-from-flatpak" - elog "" - elog "To install themes see:" - elog " https://spicetify.app/docs/advanced-usage/themes" - - if $(has_version -r ">=media-sound/spotify-1.2.25"); then - elog "" - elog "The New Releases custom app no longer works with Spotify 1.2.25 and higher. As an alternative," - elog "please use What's New which was created by Spotify and can be enabled via Experimental Features" - elog "if it isn't already enabled." - fi -}