summaryrefslogtreecommitdiff
blob: 5182744bd610e896b2f983c53e292f0c2008a111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="3"

inherit eutils

DESCRIPTION="a wrapper script for emerge to make it better"
HOMEPAGE="https://github.com/write2david/bemerge"
SRC_URI="https://github.com/write2david/bemerge/raw/master/bemerge"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="mirror test"


RDEPEND="
	sys-process/time
	app-admin/localepurge
	sys-kernel/module-rebuild
	sys-process/lsof
	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() {

	# 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

}