summaryrefslogtreecommitdiff
blob: a23587654e43df413ebf531a336e2d23475a8c1c (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2-0.0.9.ebuild,v 1.3 2004/09/04 23:00:17 dholm Exp $

inherit eutils

DESCRIPTION="A file manager that implements the popular two-pane design based on gtk+-2"
HOMEPAGE="http://dasui.prima.de/e2wiki/"
SRC_URI="http://dasui.prima.de/~tooar/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="nls"

DEPEND=">=x11-libs/gtk+-2.4*"

src_unpack() {
	unpack ${A}
}

src_compile() {
	local myconf

	use nls && myconf="-DENABLE_NLS"
	emake PREFIX=/usr \
		CC="gcc ${CFLAGS}" \
		NLS=${myconf} || die "emake failed"
}

src_install() {
	local myconf

	use nls && myconf="-DENABLE_NLS"
	dodir /usr/bin

	make PREFIX=${D}/usr \
		NLS=${myconf} \
		DOC_DIR=${D}/usr/share/doc/${PF} \
		install || die "make install failed"
	prepalldocs
}

pkg_postinst() {

	einfo "This application prefers that you set your LANG variable."
	einfo "This is best done by placing 'export LANG=en_US' (example"
	einfo "is for english systems - customize for your language) into "
	einfo "your shell environment. Other locales can be found in "
	einfo "/usr/share/locale. Export the corresponding directory name "
	einfo "into your LANG variable."
	einfo ""
	einfo "You can launch emelfm2 without setting this variable by running"
	einfo "it with the -i flag."

}