commit:     e9cf932ca6565acc8e1eed0fbe826ce81f97abbd
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue May 16 08:22:41 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue May 16 08:34:46 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9cf932c

net-fs/nfs-utils: Minor ebuild improvements.

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 net-fs/nfs-utils/nfs-utils-2.1.2_rc2.ebuild | 38 +++++++++++++++++------------
 1 file changed, 22 insertions(+), 16 deletions(-)

diff --git a/net-fs/nfs-utils/nfs-utils-2.1.2_rc2.ebuild 
b/net-fs/nfs-utils/nfs-utils-2.1.2_rc2.ebuild
index 31d0250fb54..62ab1c43c85 100644
--- a/net-fs/nfs-utils/nfs-utils-2.1.2_rc2.ebuild
+++ b/net-fs/nfs-utils/nfs-utils-2.1.2_rc2.ebuild
@@ -62,9 +62,13 @@ RDEPEND="${DEPEND_COMMON}
 DEPEND="${DEPEND_COMMON}
        virtual/pkgconfig"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
+       "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
+)
+
 src_prepare() {
-       epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
-       epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
+       epatch "${PATCHES[@]}"
 
        sed \
                -e "/^sbindir/s:= := \"${EPREFIX}\":g" \
@@ -77,21 +81,23 @@ src_prepare() {
 src_configure() {
        export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
        export ac_cv_header_keyutils_h=$(usex nfsidmap)
-       econf \
-               --with-statedir="${EPREFIX}"/var/lib/nfs \
-               --enable-tirpc \
-               --with-tirpcinclude="${EPREFIX}"/usr/include/tirpc/ \
-               $(use_enable libmount libmount-mount) \
-               $(use_with tcpd tcp-wrappers) \
-               $(use_enable nfsdcld nfsdcltrack) \
-               $(use_enable nfsv4) \
-               $(use_enable nfsv41) \
-               $(use_enable ipv6) \
-               $(use_enable caps) \
-               $(use_enable uuid) \
-               $(use_enable kerberos gss) \
-               $(use_enable kerberos svcgss) \
+       local myeconfargs=(
+               --with-statedir="${EPREFIX}"/var/lib/nfs
+               --enable-tirpc
+               --with-tirpcinclude="${EPREFIX}"/usr/include/tirpc/
+               $(use_enable libmount libmount-mount)
+               $(use_with tcpd tcp-wrappers)
+               $(use_enable nfsdcld nfsdcltrack)
+               $(use_enable nfsv4)
+               $(use_enable nfsv41)
+               $(use_enable ipv6)
+               $(use_enable caps)
+               $(use_enable uuid)
+               $(use_enable kerberos gss)
+               $(use_enable kerberos svcgss)
                --without-gssglue
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_compile(){

Reply via email to