diff options
Diffstat (limited to 'app-portage/bemerge/bemerge-0.4.1.ebuild')
-rw-r--r-- | app-portage/bemerge/bemerge-0.4.1.ebuild | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/app-portage/bemerge/bemerge-0.4.1.ebuild b/app-portage/bemerge/bemerge-0.4.1.ebuild index 511f42d..5182744 100644 --- a/app-portage/bemerge/bemerge-0.4.1.ebuild +++ b/app-portage/bemerge/bemerge-0.4.1.ebuild @@ -11,8 +11,10 @@ SRC_URI="https://github.com/write2david/bemerge/raw/master/bemerge" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~hppa ~x86" +KEYWORDS="amd64 x86" IUSE="" +RESTRICT="mirror test" + RDEPEND=" sys-process/time @@ -22,9 +24,28 @@ RDEPEND=" app-admin/checkrestart " + +# bemerge is not distributed as a compressed file, so no need to unpack it using +# the default src_unpack function in /usr/lib/portage/bin/ebuild.sh +# So, we'll override it with an empty function. +# The override will also prevent portage from spitting out an error saying +# that it can't unpack bemerge because it can't recognize the package format + +src_unpack() { + true +} + + src_install() { - mkdir "${D}"/usr/bin/ - cp "${DISTDIR}"/bemerge "${D}"/usr/bin/ - dosbin bemerge || die "dosbin failed" + + # Download bemerge, with will be auto-placed in the "work" directory, + # avaiable for install with "doexe" + wget https://github.com/write2david/bemerge/raw/master/bemerge + + # Dictate where the executable will be installed to + exeinto /usr/bin + + # Now put the executable in said location + doexe bemerge } |