sys-apps/coreutils: add USE=hostname #128538
authorMike Frysinger <vapier@gentoo.org>
Tue, 24 Nov 2015 21:26:03 +0000 (16:26 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 24 Nov 2015 22:01:27 +0000 (17:01 -0500)
This controls just the hostname program.

sys-apps/coreutils/coreutils-8.24.ebuild
sys-apps/coreutils/metadata.xml

index 8b60db7a46be351dd8a933e3b03ec1af6a81792d..b350b0275b7ee7b053d826945dd9715d3c6660ee 100644 (file)
@@ -24,7 +24,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
-IUSE="acl caps gmp kill multicall nls selinux static userland_BSD vanilla xattr"
+IUSE="acl caps gmp hostname kill multicall nls selinux static userland_BSD vanilla xattr"
 
 LIB_DEPEND="acl? ( sys-apps/acl[static-libs] )
        caps? ( sys-libs/libcap )
@@ -37,6 +37,7 @@ DEPEND="${RDEPEND}
        static? ( ${LIB_DEPEND} )
        app-arch/xz-utils"
 RDEPEND+="
+       hostname? ( !sys-apps/net-tools[hostname] )
        kill? (
                !sys-apps/util-linux[kill]
                !sys-process/procps[kill]
@@ -91,8 +92,8 @@ src_configure() {
                --with-packager="Gentoo" \
                --with-packager-version="${PVR} (p${PATCH_VER:-0})" \
                --with-packager-bug-reports="https://bugs.gentoo.org/" \
-               --enable-install-program="arch,$(usev kill)" \
-               --enable-no-install-program="groups,hostname,$(usev !kill),su,uptime" \
+               --enable-install-program="arch,$(usev hostname),$(usev kill)" \
+               --enable-no-install-program="groups,$(usev !hostname),$(usev !kill),su,uptime" \
                --enable-largefile \
                $(use caps || echo --disable-libcap) \
                $(use_enable nls) \
index 95b8f3e0f8070760bb9aff307a279a28acd79801..cdf713459bfe2387df99e4fda805421d7fe28b45 100644 (file)
@@ -3,6 +3,7 @@
 <pkgmetadata>
 <herd>base-system</herd>
 <use>
+       <flag name='hostname'>Build the hostname program</flag>
        <flag name='kill'>Build the kill program</flag>
        <flag name='multicall'>Build all tools into a single `coreutils` program akin to busybox to save space</flag>
 </use>