summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-24 15:47:34 -0500
committerMike Frysinger <vapier@gentoo.org>2015-11-24 17:01:27 -0500
commita5371bbe754e942377e7778e715ebe7ce3126a31 (patch)
tree9ae246246de1ded3d64e9953ec5e4fb6e7682429 /sys-apps/coreutils
parentstandardize various metadata.xml style (diff)
downloadgentoo-a5371bbe754e942377e7778e715ebe7ce3126a31.tar.gz
gentoo-a5371bbe754e942377e7778e715ebe7ce3126a31.tar.bz2
gentoo-a5371bbe754e942377e7778e715ebe7ce3126a31.zip
sys-process/procps, sys-apps/{coreutils,util-linux}: add USE=kill to install `kill` #566264
Diffstat (limited to 'sys-apps/coreutils')
-rw-r--r--sys-apps/coreutils/coreutils-8.24.ebuild22
-rw-r--r--sys-apps/coreutils/metadata.xml1
2 files changed, 14 insertions, 9 deletions
diff --git a/sys-apps/coreutils/coreutils-8.24.ebuild b/sys-apps/coreutils/coreutils-8.24.ebuild
index 5b88e1c96f5f..8b60db7a46be 100644
--- a/sys-apps/coreutils/coreutils-8.24.ebuild
+++ b/sys-apps/coreutils/coreutils-8.24.ebuild
@@ -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 multicall nls selinux static userland_BSD vanilla xattr"
+IUSE="acl caps gmp kill multicall nls selinux static userland_BSD vanilla xattr"
LIB_DEPEND="acl? ( sys-apps/acl[static-libs] )
caps? ( sys-libs/libcap )
@@ -32,18 +32,22 @@ LIB_DEPEND="acl? ( sys-apps/acl[static-libs] )
xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )"
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} )
selinux? ( sys-libs/libselinux )
- nls? ( virtual/libintl )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ static? ( ${LIB_DEPEND} )
+ app-arch/xz-utils"
+RDEPEND+="
+ kill? (
+ !sys-apps/util-linux[kill]
+ !sys-process/procps[kill]
+ )
!app-misc/realpath
!<sys-apps/util-linux-2.13
!sys-apps/stat
!net-mail/base64
!sys-apps/mktemp
!<app-forensics/tct-1.18-r1
- !<net-fs/netatalk-2.0.3-r4
-"
-DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND} )
- app-arch/xz-utils"
+ !<net-fs/netatalk-2.0.3-r4"
src_prepare() {
if ! use vanilla ; then
@@ -87,8 +91,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" \
- --enable-no-install-program="groups,hostname,kill,su,uptime" \
+ --enable-install-program="arch,$(usev kill)" \
+ --enable-no-install-program="groups,hostname,$(usev !kill),su,uptime" \
--enable-largefile \
$(use caps || echo --disable-libcap) \
$(use_enable nls) \
diff --git a/sys-apps/coreutils/metadata.xml b/sys-apps/coreutils/metadata.xml
index 1ef77adc1fc5..95b8f3e0f807 100644
--- a/sys-apps/coreutils/metadata.xml
+++ b/sys-apps/coreutils/metadata.xml
@@ -3,6 +3,7 @@
<pkgmetadata>
<herd>base-system</herd>
<use>
+ <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>
<upstream>