diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-08-12 06:27:00 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-12 06:38:10 -0400 |
commit | 1c3e65403d006ea25f98e6405486fa1201e9d173 (patch) | |
tree | 1c7d7a71bc332f101fd4a623bf181a55f0a98431 /sys-libs | |
parent | sys-libs/ncurses: avoid building tests when unused (diff) | |
download | gentoo-1c3e65403d006ea25f98e6405486fa1201e9d173.tar.gz gentoo-1c3e65403d006ea25f98e6405486fa1201e9d173.tar.bz2 gentoo-1c3e65403d006ea25f98e6405486fa1201e9d173.zip |
sys-libs/ncurses: rework disabling of progs
Since the configure script has an option to disable progs, leverage that
instead of whiting out a random make variable. It's the same result, but
feels cleaner and requires less code.
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/ncurses/ncurses-6.0.ebuild | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys-libs/ncurses/ncurses-6.0.ebuild b/sys-libs/ncurses/ncurses-6.0.ebuild index 8a055bf713ea..08d4b73ddabe 100644 --- a/sys-libs/ncurses/ncurses-6.0.ebuild +++ b/sys-libs/ncurses/ncurses-6.0.ebuild @@ -115,6 +115,7 @@ do_configure() { $(use_enable !debug leaks) $(use_with debug expanded) $(use_with !debug macros) + $(multilib_native_with progs) $(use_with test tests) $(use_with trace) $(use_with tinfo termlib) @@ -130,22 +131,20 @@ src_compile() { # because people often don't keep matching host/target # ncurses versions #249363 if tc-is-cross-compiler && ! ROOT=/ has_version ~sys-libs/${P} ; then - make_flags="-C progs tic" - BUILD_DIR="${HOSTTIC_DIR}" do_compile cross + BUILD_DIR="${HOSTTIC_DIR}" do_compile cross -C progs tic fi multilib-minimal_src_compile } multilib_src_compile() { - make_flags="" - multilib_is_native_abi || make_flags="PROGS= " do_compile narrowc use unicode && do_compile widec } do_compile() { cd "${BUILD_DIR}"-$1 || die + shift # A little hack to fix parallel builds ... they break when # generating sources so if we generate the sources first (in @@ -158,7 +157,7 @@ do_compile() { # Manually delete the pc-files file so the install step will # create the .pc files we want. rm -f misc/pc-files - emake ${make_flags} + emake "$@" } multilib_src_install() { |