diff options
author | Paul Varner <fuzzyray@gentoo.org> | 2011-08-09 23:53:59 +0000 |
---|---|---|
committer | Paul Varner <fuzzyray@gentoo.org> | 2011-08-09 23:53:59 +0000 |
commit | 6a33f5d0b836e487ed9d193aa7865718fc199b82 (patch) | |
tree | bea57f29e884b5fcf44e0bd0c68a76a3a4712dea /app-portage | |
parent | Depend on virtual/freedesktop-icon-theme. Bug #376309 (diff) | |
download | gentoo-2-6a33f5d0b836e487ed9d193aa7865718fc199b82.tar.gz gentoo-2-6a33f5d0b836e487ed9d193aa7865718fc199b82.tar.bz2 gentoo-2-6a33f5d0b836e487ed9d193aa7865718fc199b82.zip |
Revision bump to re-add quiet options to getopt, bug 377119.
(Portage version: 2.1.10.10/cvs/Linux x86_64)
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/esearch/ChangeLog | 8 | ||||
-rw-r--r-- | app-portage/esearch/esearch-0.7.2-r1.ebuild | 63 | ||||
-rw-r--r-- | app-portage/esearch/files/0.7.2-esync-quiet.patch | 22 |
3 files changed, 92 insertions, 1 deletions
diff --git a/app-portage/esearch/ChangeLog b/app-portage/esearch/ChangeLog index 31388800d3c7..edfaf8e2d3db 100644 --- a/app-portage/esearch/ChangeLog +++ b/app-portage/esearch/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-portage/esearch # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/ChangeLog,v 1.63 2011/07/22 18:59:39 fuzzyray Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/ChangeLog,v 1.64 2011/08/09 23:53:59 fuzzyray Exp $ + +*esearch-0.7.2-r1 (09 Aug 2011) + + 09 Aug 2011; Paul Varner <fuzzyray@gentoo.org> + +files/0.7.2-esync-quiet.patch, +esearch-0.7.2-r1.ebuild: + Revision bump to re-add quiet options to getopt, bug 377119. *esearch-0.7.2 (22 Jul 2011) diff --git a/app-portage/esearch/esearch-0.7.2-r1.ebuild b/app-portage/esearch/esearch-0.7.2-r1.ebuild new file mode 100644 index 000000000000..8a328cc9eeee --- /dev/null +++ b/app-portage/esearch/esearch-0.7.2-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-0.7.2-r1.ebuild,v 1.1 2011/08/09 23:53:59 fuzzyray Exp $ + +EAPI=3 +PYTHON_DEPEND=2:2.4 +PYTHON_USE_WITH=readline + +inherit base eutils multilib python + +DESCRIPTION="Replacement for 'emerge --search' with search-index" +HOMEPAGE="http://david-peter.de/esearch.html" +SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~fuzzyray/distfiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="linguas_fr linguas_it" + +RDEPEND="sys-apps/portage" + +PATCHES=( "${FILESDIR}/${PV}-esync-quiet.patch" ) + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_compile() { :; } + +src_install() { + dodir /usr/bin/ /usr/sbin/ || die "dodir failed" + + exeinto /usr/$(get_libdir)/esearch + doexe eupdatedb.py esearch.py esync.py common.py || die "doexe failed" + + dosym /usr/$(get_libdir)/esearch/esearch.py /usr/bin/esearch || die "dosym failed" + dosym /usr/$(get_libdir)/esearch/eupdatedb.py /usr/sbin/eupdatedb || die "dosym failed" + dosym /usr/$(get_libdir)/esearch/esync.py /usr/sbin/esync || die "dosym failed" + + doman en/{esearch,eupdatedb,esync}.1 || die "doman failed" + dodoc ChangeLog "${FILESDIR}/eupdatedb.cron" || die "dodoc failed" + + if use linguas_it ; then + insinto /usr/share/man/it/man1 + doins it/{esearch,eupdatedb,esync}.1 || die "doins failed" + fi + + if use linguas_fr ; then + insinto /usr/share/man/fr/man1 + doins fr/{esearch,eupdatedb,esync}.1 || die "doins failed" + fi + + python_convert_shebangs -r 2 "${D}" +} + +pkg_postinst() { + python_mod_optimize /usr/$(get_libdir)/esearch +} + +pkg_postrm() { + python_mod_cleanup /usr/$(get_libdir)/esearch +} diff --git a/app-portage/esearch/files/0.7.2-esync-quiet.patch b/app-portage/esearch/files/0.7.2-esync-quiet.patch new file mode 100644 index 000000000000..e218f76344a6 --- /dev/null +++ b/app-portage/esearch/files/0.7.2-esync-quiet.patch @@ -0,0 +1,22 @@ +commit a1e10395afeb138df9c8f39fb3c9c1f53897239f +Author: dol-sen <brian.dolbec@gmail.com> +Date: Sun Jul 31 20:33:31 2011 -0700 + + re-add quiet options to getopt, bug 377119 + +diff --git a/esync.py b/esync.py +index f74a0f8..eda504f 100755 +--- a/esync.py ++++ b/esync.py +@@ -70,7 +70,10 @@ def usage(): + sys.exit(0) + + try: +- opts = getopt(sys.argv[1:], "hwdmnvs", ["help", "webrsync", "delta-webrsync", "nocolor", "verbose", "metadata", "nospinner"]) ++ opts = getopt(sys.argv[1:], "hwdmnqvs", ++ ["help", "webrsync", "delta-webrsync", ++ "nocolor", "verbose", "metadata", "nospinner", ++ "quiet"]) + except GetoptError, error: + print red(" * Error:"), error, "(see", darkgreen("--help"), "for all options)" + print |