diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-03-01 02:31:30 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-03-01 02:31:30 +0100 |
commit | d8f87d7389569af3520b9ca2dfc68e7a82059ccf (patch) | |
tree | 9eaa916b074c8a9e481a55a326852ab3e97f6dbe /sys-devel/automake/automake-9999.ebuild | |
parent | Revert "sys-devel/automake: Rev bump to remove Python 2.7 dependency for FEAT... (diff) | |
download | gentoo-d8f87d7389569af3520b9ca2dfc68e7a82059ccf.tar.gz gentoo-d8f87d7389569af3520b9ca2dfc68e7a82059ccf.tar.bz2 gentoo-d8f87d7389569af3520b9ca2dfc68e7a82059ccf.zip |
sys-devel/automake: Provide pkg_setup to call python_setup only when FEATURES=test is set
Previous attempt cfaa5ec192519a74951fd57f05c483984e408e4b was reverted in commit
cd0e6915f3f7a02915bc7029026bfe2f53dc7f68 to avoid unnecessary mass rebuild for
"--changed-deps=y" users which was possible because dependencies were fine.
Package was only failing at build time in pkg_setup when Python 2.7 wasn't
available because eclass exports pkg_setup.
Bug: https://bugs.gentoo.org/648940
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-devel/automake/automake-9999.ebuild')
-rw-r--r-- | sys-devel/automake/automake-9999.ebuild | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-9999.ebuild index 3add6f0127e5..fe0a51c196a7 100644 --- a/sys-devel/automake/automake-9999.ebuild +++ b/sys-devel/automake/automake-9999.ebuild @@ -44,6 +44,10 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-1.15-install-sh-avoid-low-risk-race-in-tmp.patch ) +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_prepare() { default export WANT_AUTOCONF=2.5 @@ -87,12 +91,6 @@ slot_info_pages() { popd >/dev/null || die } -src_test() { - python_setup - - default -} - src_install() { default |