From a16511e49693c90e077c8e0f4162faae214980ff Mon Sep 17 00:00:00 2001 From: "Marty E. Plummer" Date: Wed, 1 Aug 2018 04:58:49 -0500 Subject: [PATCH] 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 --- games-action/bzflag/bzflag-2.4.12.ebuild | 10 +++++----- games-action/bzflag/bzflag-2.4.14.ebuild | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) 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() { -- 2.26.2