summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-05 18:29:06 +0000
committerMike Frysinger <vapier@gentoo.org>2012-11-05 18:29:06 +0000
commit95c3145440eff4f5cbf5f2044238f228335d0a20 (patch)
tree89b62d1ef99e065528c9b432aec0e5e19e120405 /app-arch
parentapp-backup/deja-dup: Version Bump (diff)
downloadgentoo-2-95c3145440eff4f5cbf5f2044238f228335d0a20.tar.gz
gentoo-2-95c3145440eff4f5cbf5f2044238f228335d0a20.tar.bz2
gentoo-2-95c3145440eff4f5cbf5f2044238f228335d0a20.zip
Add USE=minimal to trim all the non-`tar` related crap that no one uses.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/tar/ChangeLog6
-rw-r--r--app-arch/tar/metadata.xml3
-rw-r--r--app-arch/tar/tar-1.26-r1.ebuild9
3 files changed, 15 insertions, 3 deletions
diff --git a/app-arch/tar/ChangeLog b/app-arch/tar/ChangeLog
index d85da1907013..c39d1fe88d6b 100644
--- a/app-arch/tar/ChangeLog
+++ b/app-arch/tar/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-arch/tar
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.177 2012/09/07 18:07:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.178 2012/11/05 18:29:06 vapier Exp $
+
+ 05 Nov 2012; Mike Frysinger <vapier@gentoo.org> metadata.xml,
+ tar-1.26-r1.ebuild:
+ Add USE=minimal to trim all the non-`tar` related crap that no one uses.
07 Sep 2012; Mike Frysinger <vapier@gentoo.org> tar-1.26.ebuild:
Add gets/glibc-2.16 fix to stable too.
diff --git a/app-arch/tar/metadata.xml b/app-arch/tar/metadata.xml
index 96a2d586367d..455b61ea10bd 100644
--- a/app-arch/tar/metadata.xml
+++ b/app-arch/tar/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>base-system</herd>
+<use>
+ <flag name='minimal'>just install `tar`</flag>
+</use>
</pkgmetadata>
diff --git a/app-arch/tar/tar-1.26-r1.ebuild b/app-arch/tar/tar-1.26-r1.ebuild
index 39db2f06533a..b7a4bc1bc5f9 100644
--- a/app-arch/tar/tar-1.26-r1.ebuild
+++ b/app-arch/tar/tar-1.26-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.26-r1.ebuild,v 1.5 2012/05/24 04:35:00 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.26-r1.ebuild,v 1.6 2012/11/05 18:29:06 vapier Exp $
EAPI="3"
@@ -14,7 +14,7 @@ SRC_URI="mirror://gnu/tar/${P}.tar.bz2
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="nls static userland_GNU xattr"
+IUSE="minimal nls static userland_GNU xattr"
RDEPEND="xattr? ( sys-apps/attr )"
DEPEND="${RDEPEND}
@@ -67,4 +67,9 @@ src_install() {
newman "${FILESDIR}"/tar.1 ${p}tar.1
mv "${ED}"/usr/sbin/${p}backup{,-tar}
mv "${ED}"/usr/sbin/${p}restore{,-tar}
+
+ if use minimal ; then
+ find "${ED}"/etc "${ED}"/*bin/ "${ED}"/usr/*bin/ \
+ -type f -a '!' -name tar -delete
+ fi
}