diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-portage/esearch | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-portage/esearch')
-rw-r--r-- | app-portage/esearch/Manifest | 1 | ||||
-rw-r--r-- | app-portage/esearch/esearch-1.3-r1.ebuild | 54 | ||||
-rw-r--r-- | app-portage/esearch/esearch-9999.ebuild | 47 | ||||
-rw-r--r-- | app-portage/esearch/files/1.3-Fix-python-3-compatability.patch | 34 | ||||
-rw-r--r-- | app-portage/esearch/files/1.3-Fix-setup.py.patch | 28 | ||||
-rw-r--r-- | app-portage/esearch/files/eupdatedb.cron | 32 | ||||
-rw-r--r-- | app-portage/esearch/metadata.xml | 8 |
7 files changed, 204 insertions, 0 deletions
diff --git a/app-portage/esearch/Manifest b/app-portage/esearch/Manifest new file mode 100644 index 000000000000..c04f31bc71d5 --- /dev/null +++ b/app-portage/esearch/Manifest @@ -0,0 +1 @@ +DIST esearch-1.3.tar.gz 19383 SHA256 3274c2da21d86287fa27fd562aa63ce82dd813e4d1ebb9c44bd2b82c9ed323f7 SHA512 7fbc1c362a320a76a40c45ddf83a29223eaafd3cfed1d8a9410a380e2025fb515eea26e38ebf0f304d14230c6c5cfc83ef2116b774b1d50ee4f7f4bb0ac046c4 WHIRLPOOL e1caa3f0b09925841899422d98b6222ccde68993d2e24b24034d3bac63e75cc07445513d418fbde99f23ed9d72203bbfe8cbc0861028648ace0c53ec683e6ad3 diff --git a/app-portage/esearch/esearch-1.3-r1.ebuild b/app-portage/esearch/esearch-1.3-r1.ebuild new file mode 100644 index 000000000000..1c8403b615b8 --- /dev/null +++ b/app-portage/esearch/esearch-1.3-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=(python{2_7,3_3,3_4}) +PYTHON_REQ_USE="readline(+)" + +inherit distutils-r1 + +DESCRIPTION="Replacement for 'emerge --search' with search-index" +HOMEPAGE="https://github.com/fuzzyray/esearch" +SRC_URI="mirror://github/fuzzyray/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="linguas_fr linguas_it" + +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" + +DEPEND="sys-apps/portage" +RDEPEND="${DEPEND}" + +# Populate the patches array for any patches for -rX releases +# It is an array of patch file names of the form: +# "${FILESDIR}"/${PV}-fix-EPREFIX-capability.patch +PATCHES=( + "${FILESDIR}"/${PV}-Fix-setup.py.patch + "${FILESDIR}"/${PV}-Fix-python-3-compatability.patch +) + +python_prepare_all() { + python_export_best + echo VERSION="${PVR}" "${PYTHON}" setup.py set_version + VERSION="${PVR}" "${PYTHON}" setup.py set_version \ + || die "setup.py set_version failed" + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + dodoc eupdatedb.cron || die "dodoc failed" + + # Remove unused man pages according to the linguas flags + if ! use linguas_fr ; then + rm -rf "${ED}"/usr/share/man/fr \ + || die "rm failed to remove ${ED}/usr/share/man/fr" + fi + + if ! use linguas_it ; then + rm -rf "${ED}"/usr/share/man/it \ + || die "rm failed to remove ${ED}/usr/share/man/it" + fi +} diff --git a/app-portage/esearch/esearch-9999.ebuild b/app-portage/esearch/esearch-9999.ebuild new file mode 100644 index 000000000000..4db5b2426b45 --- /dev/null +++ b/app-portage/esearch/esearch-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=(python{2_7,3_3,3_4}) +PYTHON_REQ_USE="readline(+)" + +inherit distutils-r1 git-2 + +EGIT_REPO_URI="git://github.com/fuzzyray/esearch.git" + +DESCRIPTION="Replacement for 'emerge --search' with search-index" +HOMEPAGE="https://github.com/fuzzyray/esearch" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +IUSE="linguas_fr linguas_it" + +KEYWORDS="" + +DEPEND="sys-apps/portage" +RDEPEND="${DEPEND}" + +python_prepare_all() { + python_export_best + echo VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version + VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + dodoc eupdatedb.cron || die "dodoc failed" + + # Remove unused man pages according to the linguas flags + if ! use linguas_fr ; then + rm -rf "${ED}"/usr/share/man/fr \ + || die "rm failed to remove ${ED}/usr/share/man/fr" + fi + + if ! use linguas_it ; then + rm -rf "${ED}"/usr/share/man/it \ + || die "rm failed to remove ${ED}/usr/share/man/it" + fi +} diff --git a/app-portage/esearch/files/1.3-Fix-python-3-compatability.patch b/app-portage/esearch/files/1.3-Fix-python-3-compatability.patch new file mode 100644 index 000000000000..36c9d2255b8c --- /dev/null +++ b/app-portage/esearch/files/1.3-Fix-python-3-compatability.patch @@ -0,0 +1,34 @@ +From 3978f923ac814aef014cf412b63d11fd94f60692 Mon Sep 17 00:00:00 2001 +From: Paul Varner <fuzzyray@gentoo.org> +Date: Wed, 8 May 2013 14:26:48 -0500 +Subject: [PATCH 1/2] Fix python 3 compatability with 'esearch -e' (Bug 469076) + +Thanks to zmedico for the patch. +--- + esearch/search.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/esearch/search.py b/esearch/search.py +index f91f5b1..696a0f0 100755 +--- a/esearch/search.py ++++ b/esearch/search.py +@@ -22,6 +22,7 @@ import re + try: + from portage.output import bold, red, green, darkgreen, turquoise, blue, nocolor + from portage import settings, pkgcmp, pkgsplit, portdb, best ++ from portage.util import cmp_sort_key + except ImportError: + print("Critical: portage imports failed!") + sys.exit(1) +@@ -107,7 +108,7 @@ def searchEbuilds(path, portdir=True, searchdef="", repo_num="", + data['defebuild'] = (searchdef, pkgs[-1][3]) + if not portdir: + config['found_in_overlay'] = True +- pkgs.sort(mypkgcmp) ++ pkgs.sort(key=cmp_sort_key(mypkgcmp)) + for pkg in pkgs: + rev = "" + if pkg[2] != "r0": +-- +1.8.5.4 + diff --git a/app-portage/esearch/files/1.3-Fix-setup.py.patch b/app-portage/esearch/files/1.3-Fix-setup.py.patch new file mode 100644 index 000000000000..aad5d49f2f56 --- /dev/null +++ b/app-portage/esearch/files/1.3-Fix-setup.py.patch @@ -0,0 +1,28 @@ +From 94e77b115f5b14b7dfea50e4a7b77047e4b47263 Mon Sep 17 00:00:00 2001 +From: Paul Varner <fuzzyray@gentoo.org> +Date: Tue, 18 Dec 2012 04:33:27 -0600 +Subject: [PATCH 1/3] Fix setup.py so that either VERSION or PVR will set the + version. + +This fixes the issue with egg-info always having a version number of +9999. Fix is from Brian Dolbec courtesy of mirrorselect. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 9d2addd..45a4c06 100755 +--- a/setup.py ++++ b/setup.py +@@ -14,7 +14,7 @@ import io + + sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'pym')) + +-__version__ = os.getenv('VERSION', default='9999') ++__version__ = os.getenv('VERSION', default=os.getenv('PVR', default='9999')) + + cwd = os.getcwd() + +-- +1.8.5.4 + diff --git a/app-portage/esearch/files/eupdatedb.cron b/app-portage/esearch/files/eupdatedb.cron new file mode 100644 index 000000000000..1cf802f7b05f --- /dev/null +++ b/app-portage/esearch/files/eupdatedb.cron @@ -0,0 +1,32 @@ +#! /bin/bash + +# The eupdatedb script _needs_ to be installed with the filename 'eupdatedb' +# because it does things based on basename $0. + +# Run some script + +SCRIPT="/usr/sbin/eupdatedb" +SCRIPTPREOPTS="nice -n 19" +SCRIPTOPTS="--quiet" +PRECOMMAND="" +POSTCOMMAND="" +DATE="`date +%Y%m%d`" +LOG="/var/log/`basename ${SCRIPT}`" + +${PRECOMMAND} + +# Start logging +echo "--- Starting ${SCRIPT} for ${DATE} ---" >> ${LOG} + +if [ "`${SCRIPTPREOPTS} ${SCRIPT} ${SCRIPTOPTS}`" ] +then + echo "${SCRIPT}: success." >> ${LOG} +else + echo "ERROR: ${SCRIPT} failed." >> ${LOG} +fi + +# Cleanup tasks +${POSTCOMMAND} + +# End logging +echo "--- Ending ${SCRIPT} for ${DATE} ---" >> ${LOG} diff --git a/app-portage/esearch/metadata.xml b/app-portage/esearch/metadata.xml new file mode 100644 index 000000000000..953e5243999c --- /dev/null +++ b/app-portage/esearch/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>tools-portage</herd> + <upstream> + <remote-id type="github">fuzzyray/esearch</remote-id> + </upstream> +</pkgmetadata> |