diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-29 23:00:17 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-29 23:04:22 +0100 |
commit | 117dda79905cb93c250729a31461b2c6f8bbcd94 (patch) | |
tree | 707e3ad812ab9536113325f6585900fb8a2428b4 /dev-python/pypax | |
parent | dev-java/resin-servlet-api: Stabilize 4.0.46-r1 x86, #832342 (diff) | |
download | gentoo-117dda79905cb93c250729a31461b2c6f8bbcd94.tar.gz gentoo-117dda79905cb93c250729a31461b2c6f8bbcd94.tar.bz2 gentoo-117dda79905cb93c250729a31461b2c6f8bbcd94.zip |
dev-python/pypax: Switch to PEP 517 build
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pypax')
-rw-r--r-- | dev-python/pypax/pypax-0.9.5-r1.ebuild | 46 | ||||
-rw-r--r-- | dev-python/pypax/pypax-9999.ebuild | 15 |
2 files changed, 52 insertions, 9 deletions
diff --git a/dev-python/pypax/pypax-0.9.5-r1.ebuild b/dev-python/pypax/pypax-0.9.5-r1.ebuild new file mode 100644 index 000000000000..1da867b776a7 --- /dev/null +++ b/dev-python/pypax/pypax-0.9.5-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 + +if [[ ${PV} == *9999* ]] ; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/elfix.git" + inherit git-r3 +else + SRC_URI="https://dev.gentoo.org/~blueness/elfix/elfix-${PV}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + S="${WORKDIR}/elfix-${PV}" +fi + +DESCRIPTION="Python module to get or set either PT_PAX and/or XATTR_PAX flags" +HOMEPAGE="https://dev.gentoo.org/~blueness/elfix/ + https://wiki.gentoo.org/wiki/Project:Hardened/PaX_Quickstart" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+ptpax +xtpax" +REQUIRED_USE="|| ( ptpax xtpax )" + +RDEPEND=" + ptpax? ( dev-libs/elfutils ) + xtpax? ( sys-apps/attr )" +DEPEND="${RDEPEND}" + +src_compile() { + cd scripts || die + unset PTPAX + unset XTPAX + use ptpax && export PTPAX="yes" + use xtpax && export XTPAX="yes" + distutils-r1_src_compile +} + +src_install() { + cd scripts || die + distutils-r1_src_install +} diff --git a/dev-python/pypax/pypax-9999.ebuild b/dev-python/pypax/pypax-9999.ebuild index 6e639fff609e..1da867b776a7 100644 --- a/dev-python/pypax/pypax-9999.ebuild +++ b/dev-python/pypax/pypax-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 -DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..9} ) inherit distutils-r1 @@ -13,7 +13,7 @@ if [[ ${PV} == *9999* ]] ; then inherit git-r3 else SRC_URI="https://dev.gentoo.org/~blueness/elfix/elfix-${PV}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" S="${WORKDIR}/elfix-${PV}" fi @@ -24,15 +24,12 @@ HOMEPAGE="https://dev.gentoo.org/~blueness/elfix/ LICENSE="GPL-3" SLOT="0" IUSE="+ptpax +xtpax" - REQUIRED_USE="|| ( ptpax xtpax )" RDEPEND=" ptpax? ( dev-libs/elfutils ) xtpax? ( sys-apps/attr )" - -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - ${RDEPEND}" +DEPEND="${RDEPEND}" src_compile() { cd scripts || die |