2023-02-24 19:20:47 +01:00
|
|
|
# Copyright 2022-2023 Gentoo Authors
|
2022-12-20 13:20:09 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2023-02-24 19:20:47 +01:00
|
|
|
PYTHON_COMPAT=( python3_{9..11} )
|
2022-12-20 13:20:09 +01:00
|
|
|
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() {
|
2023-02-24 19:20:47 +01:00
|
|
|
export PATH="${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}"
|
2022-12-20 13:20:09 +01:00
|
|
|
emake -C tests
|
|
|
|
distutils-r1_src_test
|
|
|
|
}
|