| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/pcmanfm/pcmanfm-0.9.9_pre20110422.ebuild,v 1.8 2012/05/05 04:53:46 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
|
| 7 |
if [[ ${PV} == 9999 ]]; then
|
| 8 |
EGIT_REPO_URI="git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/${PN}"
|
| 9 |
inherit autotools git-2
|
| 10 |
SRC_URI=""
|
| 11 |
else
|
| 12 |
inherit autotools
|
| 13 |
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
|
| 14 |
KEYWORDS="~alpha amd64 arm ppc x86"
|
| 15 |
fi
|
| 16 |
|
| 17 |
inherit fdo-mime
|
| 18 |
|
| 19 |
DESCRIPTION="Fast lightweight tabbed filemanager"
|
| 20 |
HOMEPAGE="http://pcmanfm.sourceforge.net/"
|
| 21 |
|
| 22 |
LICENSE="GPL-2"
|
| 23 |
SLOT="0"
|
| 24 |
IUSE="debug"
|
| 25 |
|
| 26 |
COMMON_DEPEND=">=dev-libs/glib-2.18:2
|
| 27 |
>=x11-libs/gtk+-2.22.1:2
|
| 28 |
>=lxde-base/menu-cache-0.3.2
|
| 29 |
>=x11-libs/libfm-0.1.15_pre20110202"
|
| 30 |
RDEPEND="${COMMON_DEPEND}
|
| 31 |
virtual/eject"
|
| 32 |
DEPEND="${COMMON_DEPEND}
|
| 33 |
>=dev-util/intltool-0.40
|
| 34 |
virtual/pkgconfig
|
| 35 |
sys-devel/gettext"
|
| 36 |
|
| 37 |
src_prepare() {
|
| 38 |
intltoolize --force --copy --automake || die
|
| 39 |
# Fix tests. Bug #357125
|
| 40 |
for x in about autorun desktop-pref pref; do
|
| 41 |
echo data/ui/${x}.ui >> po/POTFILES.in
|
| 42 |
done
|
| 43 |
# Fix desktop icons
|
| 44 |
sed -i -e "/MimeType/s:=.*normal;:=:" data/${PN}.desktop.in \
|
| 45 |
|| die "failed to fix desktop icon"
|
| 46 |
eautoreconf
|
| 47 |
}
|
| 48 |
|
| 49 |
src_configure() {
|
| 50 |
econf \
|
| 51 |
--sysconfdir=/etc \
|
| 52 |
$(use_enable debug)
|
| 53 |
}
|
| 54 |
|
| 55 |
src_install() {
|
| 56 |
emake DESTDIR="${D}" install || die
|
| 57 |
dodoc AUTHORS
|
| 58 |
}
|
| 59 |
|
| 60 |
pkg_postinst() {
|
| 61 |
fdo-mime_desktop_database_update
|
| 62 |
|
| 63 |
elog 'PCmanFM can optionally support the menu://applications/ location.'
|
| 64 |
elog 'You should install lxde-base/lxmenu-data for that functionality.'
|
| 65 |
}
|
| 66 |
|
| 67 |
pkg_postrm() {
|
| 68 |
fdo-mime_desktop_database_update
|
| 69 |
}
|