summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-04-06 17:35:35 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-04-06 17:35:35 +0100
commit54928a13b2fef4f80a756b112a4c6751eacb28fb (patch)
tree91d4a01e2adf26276aadbc5ca4db32e9f9938d10
parenta8dce448298c7ed33bb260eefbe38fced3769e20 (diff)
make epkg 10x faster by porting it to portage-utils from gentoolkit ;)
-rw-r--r--app-portage/epkg/epkg-0.4-r1.ebuild (renamed from app-portage/epkg/epkg-0.4.ebuild)4
-rw-r--r--app-portage/epkg/files/epkg-kogaion.patch63
-rw-r--r--app-portage/epkg/files/epkg-sync-kogaion-portage-config.patch12
3 files changed, 65 insertions, 14 deletions
diff --git a/app-portage/epkg/epkg-0.4.ebuild b/app-portage/epkg/epkg-0.4-r1.ebuild
index 68cedb82..891c7263 100644
--- a/app-portage/epkg/epkg-0.4.ebuild
+++ b/app-portage/epkg/epkg-0.4-r1.ebuild
@@ -18,11 +18,11 @@ IUSE=""
S="${WORKDIR}/${PN}-${P}"
DEPEND=""
RDEPEND="app-portage/eix
- app-portage/gentoolkit
+ app-portage/portage-utils
sys-apps/portage"
src_prepare() {
- epatch "${FILESDIR}"/${PN}-sync-kogaion-portage-config.patch
+ epatch "${FILESDIR}"/${PN}-kogaion.patch
}
src_install() {
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.