summaryrefslogtreecommitdiff
blob: 9b801e64814e0647016ec3455ae42d7da8b718e2 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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/

# Contains the list of variables & functions available for using git in ebuilds:
# http://devmanual.gentoo.org/eclass-reference/git-2.eclass/index.html

EAPI="3"

inherit eutils git-2

DESCRIPTION="a wrapper script for emerge to make it easier & more helpful"
HOMEPAGE="https://github.com/write2david/bemerge"
SRC_URI=""


EGIT_REPO_URI="git://github.com/write2david/bemerge.git"
EGIT_BRANCH="master"

# The commit of version 0.50
EGIT_COMMIT="92e184d"


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
	app-portage/portage-utils
	"


src_unpack() {
	git-2_src_unpack
}


src_install() {

	# Dictate where the executable will be installed to
	exeinto /usr/bin

	# Now put the executable in said location
	doexe bemerge
	doexe temerge


pkg_postinst() {
	 einfo
	 einfo "You may now use 'bemerge' instead of 'emerge'"
	 einfo "Or, to build a package using RAM instead of your hard drive for
	 storage"
	 einfo "     you can run 'temerge' instead of 'bemerge'."
	 einfo "     See http://en.gentoo-wiki.com/wiki/Portage_TMPDIR_on_tmpfs for
	 more info."
				 }

}