/[gentoo-x86]/app-portage/portage-utils/portage-utils-0.11.ebuild
Gentoo

Contents of /app-portage/portage-utils/portage-utils-0.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Aug 14 18:18:20 2012 UTC (9 months, 1 week ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Version bump.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 vapier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/portage-utils-0.10.ebuild,v 1.10 2012/07/03 16:21:45 ranger Exp $
4    
5     EAPI="3"
6    
7     inherit flag-o-matic toolchain-funcs
8    
9     DESCRIPTION="small and fast portage helper tools written in C"
10     HOMEPAGE="http://www.gentoo.org/"
11     SRC_URI="mirror://gentoo/${P}.tar.xz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16     IUSE="static"
17    
18     src_configure() {
19     use static && append-ldflags -static
20    
21     # Avoid slow configure+gnulib+make if on an up-to-date Linux system
22     if use prefix || ! use kernel_linux || \
23     has_version '<sys-libs/glibc-2.10'
24     then
25     econf --with-eprefix="${EPREFIX}"
26     else
27     tc-export CC
28     fi
29     }
30    
31     src_install() {
32     emake install DESTDIR="${D}" || die
33     prepalldocs
34    
35     exeinto /etc/portage/bin
36     doexe "${FILESDIR}"/post_sync || die
37     insinto /etc/portage/postsync.d
38     doins "${FILESDIR}"/q-reinitialize || die
39    
40     # Portage fixes shebangs, we just need to fix the paths in the files
41     sed -i \
42     -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
43     "${ED}"/etc/portage/bin/post_sync \
44     "${ED}"/etc/portage/postsync.d/q-reinitialize || die
45     }
46    
47     pkg_preinst() {
48     # preserve +x bit on postsync files #301721
49     local x
50     pushd "${ED}" >/dev/null
51     for x in etc/portage/postsync.d/* ; do
52     [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
53     done
54     }
55    
56     pkg_postinst() {
57     elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
58     elog "If you wish for it to be automatically run at the end of every --sync:"
59     elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
60     elog "Normally this should only take a few seconds to run but file systems"
61     elog "such as ext3 can take a lot longer. To disable, simply do:"
62     elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
63     }

  ViewVC Help
Powered by ViewVC 1.1.20