scons-utils.eclass: Modernize the example not to rely on myescons...
authorMichał Górny <mgorny@gentoo.org>
Fri, 1 Jan 2016 09:11:58 +0000 (10:11 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 8 Jan 2016 05:14:36 +0000 (06:14 +0100)
eclass/scons-utils.eclass

index a2a6884e55d399794c4c91fbe4d33221ea6a1d33..e1b3a1b64184fdfc3f43330b132020f07c7e10d8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 # EAPI=4
 #
 # src_configure() {
-#      myesconsargs=(
+#      MYSCONS=(
 #              CC="$(tc-getCC)"
 #              $(use_scons nls ENABLE_NLS)
 #      )
 # }
 #
 # src_compile() {
-#      escons
+#      escons "${MYSCONS[@]}"
 # }
 #
 # src_install() {
 #      # note: this can be DESTDIR, INSTALL_ROOT, ... depending on package
-#      escons DESTDIR="${D}" install
+#      escons "${MYSCONS[@]}" DESTDIR="${D}" install
 # }
 # @CODE