summaryrefslogtreecommitdiff
blob: b599f8cfd5b5d99ff0b06e8c68831edf8055de32 (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
# Copyright 1999-2005 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-r1.ebuild,v 1.6 2005/09/03 03:03:33 vanquirius Exp $

inherit eutils toolchain-funcs

DESCRIPTION="A file manager that implements the popular two-pane design based on gtk+-2"
HOMEPAGE="http://emelfm2.org/"
SRC_URI="http://emelfm2.org/rel/${P}.tar.gz"

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

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

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/locale.patch
}

src_compile() {
	local myconf

	# bug 68986
	export CC="$(tc-getCC) ${CFLAGS}"
	use nls && myconf="-DENABLE_NLS"
	emake PREFIX=/usr \
		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
}