media-libs/libdc1394: Cleanup src_configure, use myeconfargs array
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 18 Feb 2018 22:37:38 +0000 (23:37 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 19 Feb 2018 10:17:04 +0000 (11:17 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

media-libs/libdc1394/libdc1394-2.2.5-r1.ebuild

index 100614100ce57de4c7589669d252509f083d3cdc..2d692ec33d73559040bf0e6186d0a965dfa9cc8f 100644 (file)
@@ -30,15 +30,16 @@ src_prepare() {
 }
 
 multilib_src_configure() {
-       local myconf="$(use_enable doc doxygen-html)"
-       multilib_is_native_abi || myconf="--disable-doxygen-html --disable-examples"
-
-       # X is only useful for examples that are not installed.
-       ECONF_SOURCE="${S}" econf \
-               $(use_enable static-libs static) \
-               --program-suffix=2 \
-               --without-x \
-               ${myconf}
+       local myeconfargs=(
+               $(use_enable doc doxygen-html)
+               $(use_enable static-libs static)
+               --program-suffix=2
+               --without-x # only useful for (disabled) examples
+       )
+
+       multilib_is_native_abi || myeconfargs+=( --disable-doxygen-html --disable-examples )
+
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
 multilib_src_compile() {