]> Some of my projects - anidbudpclient-overlay.git/commitdiff
Make use flags do something
authorAPTX <marek321@gmail.com>
Wed, 11 May 2011 17:59:09 +0000 (19:59 +0200)
committerAPTX <marek321@gmail.com>
Wed, 11 May 2011 17:59:09 +0000 (19:59 +0200)
app-anidbudpclient/anidbudpclient/anidbudpclient-9999.ebuild
profiles/repo_name [changed mode: 0644->0755]

index 2f9dcf4bc9fb7edca6a1b034159dd20e462303cd..aea29419616460a3481ed36dcd943ef629d3d44c 100755 (executable)
@@ -14,12 +14,12 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
 # none for now
-IUSE="+proxy +renametool debug"
+IUSE="+proxy +renameparser debug"
 
 # x11-libs/libqxt depends on gui/X even though it is not requird nor needed for this ebuild
 DEPEND="
        >=x11-libs/qt-core-4.7
-       renametool? ( >=x11-libs/qt-script-4.7 )
+       renameparser? ( >=x11-libs/qt-script-4.7 )
        proxy? ( >=x11-libs/libqxt-0.6.0 )
 "
 RDEPEND="${DEPEND}"
@@ -29,7 +29,14 @@ src_unpack() {
 }
 
 src_configure() {
-       eqmake4 -recursive
+       if ! use proxy ; then
+               DISABLE_PROXY="CONFIG+=noproxy"
+       fi
+       if ! use renameparser ; then
+               DISABLE_PROXY="CONFIG+=norenameparser"
+       fi
+
+       eqmake4 ${DISABLE_PROXY} ${DISABLE_RENAMEPARSER} -recursive
 }
 
 src_install() {
old mode 100644 (file)
new mode 100755 (executable)