/[gentoo-x86]/app-misc/emelfm2/emelfm2-0.4.1.ebuild
Gentoo

Contents of /app-misc/emelfm2/emelfm2-0.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Mar 7 13:20:35 2009 UTC (11 years ago) by armin76
Branch: MAIN
Changes since 1.2: +3 -3 lines
sparc/x86 stable wrt #259212
(Portage version: 2.1.6.7/cvs/Linux ia64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2-0.4.1.ebuild,v 1.2 2008/09/27 02:34:45 yngwin Exp $
4
5 inherit eutils toolchain-funcs multilib
6
7 DESCRIPTION="A file manager that implements the popular two-pane design"
8 HOMEPAGE="http://emelfm2.net"
9 SRC_URI="http://${PN}.net/rel/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~ppc64 sparc x86"
14 IUSE="acl fam hal unicode"
15
16 RESTRICT="test"
17
18 RDEPEND=">=x11-libs/gtk+-2.12
19 fam? ( virtual/fam )
20 acl? ( sys-apps/acl )
21 hal? ( sys-apps/hal
22 sys-apps/dbus
23 dev-libs/dbus-glib )"
24 DEPEND="${RDEPEND}
25 dev-util/pkgconfig"
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 sed -i -e "s:${PN}/${PN}_48.png:${PN}:" \
31 docs/desktop_environment/${PN}.desktop || die "sed failed."
32 sed -e "s:(PREFIX)/lib:(PREFIX)/$(get_libdir):" -e "s:strip:true:g" \
33 -i Makefile || die "sed failed."
34 }
35
36 src_compile() {
37 # These options need >=x11-libs/gtk-2.12 which we depend upon
38 local myconf="USE_LATEST=1 WITH_TRANSPARENCY=1 PREFIX=/usr"
39
40 if use acl; then
41 myconf="${myconf} WITH_ACL=1"
42 fi
43
44 if use unicode; then
45 myconf="${myconf} FILES_UTF8ONLY=1"
46 fi
47
48 if use fam; then
49 if has_version "app-admin/gamin"; then
50 myconf="${myconf} USE_GAMIN=1"
51 else
52 myconf="${myconf} USE_FAM=1"
53 fi
54 else
55 myconf="${myconf} USE_FAM=0"
56 fi
57
58 if use hal; then
59 myconf="${myconf} WITH_HAL=1"
60 fi
61
62 tc-export CC
63 emake ICON_DIR="/usr/share/pixmaps/${PN}" ${myconf} || die "emake failed."
64 }
65
66 src_install() {
67 emake PREFIX="${D}/usr" install || die "emake install failed."
68 newicon icons/${PN}_48.png ${PN}.png
69 prepalldocs
70 }

  ViewVC Help
Powered by ViewVC 1.1.20