1 |
commit: 1c3c267d81d0b90263efa3a9b0a07a9075b4c29b |
2 |
Author: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp> |
3 |
AuthorDate: Thu Oct 31 16:57:34 2013 +0000 |
4 |
Commit: Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> com> |
5 |
CommitDate: Thu Oct 31 16:57:34 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=1c3c267d |
7 |
|
8 |
freebsd.eclass: Fixed a problem of numerical comparison in 10.0. |
9 |
|
10 |
--- |
11 |
eclass/freebsd.eclass | 16 ++++++++-------- |
12 |
1 file changed, 8 insertions(+), 8 deletions(-) |
13 |
|
14 |
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass |
15 |
index 0ce056a..8ad32c8 100644 |
16 |
--- a/eclass/freebsd.eclass |
17 |
+++ b/eclass/freebsd.eclass |
18 |
@@ -129,16 +129,15 @@ freebsd_rename_libraries() { |
19 |
freebsd_src_unpack() { |
20 |
if [[ ${MY_PV} == *9999* ]]; then |
21 |
S="${WORKDIR}" subversion_src_unpack |
22 |
+ |
23 |
+ # When share/mk exists in ${WORKDIR}, it is used on FreeBSD 10.0. |
24 |
+ # Removed "${WORKDIR}"/share/mk/*.mk, use to force /usr/share/mk. |
25 |
+ if [[ ${PN} != freebsd-mk-defs ]] ; then |
26 |
+ [[ -e "${WORKDIR}"/share/mk ]] && rm -rf "${WORKDIR}"/share/mk/*.mk |
27 |
+ fi |
28 |
else |
29 |
unpack ${A} |
30 |
fi |
31 |
- |
32 |
- # When share/mk exists in ${WORKDIR}, it is used on FreeBSD 10.0. |
33 |
- # I would enable the code until I find a better solution. |
34 |
- if [[ ${MY_PV} == 9999 ]] && [[ ${PN} != freebsd-mk-defs ]]; then |
35 |
- [[ -e "${WORKDIR}"/share/mk ]] && rm -rf "${WORKDIR}"/share/mk/*.mk |
36 |
- fi |
37 |
- |
38 |
cd "${S}" |
39 |
|
40 |
dummy_mk ${REMOVE_SUBDIRS} |
41 |
@@ -148,7 +147,8 @@ freebsd_src_unpack() { |
42 |
|
43 |
# Starting from FreeBSD 9.2, its install command supports the -l option and |
44 |
# they now use it. Emulate it if we are on a system that does not have it. |
45 |
- if [[ ${RV} > 9.1 ]] && ! has_version '>=sys-freebsd/freebsd-ubin-9.2_beta1' ; then |
46 |
+ version_compare ${RV} 9.1 |
47 |
+ if [[ $? -eq 3 ]] && ! has_version '>=sys-freebsd/freebsd-ubin-9.2_beta1' ; then |
48 |
export INSTALL_LINK="ln -f" |
49 |
export INSTALL_SYMLINK="ln -fs" |
50 |
fi |