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-1.13.4-r2.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-1.13.4-r2.ebuild')
-rw-r--r-- | sys-devel/automake/automake-1.13.4-r2.ebuild | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys-devel/automake/automake-1.13.4-r2.ebuild b/sys-devel/automake/automake-1.13.4-r2.ebuild index e805dccdb6e6..6f00929967da 100644 --- a/sys-devel/automake/automake-1.13.4-r2.ebuild +++ b/sys-devel/automake/automake-1.13.4-r2.ebuild @@ -30,6 +30,10 @@ PATCHES=( "${FILESDIR}"/${PN}-1.14-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 @@ -40,12 +44,6 @@ src_configure() { econf --docdir="\$(datarootdir)/doc/${PF}" } -src_test() { - python_setup - - default -} - # slot the info pages. do this w/out munging the source so we don't have # to depend on texinfo to regen things. #464146 (among others) slot_info_pages() { |