From e81f2ede1151f21b817dbd97c29a082161be60c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sat, 20 Dec 2025 14:31:56 +0100 Subject: [PATCH] net-misc/gallery-dl: bump to 1.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- net-misc/gallery-dl/Manifest | 1 + net-misc/gallery-dl/gallery-dl-1.31.1.ebuild | 49 ++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 net-misc/gallery-dl/gallery-dl-1.31.1.ebuild diff --git a/net-misc/gallery-dl/Manifest b/net-misc/gallery-dl/Manifest index 0a2504f69af3..5c6caa35bc29 100644 --- a/net-misc/gallery-dl/Manifest +++ b/net-misc/gallery-dl/Manifest @@ -1,2 +1,3 @@ DIST gallery-dl-1.30.10.gh.tar.gz 1000053 BLAKE2B 13e653d05b5b4c0df6e5ca51cc25cc0f3c3d00bf606ce6274fe93751cf714ed7d76df38306bd4908d5b4d54fdb5291f3f993e142437eeecb68d8f7899b9f801e SHA512 fd2e2b2a8095d376e8fc9fcc0379bceb209385e50c708cb66b3168e5dc67dd0da8b51d70b944f1a426b9bb515b606db9b688fd5855d014cb1a63876d75e9c644 DIST gallery-dl-1.31.0.gh.tar.gz 1032784 BLAKE2B 348a3cc257c70dcefcbab9d49c2ab83a54300154734d43dc935e621d2b2935abfb0462954275f4fd353654c3d5d5a8baa643ccc3334ac920c435f75b0342da83 SHA512 5b872fd4535286a3571db58337ec7a09306c3db72dc44fa88ede31a61b4619aa6b4df3f3f0d21cfc9758eb83d77eac07d8bbfdd8448fa820fbcf11668baee7bc +DIST gallery-dl-1.31.1.gh.tar.gz 1042784 BLAKE2B e721792190f9c3583bbd35f51b1f9d450c7cf0c233d8d6d5d3bd85cffc5e8a255ae53c5f247c49e38105bef10907e889916e70e195f688e476ceca44a017bb7a SHA512 53096a319ad59e156fa675382b716100f493fcf014aa4a3f11e94f1c588c382ca5b84c939decbb217d36d21399dd7747ddaaa876a2e9ba754b4c09e10c9c6ad9 diff --git a/net-misc/gallery-dl/gallery-dl-1.31.1.ebuild b/net-misc/gallery-dl/gallery-dl-1.31.1.ebuild new file mode 100644 index 000000000000..00e51376ef1f --- /dev/null +++ b/net-misc/gallery-dl/gallery-dl-1.31.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) +PYTHON_REQ_USE="sqlite,ssl,xml(+)" +DISTUTILS_USE_PEP517="setuptools" + +inherit distutils-r1 optfeature + +DESCRIPTION="Download image galleries and collections from several image hosting sites" +HOMEPAGE="https://github.com/mikf/gallery-dl/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/mikf/${PN}.git" +else + SRC_URI="https://github.com/mikf/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND=" + >=dev-python/requests-2.11.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest + +src_prepare() { + # Tests against real servers, some tests always fail and some are subject to change. + rm ./test/test_{extractor,results}.py || die + + distutils-r1_src_prepare +} + +python_compile_all() { + emake PYTHON="${EPYTHON}" ./data/completion/{,_}gallery-dl man +} + +pkg_postinst() { + optfeature "Pixiv Ugoira to WebM conversion" media-video/ffmpeg + optfeature "video downloads" net-misc/yt-dlp +}