summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta Satoh <nigoro.dev@gmail.com>2017-09-18 20:32:03 +0900
committerAlexis Ballier <aballier@gentoo.org>2017-10-02 10:56:06 +0200
commit2c347c1cb7a917fc6a2f506ba992072a708ed081 (patch)
tree13d84389b5de6a38040dd2d476fbcefeb47eaff7 /eclass/freebsd.eclass
parenteclass/freebsd.eclass: update some comments. (diff)
downloadgentoo-2c347c1cb7a917fc6a2f506ba992072a708ed081.tar.gz
gentoo-2c347c1cb7a917fc6a2f506ba992072a708ed081.tar.bz2
gentoo-2c347c1cb7a917fc6a2f506ba992072a708ed081.zip
eclass/freebsd.eclass: use install.sh when upgrading.
Diffstat (limited to 'eclass/freebsd.eclass')
-rw-r--r--eclass/freebsd.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index 64d28f9d483a..7c89d953c4ba 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -182,7 +182,7 @@ freebsd_src_unpack() {
local tarball="freebsd-src-${MY_PV}.tar.xz"
local topdir="usr/src/"
local extractlist=()
- for i in ${EXTRACTONLY} ; do
+ for i in ${EXTRACTONLY} tools/ ; do
extractlist+=( ${topdir}${i} )
done
ebegin "Unpacking parts of ${tarball} to ${WORKDIR}"
@@ -210,8 +210,9 @@ freebsd_src_unpack() {
export INSTALL_LINK="ln -f"
export INSTALL_SYMLINK="ln -fs"
fi
- if version_is_at_least 11.0 ${RV} ; then
- export RSYMLINK=" -l s"
+ # An older version of install command doesn't support the -T option.
+ if version_is_at_least 11.0 ${RV} && ! has_version ">=sys-freebsd/freebsd-ubin-${RV}" ; then
+ export INSTALL="sh ${WORKDIR}/tools/install.sh"
fi
# If CC=clang, we should use clang-cpp instead of cpp. #478810, #595878