games-action/bzflag: use arrays for myconf
authorMarty E. Plummer <hanetzer@startmail.com>
Wed, 1 Aug 2018 09:58:49 +0000 (04:58 -0500)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 10:32:56 +0000 (12:32 +0200)
Also added ${EPREFIX} to --libdir for prefix support

Package-Manager: Portage-2.3.44, Repoman-2.3.10

games-action/bzflag/bzflag-2.4.12.ebuild
games-action/bzflag/bzflag-2.4.14.ebuild

index 08d5a225478689ea033be5823e907df62d58ca9f..7fdb07496ab3b782bc55ed5d8c8ef8dc3e53911e 100644 (file)
@@ -39,18 +39,18 @@ src_prepare() {
 }
 
 src_configure() {
-       local myconf
+       local myconf=(
+               $(use_enable upnp UPnP)
+       )
 
        if use dedicated ; then
                ewarn
                ewarn "You are building a server-only copy of BZFlag"
                ewarn
-               myconf="--disable-client --without-SDL"
+               myconf+=( --disable-client --without-SDL )
        fi
 
-       econf \
-               $(use_enable upnp UPnP) \
-               ${myconf}
+       econf "${myconf[@]}"
 }
 
 src_install() {
index eaa3094992ca4f631612d33091d8c3721fc3827e..68787097d150cf8345ea46feef93709eefe55084 100644 (file)
@@ -40,21 +40,21 @@ src_prepare() {
 }
 
 src_configure() {
-       local myconf
+       local myconf=(
+               $(use_enable upnp UPnP)
+               --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN}
+       )
 
        if use dedicated ; then
                ewarn
                ewarn "You are building a server-only copy of BZFlag"
                ewarn
-               myconf="--disable-client --without-SDL"
+               myconf+=( --disable-client --without-SDL )
        else
-               myconf="--with-SDL=2"
+               myconf=( --with-SDL=2 )
        fi
 
-       econf \
-               $(use_enable upnp UPnP) \
-               --libdir=/usr/$(get_libdir)/${PN} \
-               ${myconf}
+       econf "${myconf[@]}"
 }
 
 src_install() {