blob: 60b3a80ddadd7232c0c54f6cafda2cb128686029 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2-0.3.5.ebuild,v 1.2 2007/09/07 19:12:16 josejx Exp $
inherit eutils toolchain-funcs
DESCRIPTION="A file manager that implements the popular two-pane design"
HOMEPAGE="http://emelfm2.net"
SRC_URI="http://${PN}.net/rel/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~ppc64 ~sparc ~x86"
IUSE="unicode fam"
RESTRICT="test"
DEPEND=">=x11-libs/gtk+-2.6
fam? ( virtual/fam )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s:emelfm2/emelfm2_48.png:emelfm2.png:" docs/desktop_environment/emelfm2.desktop
}
src_compile() {
local myconf
if use unicode; then
myconf="FILES_UTF8ONLY=1"
fi
if use fam; then
if has_version "app-admin/gamin"; then
myconf="${myconf} USE_GAMIN=1"
else
myconf="${myconf} USE_FAM=1"
fi
else
myconf="${myconf} USE_FAM=0"
fi
emake ICONDIR="/usr/share/pixmaps" \
PREFIX="/usr" CC="$(tc-getCC) ${CFLAGS}" \
${myconf} || die "emake failed."
}
src_install() {
emake ICONDIR="${D}"/usr/share/pixmaps \
PREFIX="${D}"/usr install || die "emake install failed."
newicon icons/emelfm2_48.png emelfm2.png
prepalldocs
}
|