diff options
author | 2013-08-09 15:48:54 +0000 | |
---|---|---|
committer | 2013-08-09 15:48:54 +0000 | |
commit | 6e376555cbc0194c99ca072562210733b9804814 (patch) | |
tree | 23896042998a4bc890f0715d145243b0c03c834c /eclass | |
parent | app-admin/lib_users: Bump to python-r1.eclass; add py3.3 support; Clean DESCR... (diff) | |
download | historical-6e376555cbc0194c99ca072562210733b9804814.tar.gz historical-6e376555cbc0194c99ca072562210733b9804814.tar.bz2 historical-6e376555cbc0194c99ca072562210733b9804814.zip |
Emulate install -l, by Yuta SATOH
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/freebsd.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass index 431c3ffd3ae0..9cf8ae8e5ea5 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.30 2013/08/09 13:58:47 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.31 2013/08/09 15:48:54 aballier Exp $ # # Diego Pettenò <flameeyes@gentoo.org> @@ -108,6 +108,13 @@ 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 |