From 721bc4f1b46c1f01815e6c64c0c602e43b3f3090 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 28 Apr 2024 23:12:37 +0300 Subject: [PATCH] dev-python/icoextract: add 0.1.5 Signed-off-by: Alfred Wingate --- dev-python/icoextract/Manifest | 1 + dev-python/icoextract/icoextract-0.1.5.ebuild | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 dev-python/icoextract/icoextract-0.1.5.ebuild diff --git a/dev-python/icoextract/Manifest b/dev-python/icoextract/Manifest index 0b0467b..7f9ef30 100644 --- a/dev-python/icoextract/Manifest +++ b/dev-python/icoextract/Manifest @@ -1 +1,2 @@ DIST icoextract-0.1.4.gh.tar.gz 46660 BLAKE2B 5e08a6ae63ed8de204a7afcbee17253e853653c2896b3900565d1eb51e2b8765ef82f38fa1432becc37e0770f173aa343da0f3f30ef221bb50676ca1097a4f03 SHA512 61a902eeb6dbe7d212a7b077d75b061c7bff64066e16cd6d5f7e993c77b4d2877458349d82c5bc51b1470615e9e8dbd400df8c8f02faa649a9b0c235fed85ce8 +DIST icoextract-0.1.5.gh.tar.gz 47625 BLAKE2B 5db642a0494c67c68c4848a63ced27dc30e52e6c0fdfd067f25ec5badec861a29109c2327b1e424f248eb91d3e7cb90aefa1f30c499e704579874c4d026e88d9 SHA512 ae65347800e83380fd688d43105e17f304c9d3e8e0058c757740ff7ede8551a980eeee8c4119374457e9399e642aac3bd3e2d484b77ce6cdb16abdda47dc874e diff --git a/dev-python/icoextract/icoextract-0.1.5.ebuild b/dev-python/icoextract/icoextract-0.1.5.ebuild new file mode 100644 index 0000000..30b280a --- /dev/null +++ b/dev-python/icoextract/icoextract-0.1.5.ebuild @@ -0,0 +1,38 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +inherit distutils-r1 + +DESCRIPTION="Extract icons from Windows PE files (.exe/.dll)" +HOMEPAGE=" + https://pypi.org/project/icoextract/ + https://github.com/jlu5/icoextract +" +SRC_URI="https://github.com/jlu5/icoextract/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/pefile[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-util/mingw64-toolchain + ${RDEPEND} + ) +" + +distutils_enable_tests unittest + +src_test() { + export PATH="${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}" + emake -C tests + distutils-r1_src_test +}