summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-09-26 23:33:55 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-09-26 23:33:55 +0000
commit70a5ec757c5806b041f8fe5c23fe1cd5813d56e6 (patch)
treecf169e23ba79acf6c4a78bae08f55ed48580340b /eclass/portability.eclass
parentmysql support was built even with USE=-mysql if mysql was installed in system... (diff)
downloadhistorical-70a5ec757c5806b041f8fe5c23fe1cd5813d56e6.tar.gz
historical-70a5ec757c5806b041f8fe5c23fe1cd5813d56e6.tar.bz2
historical-70a5ec757c5806b041f8fe5c23fe1cd5813d56e6.zip
Moved get_bmake function here.
Diffstat (limited to 'eclass/portability.eclass')
-rw-r--r--eclass/portability.eclass20
1 files changed, 19 insertions, 1 deletions
diff --git a/eclass/portability.eclass b/eclass/portability.eclass
index f093e962b9b6..0721f30c5888 100644
--- a/eclass/portability.eclass
+++ b/eclass/portability.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.3 2005/09/21 02:46:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.4 2005/09/26 23:33:55 flameeyes Exp $
#
# Author: Diego Pettenò <flameeyes@gentoo.org>
#
@@ -75,3 +75,21 @@ egethome() {
cut -d: -f6 <<<${ent}
fi
}
+
+# Gets the name of the BSD-ish make command (pmake from NetBSD)
+#
+# This will return make (provided by system packages) for BSD userlands,
+# or bsdmake for Darwin userlands and pmake for the rest of userlands,
+# both of which are provided by sys-devel/pmake package.
+#
+# Note: the bsdmake for Darwin userland is with compatibility with MacOSX
+# default name.
+get_bmake() {
+ if [[ ${USERLAND} == *BSD ]]; then
+ echo make
+ elif [[ ${USERLAND} == "Darwin" ]]; then
+ echo bsdmake
+ else
+ echo pmake
+ fi
+}