summaryrefslogtreecommitdiff
blob: 824f651d636f6b3e19c66be0455ea8f36f7363d9 (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
52
53
54
55
56
57
58
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2


# Helpful information for me:
# http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
# http://devmanual.gentoo.org/ebuild-writing/index.html
# http://linuxreviews.org/man/ebuild/


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

}