[proaudio] [1329] added escons <-- so scons is $MAKEOPTS aware |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Revision: 1329
Author: evermind
Date: 2008-09-26 00:56:11 +0200 (Fri, 26 Sep 2008)
Log Message:
-----------
added escons <-- so scons is $MAKEOPTS aware
Modified Paths:
--------------
trunk/overlays/proaudio/eclass/exteutils.eclass
Modified: trunk/overlays/proaudio/eclass/exteutils.eclass
===================================================================
--- trunk/overlays/proaudio/eclass/exteutils.eclass 2008-09-25 22:54:13 UTC (rev 1328)
+++ trunk/overlays/proaudio/eclass/exteutils.eclass 2008-09-25 22:56:11 UTC (rev 1329)
@@ -9,13 +9,15 @@
# extend eutils eclass
# gives back 1 if useflag set, 0 if not
-# syntax: usesflag "flag"
-usesflag() {
- local retval="0"
- use "$1" && retval="1"
- echo "${retval}"
+# syntax: scons_use_enable flag [option]
+scons_use_enable() {
+ use ${1} && echo "${2}=1" || echo "${2}=0"
}
+escons() {
+ scons ${MAKEOPTS} "$@"
+}
+
# returns true/false if pkg is installed or not
# syntax: is_pkg_installed <category/pkgname>
# DEPRICATED: use has_version instead