summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-17 04:08:37 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-17 04:08:37 +0000
commit6d732857599aa94edd1bc965221b9feb570a5a19 (patch)
tree2f83a28fe1f2d3e667a803f8d12c3695555357dc /app-portage
parentold (diff)
downloadgentoo-2-6d732857599aa94edd1bc965221b9feb570a5a19.tar.gz
gentoo-2-6d732857599aa94edd1bc965221b9feb570a5a19.tar.bz2
gentoo-2-6d732857599aa94edd1bc965221b9feb570a5a19.zip
Version bump.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/portage-utils/ChangeLog9
-rw-r--r--app-portage/portage-utils/portage-utils-0.5.ebuild50
2 files changed, 57 insertions, 2 deletions
diff --git a/app-portage/portage-utils/ChangeLog b/app-portage/portage-utils/ChangeLog
index 5992a3bc2921..2dda4d1a003b 100644
--- a/app-portage/portage-utils/ChangeLog
+++ b/app-portage/portage-utils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-portage/portage-utils
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v 1.111 2010/06/08 05:49:29 vapier Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v 1.112 2011/03/17 04:08:37 vapier Exp $
+
+*portage-utils-0.5 (17 Mar 2011)
+
+ 17 Mar 2011; Mike Frysinger <vapier@gentoo.org> +portage-utils-0.5.ebuild:
+ Version bump.
*portage-utils-0.4 (08 Jun 2010)
diff --git a/app-portage/portage-utils/portage-utils-0.5.ebuild b/app-portage/portage-utils/portage-utils-0.5.ebuild
new file mode 100644
index 000000000000..21a740035402
--- /dev/null
+++ b/app-portage/portage-utils/portage-utils-0.5.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/portage-utils-0.5.ebuild,v 1.1 2011/03/17 04:08:37 vapier Exp $
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="static"
+
+src_compile() {
+ tc-export CC
+ use static && append-ldflags -static
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${D}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${ROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x /etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x /etc/portage/postsync.d/q-reinitialize"
+}