blob: 66af383c486b5d4588579816082e4701bf4a3f38 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/pcmanfm/pcmanfm-0.5.ebuild,v 1.2 2009/07/12 17:30:25 vostorga Exp $
EAPI="1"
inherit eutils fdo-mime
DESCRIPTION="Extremely fast and lightweight tabbed file manager"
HOMEPAGE="http://pcmanfm.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="hal"
RDEPEND="virtual/fam
x11-libs/cairo
x11-libs/gtk+:2
x11-misc/shared-mime-info
x11-themes/gnome-icon-theme
x11-libs/startup-notification
hal? ( sys-apps/hal )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/gettext"
src_unpack() {
unpack ${A}
cd "${S}"
#fixing tests, bug #262733
echo "pcmanfm-find.desktop.in" >> po/POTFILES.skip
echo "pcmanfm.desktop.in" >> po/POTFILES.skip
echo "src/exo/exo-icon-view.c" >> po/POTFILES.skip
echo "src/exo/exo-tree-view.c" >> po/POTFILES.skip
}
src_compile() {
econf $(use_enable hal) || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
if has_version app-admin/fam ; then
elog "You are using fam as your file alteration monitor,"
elog "so you must have famd started before running pcmanfm."
elog
elog "To add famd to the default runlevel and start it, run:"
elog
elog "# rc-update add famd default"
elog "# /etc/init.d/famd start"
elog
elog "It is recommended you use gamin instead of fam."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|