/[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.6 - (hide annotations) (download)
Mon Apr 20 20:34:38 2009 UTC (10 years, 11 months ago) by maekke
Branch: MAIN
Changes since 1.5: +2 -2 lines
amd64 stable, bug #259212
(Portage version: 2.1.6.11/cvs/Linux x86_64)

1 armin76 1.3 # Copyright 1999-2009 Gentoo Foundation
2 yngwin 1.1 # Distributed under the terms of the GNU General Public License v2
3 maekke 1.6 # $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2-0.4.1.ebuild,v 1.5 2009/03/18 18:11:12 ranger Exp $
4 yngwin 1.1
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 maekke 1.6 KEYWORDS="amd64 ppc ppc64 sparc x86"
14 yngwin 1.2 IUSE="acl fam hal unicode"
15 yngwin 1.1
16     RESTRICT="test"
17    
18     RDEPEND=">=x11-libs/gtk+-2.12
19     fam? ( virtual/fam )
20 yngwin 1.2 acl? ( sys-apps/acl )
21     hal? ( sys-apps/hal
22     sys-apps/dbus
23     dev-libs/dbus-glib )"
24 yngwin 1.1 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 yngwin 1.2 local myconf="USE_LATEST=1 WITH_TRANSPARENCY=1 PREFIX=/usr"
39 yngwin 1.1
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 yngwin 1.2 if use hal; then
59     myconf="${myconf} WITH_HAL=1"
60     fi
61    
62 yngwin 1.1 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