summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-08-09 19:29:51 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-08-09 19:29:51 +0000
commitafce7b3b03068bbacd92439198e93555608ed696 (patch)
tree97ee5abe10604372599c6a17d33222e18a2e1238 /eclass/freebsd.eclass
parentold (diff)
downloadgentoo-2-afce7b3b03068bbacd92439198e93555608ed696.tar.gz
gentoo-2-afce7b3b03068bbacd92439198e93555608ed696.tar.bz2
gentoo-2-afce7b3b03068bbacd92439198e93555608ed696.zip
move install -l emulation exports to src_unpack. it should be called by every ebuild.
Diffstat (limited to 'eclass/freebsd.eclass')
-rw-r--r--eclass/freebsd.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index f352c3962e53..18d47da09ddf 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.32 2013/08/09 16:28:26 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.33 2013/08/09 19:29:51 aballier Exp $
#
# Diego Pettenò <flameeyes@gentoo.org>
@@ -97,6 +97,13 @@ freebsd_src_unpack() {
freebsd_do_patches
freebsd_rename_libraries
+
+ # Starting from FreeBSD 9.2, its install command supports the -l option and
+ # they now use it. Emulate it if we are on a system that does not have it.
+ if [[ ${RV} > 9.1 ]] && ! has_version '>=sys-freebsd/freebsd-ubin-9.2_beta1' ; then
+ export INSTALL_LINK="ln -f"
+ export INSTALL_SYMLINK="ln -fs"
+ fi
}
freebsd_src_compile() {
@@ -108,13 +115,6 @@ freebsd_src_compile() {
# Make sure to use FreeBSD definitions while crosscompiling
[[ -z "${BMAKE}" ]] && BMAKE="$(freebsd_get_bmake)"
- # Starting from FreeBSD 9.2, its install command supports the -l option and
- # they now use it. Emulate it if we are on a system that does not have it.
- if [[ ${RV} > 9.1 ]] && ! has_version '>=sys-freebsd/freebsd-ubin-9.2_beta1' ; then
- export INSTALL_LINK="ln -f"
- export INSTALL_SYMLINK="ln -fs"
- fi
-
# Create objdir if MAKEOBJDIRPREFIX is defined, so that we can make out of
# tree builds easily.
if [[ -n "${MAKEOBJDIRPREFIX}" ]] ; then