net-wireless/iwd: use internal ell for 9999 & ell path
authorBen Kohler <bkohler@gentoo.org>
Fri, 1 Nov 2019 15:41:19 +0000 (10:41 -0500)
committerBen Kohler <bkohler@gentoo.org>
Fri, 1 Nov 2019 16:22:56 +0000 (11:22 -0500)
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
net-wireless/iwd/iwd-9999.ebuild

index e6fd9bb55d3ec5e571c722af8818e6f5710ebcc1..73b6abfd6a456c96c955e09b4ae02ec239f9e63d 100644 (file)
@@ -103,7 +103,7 @@ pkg_pretend() {
 src_unpack() {
        if [[ ${PV} == *9999* ]] ; then
                EGIT_REPO_URI=${IWD_EGIT_REPO_URI} git-r3_src_unpack
-               EGIT_REPO_URI=${ELL_EGIT_REPO_URI} EGIT_CHECKOUT_DIR=${S}/ell git-r3_src_unpack
+               EGIT_REPO_URI=${ELL_EGIT_REPO_URI} EGIT_CHECKOUT_DIR=${WORKDIR}/ell git-r3_src_unpack
        else
                default
        fi
@@ -118,16 +118,19 @@ src_prepare() {
 
 src_configure() {
        append-cflags "-fsigned-char"
-       econf --sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var \
+       local myeconfargs=(
+               --sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var \
                $(use_enable client) \
                $(use_enable monitor) \
                $(use_enable ofono) \
                $(use_enable wired) \
-               --enable-external-ell \
                --enable-systemd-service \
                --with-systemd-unitdir="$(systemd_get_systemunitdir)" \
                --with-systemd-modloaddir=$(_systemd_get_dir modulesloaddir /usr/lib/modules-load.d) \
                --with-systemd-networkdir="$(systemd_get_utildir)/network"
+       )
+       [[ ${PV} == *9999* ]] || myeconfargs+=(--enable-external-ell)
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {