summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorYuta SATOH <nigoro@gentoo.gr.jp>2013-08-31 02:52:53 +0900
committerYuta SATOH <nigoro@gentoo.gr.jp>2013-08-31 02:52:53 +0900
commit7aff4d7ada6a697ed792bff248f720d703a726a1 (patch)
treefcc3f74e7e827495eeaf3e4a6309fec585b88543 /eclass
parentfreebsd.eclass: import from latest tree (diff)
downloadgentoo-bsd-7aff4d7ada6a697ed792bff248f720d703a726a1.tar.gz
gentoo-bsd-7aff4d7ada6a697ed792bff248f720d703a726a1.tar.bz2
gentoo-bsd-7aff4d7ada6a697ed792bff248f720d703a726a1.zip
freebsd.eclass: Changed to use to force /usr/share/mk on FreeBSD 10.0.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/freebsd.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index ea6b21a..aa5911d 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -132,6 +132,13 @@ freebsd_src_unpack() {
else
unpack ${A}
fi
+
+ # When share/mk exists in ${WORKDIR}, it is used on FreeBSD 10.0.
+ # I would enable the code until I find a better solution.
+ if [[ ${PV} == 9999 ]] && [[ ${PN} != freebsd-mk-defs ]]; then
+ [[ -e "${WORKDIR}"/share/mk ]] && rm -rf "${WORKDIR}"/share/mk
+ fi
+
cd "${S}"
dummy_mk ${REMOVE_SUBDIRS}