/[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.1 - (show annotations) (download)
Sat Sep 27 02:18:41 2008 UTC (11 years, 6 months ago) by yngwin
Branch: MAIN
Version bump. Fixes bug 219188.
(Portage version: 2.2_rc11/cvs/Linux 2.6.26.5 i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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 unicode fam"
15
16 RESTRICT="test"
17
18 RDEPEND=">=x11-libs/gtk+-2.12
19 fam? ( virtual/fam )
20 acl? ( sys-apps/acl )"
21 DEPEND="${RDEPEND}
22 dev-util/pkgconfig"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 sed -i -e "s:${PN}/${PN}_48.png:${PN}:" \
28 docs/desktop_environment/${PN}.desktop || die "sed failed."
29 sed -e "s:(PREFIX)/lib:(PREFIX)/$(get_libdir):" -e "s:strip:true:g" \
30 -i Makefile || die "sed failed."
31 }
32
33 src_compile() {
34 # These options need >=x11-libs/gtk-2.12 which we depend upon
35 local myconf="USE_LATEST=1 WITH_TRANSPARENCY=1"
36
37 if use acl; then
38 myconf="${myconf} WITH_ACL=1"
39 fi
40
41 if use unicode; then
42 myconf="${myconf} FILES_UTF8ONLY=1"
43 fi
44
45 if use fam; then
46 if has_version "app-admin/gamin"; then
47 myconf="${myconf} USE_GAMIN=1"
48 else
49 myconf="${myconf} USE_FAM=1"
50 fi
51 else
52 myconf="${myconf} USE_FAM=0"
53 fi
54
55 tc-export CC
56 emake ICON_DIR="/usr/share/pixmaps/${PN}" ${myconf} || die "emake failed."
57 }
58
59 src_install() {
60 emake PREFIX="${D}/usr" install || die "emake install failed."
61 newicon icons/${PN}_48.png ${PN}.png
62 prepalldocs
63 }

  ViewVC Help
Powered by ViewVC 1.1.20