commit:     070bd3b85bf308afdfbb064c8deac031932cf555
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 27 06:05:05 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 27 06:12:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=070bd3b8

sys-apps/elfix: wire up (restricted) tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/elfix/elfix-0.9.5.ebuild | 15 +++++++--------
 sys-apps/elfix/elfix-9999.ebuild  | 17 ++++++++---------
 2 files changed, 15 insertions(+), 17 deletions(-)

diff --git a/sys-apps/elfix/elfix-0.9.5.ebuild 
b/sys-apps/elfix/elfix-0.9.5.ebuild
index d3dc77ed17fb..0f1ed96f6f05 100644
--- a/sys-apps/elfix/elfix-0.9.5.ebuild
+++ b/sys-apps/elfix/elfix-0.9.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -17,14 +17,12 @@ 
HOMEPAGE="https://www.gentoo.org/proj/en/hardened/pax-quickstart.xml
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="+ptpax +xtpax"
-
-DOCS=( AUTHORS ChangeLog INSTALL README THANKS TODO )
-
+IUSE="+ptpax test +xtpax"
 REQUIRED_USE="|| ( ptpax xtpax )"
-
 # These only work with a properly configured PaX kernel
-RESTRICT="test"
+RESTRICT="!test? ( test ) test"
+
+DOCS=( AUTHORS ChangeLog INSTALL README THANKS TODO )
 
 DEPEND="~dev-python/pypax-${PV}[ptpax=,xtpax=]
        ptpax? ( dev-libs/elfutils )
@@ -42,7 +40,8 @@ src_prepare() {
 
 src_configure() {
        rm -f "${S}/scripts/setup.py"
-       econf --disable-tests \
+       econf \
+               $(use_enable test tests) \
                $(use_enable ptpax) \
                $(use_enable xtpax)
 }

diff --git a/sys-apps/elfix/elfix-9999.ebuild b/sys-apps/elfix/elfix-9999.ebuild
index a7a57400096c..05b415e1f5d3 100644
--- a/sys-apps/elfix/elfix-9999.ebuild
+++ b/sys-apps/elfix/elfix-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -8,7 +8,7 @@ if [[ ${PV} == *9999* ]] ; then
        inherit autotools git-r3
 else
        SRC_URI="https://dev.gentoo.org/~blueness/elfix/${P}.tar.gz";
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 
~sparc ~x86"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc 
~ppc64 ~riscv ~sparc ~x86"
 fi
 
 DESCRIPTION="A suite of tools to work with ELF objects on Hardened Gentoo"
@@ -17,14 +17,12 @@ 
HOMEPAGE="https://www.gentoo.org/proj/en/hardened/pax-quickstart.xml
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="+ptpax +xtpax"
-
-DOCS=( AUTHORS ChangeLog INSTALL README THANKS TODO )
-
+IUSE="+ptpax test +xtpax"
 REQUIRED_USE="|| ( ptpax xtpax )"
-
 # These only work with a properly configured PaX kernel
-RESTRICT="test"
+RESTRICT="!test? ( test ) test"
+
+DOCS=( AUTHORS ChangeLog INSTALL README THANKS TODO )
 
 DEPEND="~dev-python/pypax-${PV}[ptpax=,xtpax=]
        ptpax? ( dev-libs/elfutils )
@@ -42,7 +40,8 @@ src_prepare() {
 
 src_configure() {
        rm -f "${S}/scripts/setup.py"
-       econf --disable-tests \
+       econf \
+               $(use_enable test tests) \
                $(use_enable ptpax) \
                $(use_enable xtpax)
 }

Reply via email to