diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-03-01 10:11:17 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-03-01 11:06:53 +0100 |
commit | feec564b833066ded6d8ce8ecd2227180ef1881f (patch) | |
tree | f8548610305040a65ff5e9d8df2e11d00d50dd4e /sys-freebsd | |
parent | games-rpg/manaplus: version bump (diff) | |
download | gentoo-feec564b833066ded6d8ce8ecd2227180ef1881f.tar.gz gentoo-feec564b833066ded6d8ce8ecd2227180ef1881f.tar.bz2 gentoo-feec564b833066ded6d8ce8ecd2227180ef1881f.zip |
sys-freebsd/freebsd-lib: discriminate GNU userland based on CBUILD:-CHOST which helps when cross-compiling.
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'sys-freebsd')
-rw-r--r-- | sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild index 0ce19a22cc0e..23f5e859fbe8 100644 --- a/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild +++ b/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild @@ -212,7 +212,7 @@ src_prepare() { # Try to fix sed calls for GNU sed. Do it only with GNU userland and force # BSD's sed on BSD. cd "${S}" - if use userland_GNU; then + if [[ ${CBUILD:-${CHOST}} != *bsd* ]]; then find . -name Makefile -exec sed -ibak 's/sed -i /sed -i/' {} \; sed -i -e 's/-i ""/-i""/' "${S}/csu/Makefile.inc" || die fi @@ -359,7 +359,7 @@ do_compile() { src_compile() { # Does not work with GNU sed # Force BSD's sed on BSD. - if use userland_BSD ; then + if [[ ${CBUILD:-${CHOST}} == *bsd* ]]; then export ESED=/usr/bin/sed unalias sed fi |