From 54928a13b2fef4f80a756b112a4c6751eacb28fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 6 Apr 2016 17:35:35 +0100 Subject: make epkg 10x faster by porting it to portage-utils from gentoolkit ;) --- app-portage/epkg/epkg-0.4-r1.ebuild | 32 +++++++++++ app-portage/epkg/epkg-0.4.ebuild | 32 ----------- app-portage/epkg/files/epkg-kogaion.patch | 63 ++++++++++++++++++++++ .../files/epkg-sync-kogaion-portage-config.patch | 12 ----- 4 files changed, 95 insertions(+), 44 deletions(-) create mode 100644 app-portage/epkg/epkg-0.4-r1.ebuild delete mode 100644 app-portage/epkg/epkg-0.4.ebuild create mode 100644 app-portage/epkg/files/epkg-kogaion.patch delete mode 100644 app-portage/epkg/files/epkg-sync-kogaion-portage-config.patch (limited to 'app-portage') diff --git a/app-portage/epkg/epkg-0.4-r1.ebuild b/app-portage/epkg/epkg-0.4-r1.ebuild new file mode 100644 index 00000000..891c7263 --- /dev/null +++ b/app-portage/epkg/epkg-0.4-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="A simple portage wrapper which works like other package managers" +HOMEPAGE="https://github.com/jdhore/epkg" +SRC_URI="https://github.com/jdhore/${PN}/archive/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S="${WORKDIR}/${PN}-${P}" +DEPEND="" +RDEPEND="app-portage/eix + app-portage/portage-utils + sys-apps/portage" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-kogaion.patch +} + +src_install() { + dobin epkg + dobin "${FILESDIR}"/kogaionsync + doman doc/epkg.1 +} diff --git a/app-portage/epkg/epkg-0.4.ebuild b/app-portage/epkg/epkg-0.4.ebuild deleted file mode 100644 index 68cedb82..00000000 --- a/app-portage/epkg/epkg-0.4.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils - -DESCRIPTION="A simple portage wrapper which works like other package managers" -HOMEPAGE="https://github.com/jdhore/epkg" -SRC_URI="https://github.com/jdhore/${PN}/archive/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -S="${WORKDIR}/${PN}-${P}" -DEPEND="" -RDEPEND="app-portage/eix - app-portage/gentoolkit - sys-apps/portage" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-sync-kogaion-portage-config.patch -} - -src_install() { - dobin epkg - dobin "${FILESDIR}"/kogaionsync - doman doc/epkg.1 -} diff --git a/app-portage/epkg/files/epkg-kogaion.patch b/app-portage/epkg/files/epkg-kogaion.patch new file mode 100644 index 00000000..d775107f --- /dev/null +++ b/app-portage/epkg/files/epkg-kogaion.patch @@ -0,0 +1,63 @@ +diff -Nur a/epkg b/epkg +--- a/epkg 2015-01-09 17:30:57.000000000 +0000 ++++ b/epkg 2016-04-06 17:31:27.710560138 +0100 +@@ -6,7 +6,7 @@ + case "$action" in + # "Standard" action commands, used regularly + search | -s) +- eix "$@" ++ emerge -s "$@" + ;; + install | -i) + emerge -av "$@" +@@ -15,7 +15,7 @@ + emerge --depclean -av "$@" + ;; + update) +- eix-sync "$@" ++ kogaionsync + ;; + upgrade | dist-upgrade) + # Make it portage 2.1-safe and make sure it catches EVERYTHING. +@@ -41,19 +41,19 @@ + ;; + # info commands + listfiles) +- equery files "$@" ++ qlist "$@" + ;; + listinstalled) +- equery list '*' "$@" ++ qlist -ICv "$@" + ;; + provides) +- equery belongs "$@" ++ qfile "$@" + ;; + verify) +- equery check -o "$@" ++ qcheck "$@" + ;; + verifyall) +- equery check -o '*' "$@" ++ qcheck + ;; + # random commands + moo) +@@ -85,11 +85,11 @@ + autoclean - Remove sources for packages no longer installed [eclean-dist -df] + clean - Remove *ALL* package sources [rm -rf $DISTDIR/*] + forceremove - *Unsafely* remove packages [emerge --unmerge -av package(s)] +- listfiles - List the files belonging to a package [equery files package] +- listinstalled - List installed packages [equery list '*'] +- provides - List the installed package(s) which own the indicated file [equery belongs file] +- verify - Verify a package's installed files match the checksum and timestamp they had when first installed [equery check -o package] +- verifyall - Same as above, but against all installed packages [equery check -o '*'] ++ listfiles - List the files belonging to a package [qlist package] ++ listinstalled - List installed packages [qlist -ICv package] ++ provides - List the installed package(s) which own the indicated file [qfile file] ++ verify - Verify a package's installed files match the checksum and timestamp they had when first installed [qcheck package] ++ verifyall - Same as above, but against all installed packages [qcheck] + sysinfo - Display information about installed core packages and portage configuration [emerge --info] + + You can pass arbitrary parameters to us after the command you want, and we'll diff --git a/app-portage/epkg/files/epkg-sync-kogaion-portage-config.patch b/app-portage/epkg/files/epkg-sync-kogaion-portage-config.patch deleted file mode 100644 index 00164dab..00000000 --- a/app-portage/epkg/files/epkg-sync-kogaion-portage-config.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nur a/epkg b/epkg ---- a/epkg 2015-01-09 17:30:57.000000000 +0000 -+++ b/epkg 2016-03-06 11:07:56.277925505 +0000 -@@ -15,7 +15,7 @@ - emerge --depclean -av "$@" - ;; - update) -- eix-sync "$@" -+ kogaionsync - ;; - upgrade | dist-upgrade) - # Make it portage 2.1-safe and make sure it catches EVERYTHING. -- cgit v1.2.3