ChangeLog

# ChangeLog for app-portage/portage-utils
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v 1.98 2008/05/11 04:16:14 solar Exp $

11 May 2008; portage-utils-0.1.29.ebuild:
- stable on arm/sh

23 Feb 2008; Jeroen Roovers portage-utils-0.1.29.ebuild:
Stable for HPPA (bug #211114).

23 Feb 2008; Brent Baude portage-utils-0.1.29.ebuild:
stable ppc, bug 211114

23 Feb 2008; Brent Baude portage-utils-0.1.29.ebuild:
stable ppc64, bug 211114

22 Feb 2008; portage-utils-0.1.29.ebuild:
- stable amd64

22 Feb 2008; Raúl Porcel
portage-utils-0.1.29.ebuild:
alpha/ia64/sparc/x86 stable

*portage-utils-0.1.29 (16 Jan 2008)

16 Jan 2008; -portage-utils-0.1.23.ebuild,
+portage-utils-0.1.29.ebuild:
- version bump

03 Jul 2007; -files/fix-bug-168442.patch,
-portage-utils-0.1.24.ebuild, -portage-utils-0.1.25-r1.ebuild,
-portage-utils-0.1.26.ebuild:
- house cleaning

03 Jul 2007; portage-utils-0.1.28.ebuild:
- stable on arm and SuperH

27 Jun 2007; Markus Rothe
portage-utils-0.1.28.ebuild:
Stable on ppc64; bug #183197

26 Jun 2007; Raúl Porcel
portage-utils-0.1.28.ebuild:
alpha/ia64/x86 stable wrt #183197

26 Jun 2007; Lars Weiler portage-utils-0.1.28.ebuild:
Stable on ppc; bug #183197.

26 Jun 2007; Gustavo Zacarias
portage-utils-0.1.28.ebuild:
Stable on sparc wrt #183197

26 Jun 2007; Jeroen Roovers portage-utils-0.1.28.ebuild:
Stable for HPPA (bug #183197).

26 Jun 2007; Joshua Kinard portage-utils-0.1.28.ebuild:
Stable on mips, per #183197.

25 Jun 2007; Christoph Mende
portage-utils-0.1.28.ebuild:
Stable on amd64 wrt bug 183197

12 Jun 2007; Diego Pettenò
+files/qmerge-posix-180871.patch, portage-utils-0.1.28.ebuild:
Add patch to fix bug #180871.

*portage-utils-0.1.28 (03 Jun 2007)

03 Jun 2007; -files/makefile.patch,
-portage-utils-0.1.27-r1.ebuild, +portage-utils-0.1.28.ebuild:
- version bump. misc bug fixes and improvements. new qpkg -c support
(eclean-pkg workalike)

*portage-utils-0.1.27-r1 (24 May 2007)

24 May 2007; +files/makefile.patch,
-portage-utils-0.1.27.ebuild, +portage-utils-0.1.27-r1.ebuild:
- make sure user LDFLAGS do not overwrite our own

*portage-utils-0.1.27 (24 May 2007)

24 May 2007; +portage-utils-0.1.27.ebuild:
- version bump.. Lots of changes. new module loader which may break on funky
arches, non gnu distros. new qmerge bin format for downloading.

*portage-utils-0.1.26 (20 Apr 2007)

20 Apr 2007; +portage-utils-0.1.26.ebuild:
- version bump. fix bug in qcache. add feature in qmerge for compressed
packages file.

10 Apr 2007; -portage-utils-0.1.25.ebuild:
- flush broken 0.1.25

*portage-utils-0.1.25-r1 (10 Apr 2007)

10 Apr 2007; +files/fix-bug-168442.patch,
+portage-utils-0.1.25-r1.ebuild:
- important bugfix.. use memmove vs chdir..

*portage-utils-0.1.25 (05 Apr 2007)

05 Apr 2007; +portage-utils-0.1.25.ebuild:
Bug #168334 ; q -r dies with a segfault after emerge --sync
Bug #168442 ; does not properly parse the profile location
Bug #170795 ; add a -E/--eclass option to qgrep
Bug #170797 ; add a -s/--skip-comments option to qgrep
Bug #171024 ; opening '/usr/portage/.metadata.x' failed
Bug #171374 ; Misc enhancements for qgrep
Bug #172240 ; -A/-B options for qgrep (context lines)
Bug #172338 ; qgrepping through installed ebuilds (in the VDB)
Bug #173005 ; Colorized output for qgrep.

*portage-utils-0.1.24 (11 Feb 2007)

11 Feb 2007; -portage-utils-0.1.20.ebuild,
-portage-utils-0.1.21.ebuild, -portage-utils-0.1.22.ebuild,
+portage-utils-0.1.24.ebuild:
- ver bump

04 Feb 2007; Markus Rothe
portage-utils-0.1.23.ebuild:
Stable on ppc64; bug #165074

03 Feb 2007; Jason Wever portage-utils-0.1.23.ebuild:
Stable on SPARC wrt bug #165074.

03 Feb 2007; Christian Faulhammer
portage-utils-0.1.23.ebuild:
stable x86; bug #165074

03 Feb 2007; Tobias Scherbaum
portage-utils-0.1.23.ebuild:
Stable on ppc wrt bug #165074.

03 Feb 2007; Jeroen Roovers portage-utils-0.1.23.ebuild:
Stable for HPPA (bug #165074).

03 Feb 2007; Bryan Østergaard
portage-utils-0.1.23.ebuild:
Stable on Alpha, bug 165074.

02 Feb 2007; Steve Dibb portage-utils-0.1.23.ebuild:
amd64 stable, bug 165074

02 Feb 2007; Alexander H. Færøy
portage-utils-0.1.23.ebuild:
Stable on MIPS; bug #165074

24 Jan 2007; Marius Mauch portage-utils-0.1.20.ebuild,
portage-utils-0.1.21.ebuild, portage-utils-0.1.22.ebuild,
portage-utils-0.1.23.ebuild:
Replacing einfo with elog

15 Jan 2007; Timothy Redaelli
portage-utils-0.1.22.ebuild, portage-utils-0.1.23.ebuild:
Add ~x86-fbsd keyword wrt bug #159383

*portage-utils-0.1.23 (15 Jan 2007)

15 Jan 2007; +portage-utils-0.1.23.ebuild:
- Lots of src/style updates. - Now links with -lkvm on fbsd so /proc does
not have to be mounted. (Flameeyes) - Now passes our own make check - Make
error msg more verbose when somebody is attempting to use RGB values via
color.map - Little speedup in contents_parse_line - Update man pages for the
newyear. - 3 new qfile options --from/-f --max-args/-m --exclude/-x and
example scripts (TGL)

29 Dec 2006; Diego Pettenò ChangeLog:
Remove also ~sparc-fbsd in the mean time.

26 Dec 2006; Timothy Redaelli
portage-utils-0.1.22.ebuild:
Removed ~x86-fbsd keyword.

*portage-utils-0.1.22 (24 Dec 2006)

24 Dec 2006; +portage-utils-0.1.22.ebuild:
- overdue version bump. lots of changes

29 Nov 2006; Diego Pettenò
portage-utils-0.1.21.ebuild:
Add ~sparc-fbsd keyword.

*portage-utils-0.1.21 (21 Aug 2006)

21 Aug 2006; -portage-utils-0.1.18.ebuild,
-portage-utils-0.1.19.ebuild, +portage-utils-0.1.21.ebuild:
- q update from solar. Make sure we invoke quiet mode if PORTAGE_QUIET
exists in the env. - qlist update from solar. Unifiy iuse->use umap
handling. - qmerge update from solar. Display diff colors when using -sv for
installed packages. yellow for update pending. - qfile update from TGL. New
-R/--root-prefix switch which assume arguments are already prefixed by $ROOT
- qcache update from tcort. New -n/--not switch to list packages that are
not keyworded on a given arch. - qlop update from jmbsvicetto. Fixed typo.

19 Aug 2006; portage-utils-0.1.20.ebuild:
- added a note about how to disable the reinitialize script the first time
it gets installed in case anybody finds it to be an inconvenience.

18 Aug 2006; portage-utils-0.1.20.ebuild:
- stable on all arches I can test on

*portage-utils-0.1.20 (22 Jul 2006)

22 Jul 2006; +portage-utils-0.1.20.ebuild:
- qlist, qcache, qlop and qfile updates. including bugs 115733 139825 140019

13 Jul 2006;
-files/portage-utils-0.1.17-bug133514.patch, -files/post_sync,
portage-utils-0.1.19.ebuild:
- work around accessing filesdir when buildpkg is enabled

*portage-utils-0.1.19 (09 Jul 2006)

09 Jul 2006; -files/portage-utils-0.1.17-enum.patch,
+files/post_sync, metadata.xml, -portage-utils-0.1.15.ebuild,
-portage-utils-0.1.16.ebuild, -portage-utils-0.1.17.ebuild,
-portage-utils-0.1.17-r1.ebuild, +portage-utils-0.1.19.ebuild:
- version bump for new features. removed old crusty ebuilds

29 Jun 2006; Gustavo Zacarias
portage-utils-0.1.18.ebuild:
Stable on sparc

28 Jun 2006; Thomas Cort portage-utils-0.1.18.ebuild:
Stable on alpha.

28 Jun 2006; portage-utils-0.1.18.ebuild:
- stable on amd64, arm, hppa, ia64, ppc, ppc64 and x86

*portage-utils-0.1.18 (04 Jun 2006)

04 Jun 2006; +portage-utils-0.1.18.ebuild:
- version bump. rename qimlate to qcache [tcort]. make qpkg restrict chmod
settings when -P option is used. Make qdepends static buffer even bigger for X
and PHP

*portage-utils-0.1.17-r1 (16 May 2006)

16 May 2006; Thomas Cort
+files/portage-utils-0.1.17-bug133514.patch,
+portage-utils-0.1.17-r1.ebuild:
Fix a typo which sometimes caused qimlate to fail, see Bug #133514. Also fix
a check for 2 errors, error checking patch by tove@g.o.

14 May 2006; Thomas Cort
+files/portage-utils-0.1.17-enum.patch, portage-utils-0.1.17.ebuild:
Added a patch to fix a compile error caused by the compiler defining
sparc=1, see Bug #133303. Patch by solar.

*portage-utils-0.1.17 (13 May 2006)

13 May 2006; +portage-utils-0.1.17.ebuild:
- q: Updated stderr/stdout handling for BSD again. - qfile: do not abort when
user passes qfile "..." - qimlate: New applet (Thomas Cort )
uses portage metadata/cache directly. - qmerge: bug fix. dont remove vdb
entries in pretend mode. - qpkg: new switch -P/--pkgdir to allow user defined
pkgdirs. - quse: new switch. -N/--name-only used to only display matching
entries and not the values.

*portage-utils-0.1.16 (29 Apr 2006)

29 Apr 2006; -portage-utils-0.1.13.ebuild,
-portage-utils-0.1.14.ebuild, +portage-utils-0.1.16.ebuild:
- Bugfix in qsize with files larger than 4GB. Added new -u/--update flag to
qcheck for vdb entries. added -U/--umap flags to qlist to display use to iuse
mappings of vdb entries. misc qglsa/qmerge/qxpak code cleanups

24 Apr 2006; Gustavo Zacarias
portage-utils-0.1.15.ebuild:
Stable on sparc

23 Apr 2006; Michael Hanselmann
portage-utils-0.1.15.ebuild:
Stable on ppc.

22 Apr 2006; portage-utils-0.1.15.ebuild:
- stable on amd64 arm mips ppc64 x86

16 Apr 2006; Bryan Østergaard portage-utils-0.1.15.ebuild:
Stable on alpha.

31 Mar 2006; Diego Pettenò
portage-utils-0.1.15.ebuild:
Add ~x86-fbsd keyword.

*portage-utils-0.1.15 (26 Mar 2006)

26 Mar 2006; +portage-utils-0.1.15.ebuild:
- Added support for color remapping via /etc/portage/color.map - Fixed up
(hopefully) stderr handling on those OSes that suffer silly design - Added
slot handling for qlist. - Added qlop verbose mode to display PV-PR - Reworked
the glob handling a bit to not use glob64 by default. - Added -F flag to
qmerge to use in place of the -f switch when wanting to skip downloading of
the Packages cache - Added -F flag to quse for format handling of user defined
variables

*portage-utils-0.1.14 (25 Feb 2006)

25 Feb 2006; -portage-utils-0.1.10.ebuild,
-portage-utils-0.1.11.ebuild, -portage-utils-0.1.12.ebuild,
+portage-utils-0.1.14.ebuild:
- vdb_get_next_dir items handle virtuals that are dirs now. - Allow
CACHE_EBUILD_FILE environment variable to control where cache file lives. - q
applet gains -m/--metacache flags to reinitialize metadata cache - qlist
applet gains -a/--all flags to list every installed package - qpkg applet
gains -p/--pretend flags along with 'world' cmdline target - qmerge applet
gains better install masking using globing/fnmatch - Updated the globing code
for the BSD arches.

09 Feb 2006; Joshua Kinard portage-utils-0.1.13.ebuild:
Marked stable on mips for Bug #121776.

07 Feb 2006; Joshua Jackson
portage-utils-0.1.13.ebuild:
stable on x86; bug #121776

07 Feb 2006; Aron Griffis
portage-utils-0.1.13.ebuild:
Mark 0.1.13 stable on alpha

06 Feb 2006; Aron Griffis
portage-utils-0.1.13.ebuild:
Mark 0.1.13 stable on ia64

06 Feb 2006; portage-utils-0.1.13.ebuild:
Stable on ppc. bug 121776

06 Feb 2006; Patrick McLean
portage-utils-0.1.13.ebuild:
Stable on amd64 (bug #121776).

06 Feb 2006; Jeroen Roovers portage-utils-0.1.13.ebuild:
Stable on hppa (bug #121776).

06 Feb 2006; Gustavo Zacarias
portage-utils-0.1.13.ebuild:
Stable on sparc wrt #121776

06 Feb 2006; Markus Rothe
portage-utils-0.1.13.ebuild:
Stable on ppc64: bug #121776

*portage-utils-0.1.13 (28 Jan 2006)

28 Jan 2006; +portage-utils-0.1.13.ebuild:
- version bump for new applets and options

*portage-utils-0.1.12 (12 Jan 2006)

12 Jan 2006; +portage-utils-0.1.12.ebuild:
- better qatom support. new options. updated manpages. fixed a bug in qlist
when using -ICve. good stuff

*portage-utils-0.1.11 (22 Dec 2005)

22 Dec 2005; -portage-utils-0.1.6.ebuild,
-portage-utils-0.1.9.ebuild, +portage-utils-0.1.11.ebuild:
- new applet qatom, handy for scripts. fixed atom_explode script and hard
coded portdir path. improved profile handling

05 Dec 2005; Gustavo Zacarias
portage-utils-0.1.10.ebuild:
Stable on sparc

04 Dec 2005; Tom Gall
portage-utils-0.1.10.ebuild:
stable on ppc64

03 Dec 2005; Daniel Goller
portage-utils-0.1.10.ebuild:
Stable on ppc and amd64

03 Dec 2005; portage-utils-0.1.10.ebuild:
- stable on x86

*portage-utils-0.1.10 (24 Nov 2005)

24 Nov 2005; -files/portage-utils-0.1.3-qdepends.patch,
-files/portage-utils-0.1.7-comments.patch, +portage-utils-0.1.10.ebuild,
-portage-utils-0.1.3-r1.ebuild, -portage-utils-0.1.5.ebuild,
-portage-utils-0.1.7.ebuild, -portage-utils-0.1.8.ebuild:
- fix segv in describe_use_flag on some 64bit arches. updated testsuite.
removed old ebuilds

24 Nov 2005; Markus Rothe portage-utils-0.1.9.ebuild:
Stable on ppc64

21 Nov 2005; Gustavo Zacarias
portage-utils-0.1.9.ebuild:
Stable on sparc

20 Nov 2005; portage-utils-0.1.9.ebuild:
- stable on x86

*portage-utils-0.1.9 (12 Nov 2005)

12 Nov 2005; +portage-utils-0.1.9.ebuild:
- OPTIMIZE_FOR_SIZE all color handling
- New applet qgrep
- New global -Q option to suppress warnings and
errors. Useful with --verbose modes and scripts.
- Make --version support handle per applet rcsid
- Updated all manpages.
- Improved qlist dup handling.
- Fixed bug in qsearch where dirname(),basename() was eating the results
passed to them.
- Output of quse with -vv now describes each flag

*portage-utils-0.1.8 (03 Nov 2005)

03 Nov 2005; +portage-utils-0.1.8.ebuild:
- New quse describe flag option -D - Add test/check Makefiles and basic tests.
- Make qlop return with error msgs when the user can open a given logfile due
to permissions or other. - Make qlop return revision, date, user from the cvs
$Header: at verbose level > 3 - Fixed semi major bug in quse when processing
the variable of a string.

31 Oct 2005; +files/portage-utils-0.1.7-comments.patch,
portage-utils-0.1.7.ebuild:
- some buggy distcc or cpp does not seem to like unbalenced /* comments */
within #ifdef 0

*portage-utils-0.1.7 (30 Oct 2005)

30 Oct 2005; +portage-utils-0.1.7.ebuild:
- mantainience release. qlop -p option removed in favor of scanning /proc for
current emerges. color updates. compile fixes for gcc-2

11 Oct 2005; Gustavo Zacarias
portage-utils-0.1.6.ebuild:
Stable on sparc

11 Oct 2005; Stephen Bennett portage-utils-0.1.6.ebuild:
mips stable by request

10 Oct 2005; :
- stable on arm ia64 ppc s390 x86, other arches welcome to follow

*portage-utils-0.1.6 (06 Oct 2005)

06 Oct 2005; Martin Schlemmer
+portage-utils-0.1.6.ebuild:
New release (asked by solar).

*portage-utils-0.1.5 (01 Oct 2005)

01 Oct 2005; -portage-utils-0.1.1.ebuild,
-portage-utils-0.1.2.ebuild, -portage-utils-0.1.4.ebuild,
+portage-utils-0.1.5.ebuild:
- added a bit of error handling to qdepends when dealing with *DEP syntax we
dont understand yet. Added a new -k/--key option for user defined entries

*portage-utils-0.1.4 (24 Sep 2005)

24 Sep 2005; +portage-utils-0.1.4.ebuild:
- qpkg - new applet (quickpkg)
- qdepends - 2 new options
- qlist - 1 new option (azarah)
- qsearch - 1 new option. -N/--name-only
- qxpack - code cleanups
- better root handling for vdb entries
- header/licence updates

*portage-utils-0.1.3-r1 (26 Jul 2005)

26 Jul 2005; Mike Frysinger
+files/portage-utils-0.1.3-qdepends.patch, +portage-utils-0.1.3-r1.ebuild:
Fix incorrect assert test in qdepends.

*portage-utils-0.1.3 (25 Jul 2005)

25 Jul 2005; Mike Frysinger
+portage-utils-0.1.3.ebuild:
Fix building with gcc-2 and dont bomb with alignment errors on some arches.

*portage-utils-0.1.2 (19 Jul 2005)

19 Jul 2005; +portage-utils-0.1.2.ebuild:
- 3 new applets were added qlop, qtbz2 and qxpak. Lots of code cleanups and
feature enhancements

*portage-utils-0.1.1 (17 Jun 2005)

17 Jun 2005; -portage-utils-0.1.0.ebuild,
+portage-utils-0.1.1.ebuild:
- fix memmove bug in rmspace

*portage-utils-0.1.0 (16 Jun 2005)

16 Jun 2005; Mike Frysinger :
Add check, size, and depends applets. Clean up and modularize code.

*qfile-0.0.3 (02 Jun 2005)

02 Jun 2005; +qfile-0.0.3.ebuild:
- qsearch is now case insensitive. - qlist no longer displays directory names.
- quse now matches IUSE where 1 more or flag is given. - reinitialize ebuild
flat database at program exit upon error. - got rid of ugly call to system()
so we don't have to exec anything external ever. - fixed readdir() bugs when
directory indexing enabled.

*qfile-0.0.2 (31 May 2005)

31 May 2005; files/qfile.c, -qfile-0.0.1.ebuild,
+qfile-0.0.2.ebuild:
- made qfile a multicall binary and added a few qpkg alike applets.

*qfile-0.0.1 (10 May 2005)

10 May 2005; +metadata.xml, +files/qfile.c,
+qfile-0.0.1.ebuild:
- initial creation of qfile package. A very small and fast c implementation of
portage query file tool

Manifest

AUX qmerge-posix-180871.patch 558 RMD160 d493774c78635f59769d477492fe27ce74364a37 SHA1 6d325c16769090ce6f15c9f5daaad1dbaf8692b1 SHA256 b5f2d19fc8b3e322455f9cb53dd9fa61beafb98d3067c973652acf6ea0c29899
DIST portage-utils-0.1.28.tar.bz2 79841 RMD160 0cb4c5cfa42bdd542b056273582ebfcd7e9894d7 SHA1 2e1d41b6809463dea4f7cdc695dea19b78083354 SHA256 a5962c501a3e532ba9c860b8c32a5a7da1f139400820e83b49ae23ee3af0758a
DIST portage-utils-0.1.29.tar.bz2 79855 RMD160 51ae3b33943af05ae6fdc2217acbe31ef2a1e567 SHA1 4c8389a4030f7f9c812a8f87eed927c959a0cac6 SHA256 cce5e612fdbf2d1fbfbeba871adb49d0d7543e68c043b7b445ff0e130722c5fd
EBUILD portage-utils-0.1.28.ebuild 1963 RMD160 b2af94cd014462015c10e919a0038a54f9c66fe9 SHA1 546b62757bd55c31dd7f768e5141ddc8220b4ccd SHA256 f15481669a0e10c9b8172a70cf686839c1a44da2499a4966b4b5fccc0b317e0b
EBUILD portage-utils-0.1.29.ebuild 1929 RMD160 df1b5348a24ee5c2674ee162b30656f603e4a23f SHA1 b245bd398ab222a20e7bfe4f072febafbc4b5f93 SHA256 fca25f51aab456a9f7be3b14d9e36a22452f432978e5efa58c916dd0d23eaad8
MISC ChangeLog 19039 RMD160 0cebabb8b965254afc851982c570fca7d5dc0a33 SHA1 b42f662cf288058ad66d0141b2805325ef571033 SHA256 2291e8b993c0c2e75436673de091144049d3a4e081e03c10bf425171ce8a04c6
MISC metadata.xml 228 RMD160 323ccad50269403e29fe5f701459b3412a400829 SHA1 3211a7ef9ed65dc14a3ee262fd1d33f7c06aeeb3 SHA256 ffd15c4104ad6803ab7ff1345e33c4ccbb9fbbcd277506ec7a5e047ea755aec1

files

metadata.xml




no-herd

portage-utils@gentoo.org

portage-utils-0.1.28.ebuild

# Copyright 1999-2007 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.1.28.ebuild,v 1.11 2007/08/25 13:46:58 vapier Exp $

inherit toolchain-funcs eutils

DESCRIPTION="small and fast portage helper tools written in C"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE=""

DEPEND=""

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/qmerge-posix-180871.patch"
}

src_compile() {
tc-export CC
emake || die
}

src_install() {
dobin q || die "dobin failed"
doman man/*.[0-9]
for applet in $( dosym q /usr/bin/${applet}
done
}

pkg_postinst() {
[ -e ${ROOT}/etc/portage/bin/post_sync ] && return 0
mkdir -p ${ROOT}/etc/portage/bin/

cat <<__EOF__ > ${ROOT}/etc/portage/bin/post_sync
#!/bin/sh
# Copyright 2006-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

if [ -d /etc/portage/postsync.d/ ]; then
for f in /etc/portage/postsync.d/* ; do
if [ -x \${f} ] ; then
\${f}
fi
done
else
:
fi
__EOF__
chmod 755 ${ROOT}/etc/portage/bin/post_sync
if [ ! -e ${ROOT}/etc/portage/postsync.d/q-reinitialize ]; then
mkdir -p ${ROOT}/etc/portage/postsync.d/
echo '[ -x /usr/bin/q ] && /usr/bin/q -qr' > ${ROOT}/etc/portage/postsync.d/q-reinitialize
elog "${ROOT}/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 simply chmod +x ${ROOT}/etc/portage/postsync.d/q-reinitialize"
elog "Normally this should only take a few seconds to run but file systems such as ext3 can take a lot longer."
elog "If ever you find this to be an inconvenience simply chmod -x ${ROOT}/etc/portage/postsync.d/q-reinitialize"
fi
:
}

portage-utils-0.1.29.ebuild

# Copyright 1999-2008 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.1.29.ebuild,v 1.8 2008/05/11 04:21:16 solar Exp $

inherit toolchain-funcs eutils

DESCRIPTION="small and fast portage helper tools written in C"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE=""

DEPEND=""

src_unpack() {
unpack ${A}
cd "${S}"
}

src_compile() {
tc-export CC
emake || die
}

src_install() {
dobin q || die "dobin failed"
doman man/*.[0-9]
for applet in $( dosym q /usr/bin/${applet}
done
}

pkg_postinst() {
[ -e "${ROOT}"/etc/portage/bin/post_sync ] && return 0
mkdir -p "${ROOT}"/etc/portage/bin/

cat <<__EOF__ > "${ROOT}"/etc/portage/bin/post_sync
#!/bin/sh
# Copyright 2006-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

if [ -d /etc/portage/postsync.d/ ]; then
for f in /etc/portage/postsync.d/* ; do
if [ -x \${f} ] ; then
\${f}
fi
done
else
:
fi
__EOF__
chmod 755 "${ROOT}"/etc/portage/bin/post_sync
if [ ! -e "${ROOT}"/etc/portage/postsync.d/q-reinitialize ]; then
mkdir -p "${ROOT}"/etc/portage/postsync.d/
echo '[ -x /usr/bin/q ] && /usr/bin/q -qr' > "${ROOT}"/etc/portage/postsync.d/q-reinitialize
elog "${ROOT}/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 simply chmod +x ${ROOT}/etc/portage/postsync.d/q-reinitialize"
elog "Normally this should only take a few seconds to run but file systems such as ext3 can take a lot longer."
elog "If ever you find this to be an inconvenience simply chmod -x ${ROOT}/etc/portage/postsync.d/q-reinitialize"
fi
:
}