From: Marty E. Plummer Date: Wed, 1 Aug 2018 09:58:49 +0000 (-0500) Subject: games-action/bzflag: use arrays for myconf X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a16511e49693c90e077c8e0f4162faae214980ff;p=gentoo.git games-action/bzflag: use arrays for myconf Also added ${EPREFIX} to --libdir for prefix support Package-Manager: Portage-2.3.44, Repoman-2.3.10 --- diff --git a/games-action/bzflag/bzflag-2.4.12.ebuild b/games-action/bzflag/bzflag-2.4.12.ebuild index 08d5a2254786..7fdb07496ab3 100644 --- a/games-action/bzflag/bzflag-2.4.12.ebuild +++ b/games-action/bzflag/bzflag-2.4.12.ebuild @@ -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() { diff --git a/games-action/bzflag/bzflag-2.4.14.ebuild b/games-action/bzflag/bzflag-2.4.14.ebuild index eaa3094992ca..68787097d150 100644 --- a/games-action/bzflag/bzflag-2.4.14.ebuild +++ b/games-action/bzflag/bzflag-2.4.14.ebuild @@ -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() {