net-misc/streamlink: wire up verify-sig

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-01-18 23:54:03 +00:00
parent 9254bc5dbd
commit e19728b6c0
3 changed files with 45 additions and 36 deletions

View File

@@ -1,3 +1,4 @@
DIST streamlink-7.6.0.tar.gz 808110 BLAKE2B bd77e3deb7663a39904ff666a038214477b95bead2b070be311d60e5a617732bf25a6fec9ee7a8d7515b845e8fef2183537a65becc2db66f43168e273a24e95a SHA512 1efadf85f5a7d0767e258219b83cb1524a10057d90ea89a6a402b35a22fb0545fc730b89e0e683f21bbd406588e872aac392f415df82552c38237746fff79f9f
DIST streamlink-8.1.0.tar.gz 822049 BLAKE2B ab25096ff3c39b041dac825e81182ac7c942bb0ac157ca8c83d7a5bec39ada3f8202b071d6f69b7e0fe9eff4d32ffb42bb5a933cce8f2ba08898ecfecbb4e2c1 SHA512 4dfb4a870e4ed5242b7c13b1e0c9940657d836c7ab709fa041ca17025daada25d61973643e7aef9a9829f9133d77120d008ced790bd031eff418a5357f8a57fb
DIST streamlink-8.1.2.tar.gz 823590 BLAKE2B 23c39d0e532f17e33cd8367a61f8cf39950fbdb00dc820954c34a93474ef08c1347ab53ac459eff0043907a5886e1b643dd52a847f2968c1aa2d061ba3e37a26 SHA512 ce57617ba1de2fbb62e67abb406ae2550f9fd92ed20422480d8b0f8deb8fc7a9af1498de03d299259b983d4467fb323c4a600e16aed9d44b7b81581d9c3f3b55
DIST streamlink-8.1.2.tar.gz.asc 228 BLAKE2B c1a196fea2ada8bd04367da3a3ab8bee8af64f86a7e1f67edcb497aa1b77dfd1214a39d646b43eddeeb8676fb9d6e15752e4f1d6f67f8b9c3ed545e88e159ad8 SHA512 cde4fdf12778bd62b19e10f22d406467a7741818a56abc03ee8be2654a2a9ddfdabc7b6bbe3537963821f52cda726689ba87da9f48e39d9aba6f7d43533bb58a

View File

@@ -3,11 +3,6 @@
EAPI=8
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="https://github.com/streamlink/${PN}.git"
inherit git-r3
fi
DISTUTILS_SINGLE_IMPL=1
# >= 6.2.1 uses a bunch of setuptools hooks instead of vanilla setuptools
# https://github.com/streamlink/streamlink/commit/194d9bc193f5285bc1ba33af5fd89209a96ad3a7
@@ -19,15 +14,31 @@ inherit distutils-r1
DESCRIPTION="CLI for extracting streams from websites to a video player of your choice"
HOMEPAGE="https://streamlink.github.io/"
if [[ ${PV} != 9999* ]]; then
SRC_URI="https://github.com/streamlink/${PN}/releases/download/${PV}/${P}.tar.gz"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/streamlink/${PN}.git"
inherit git-r3
BDEPEND+="
$(python_gen_cond_dep '
>=dev-python/versioningit-2.0.0[${PYTHON_USEDEP}]
')
"
else
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/streamlink.asc
inherit verify-sig
SRC_URI="
https://github.com/streamlink/${PN}/releases/download/${PV}/${P}.tar.gz
verify-sig? ( https://github.com/streamlink/${PN}/releases/download/${PV}/${P}.tar.gz.asc )
"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-streamlink )"
fi
LICENSE="BSD-2 Apache-2.0"
SLOT="0"
if [[ ${PV} != 9999* ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
# See https://github.com/streamlink/streamlink/commit/9d8156dd794ee0919297cd90d85bcc11b8a28358 for chardet/charset-normalizer dep
RDEPEND="
@@ -50,7 +61,7 @@ RDEPEND="
>=dev-python/urllib3-2.0.0[${PYTHON_USEDEP}]
')
"
BDEPEND="
BDEPEND+="
$(python_gen_cond_dep '
>=dev-python/setuptools-77[${PYTHON_USEDEP}]
test? (
@@ -60,13 +71,6 @@ BDEPEND="
)
')
"
if [[ ${PV} == 9999* ]]; then
BDEPEND+="
$(python_gen_cond_dep '
>=dev-python/versioningit-2.0.0[${PYTHON_USEDEP}]
')
"
fi
EPYTEST_PLUGINS=( pytest-trio freezegun requests-mock )

View File

@@ -3,11 +3,6 @@
EAPI=8
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="https://github.com/streamlink/${PN}.git"
inherit git-r3
fi
DISTUTILS_SINGLE_IMPL=1
# >= 6.2.1 uses a bunch of setuptools hooks instead of vanilla setuptools
# https://github.com/streamlink/streamlink/commit/194d9bc193f5285bc1ba33af5fd89209a96ad3a7
@@ -19,15 +14,31 @@ inherit distutils-r1
DESCRIPTION="CLI for extracting streams from websites to a video player of your choice"
HOMEPAGE="https://streamlink.github.io/"
if [[ ${PV} != 9999* ]]; then
SRC_URI="https://github.com/streamlink/${PN}/releases/download/${PV}/${P}.tar.gz"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/streamlink/${PN}.git"
inherit git-r3
BDEPEND+="
$(python_gen_cond_dep '
>=dev-python/versioningit-2.0.0[${PYTHON_USEDEP}]
')
"
else
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/streamlink.asc
inherit verify-sig
SRC_URI="
https://github.com/streamlink/${PN}/releases/download/${PV}/${P}.tar.gz
verify-sig? ( https://github.com/streamlink/${PN}/releases/download/${PV}/${P}.tar.gz.asc )
"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-streamlink )"
fi
LICENSE="BSD-2 Apache-2.0"
SLOT="0"
if [[ ${PV} != 9999* ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
# See https://github.com/streamlink/streamlink/commit/9d8156dd794ee0919297cd90d85bcc11b8a28358 for chardet/charset-normalizer dep
RDEPEND="
@@ -50,7 +61,7 @@ RDEPEND="
>=dev-python/urllib3-2.0.0[${PYTHON_USEDEP}]
')
"
BDEPEND="
BDEPEND+="
$(python_gen_cond_dep '
>=dev-python/setuptools-77[${PYTHON_USEDEP}]
test? (
@@ -60,13 +71,6 @@ BDEPEND="
)
')
"
if [[ ${PV} == 9999* ]]; then
BDEPEND+="
$(python_gen_cond_dep '
>=dev-python/versioningit-2.0.0[${PYTHON_USEDEP}]
')
"
fi
EPYTEST_PLUGINS=( pytest-trio freezegun requests-mock )