src_prepare-overlay/dev-python/icoextract/icoextract-0.1.4.ebuild
Alfred Wingate 5c25d3d9a0 dev-python/icoextract: new package, add 0.1.4
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2022-12-23 01:44:36 +02:00

38 lines
722 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..10} )
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() {
emake -C tests
distutils-r1_src_test
}