| 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.10.ebuild,v 1.8 2012/05/05 04:53:46 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools fdo-mime
|
| 8 |
|
| 9 |
DESCRIPTION="Fast lightweight tabbed filemanager"
|
| 10 |
HOMEPAGE="http://pcmanfm.sourceforge.net/"
|
| 11 |
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
|
| 12 |
|
| 13 |
KEYWORDS="~alpha amd64 arm ppc x86 ~amd64-linux ~x86-linux"
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="0"
|
| 16 |
IUSE="debug"
|
| 17 |
|
| 18 |
COMMON_DEPEND=">=dev-libs/glib-2.18:2
|
| 19 |
>=x11-libs/gtk+-2.22.1:2
|
| 20 |
>=lxde-base/menu-cache-0.3.2
|
| 21 |
>=x11-libs/libfm-0.1.16"
|
| 22 |
RDEPEND="${COMMON_DEPEND}
|
| 23 |
virtual/eject
|
| 24 |
virtual/freedesktop-icon-theme"
|
| 25 |
DEPEND="${COMMON_DEPEND}
|
| 26 |
>=dev-util/intltool-0.40
|
| 27 |
virtual/pkgconfig
|
| 28 |
sys-devel/gettext"
|
| 29 |
|
| 30 |
src_prepare() {
|
| 31 |
# Fix desktop icons
|
| 32 |
sed -i -e "/MimeType/s:=.*normal;:=:" "${S}"/data/${PN}.desktop \
|
| 33 |
|| die "failed to fix desktop icon"
|
| 34 |
# drop -O0 -g. Bug #382265 and #382265
|
| 35 |
sed -i -e "s:-O0::" -e "/-DG_ENABLE_DEBUG/s: -g::" "${S}"/configure.ac || die
|
| 36 |
#Remove -Werror for automake-1.12. Bug #421101
|
| 37 |
sed -i "s:-Werror::" configure.ac || die
|
| 38 |
eautoreconf
|
| 39 |
}
|
| 40 |
|
| 41 |
src_configure() {
|
| 42 |
econf \
|
| 43 |
--sysconfdir="${EPREFIX}/etc" \
|
| 44 |
$(use_enable debug)
|
| 45 |
}
|
| 46 |
|
| 47 |
pkg_postinst() {
|
| 48 |
fdo-mime_desktop_database_update
|
| 49 |
|
| 50 |
elog 'PCmanFM can optionally support the menu://applications/ location.'
|
| 51 |
elog 'You should install lxde-base/lxmenu-data for that functionality.'
|
| 52 |
}
|
| 53 |
|
| 54 |
pkg_postrm() {
|
| 55 |
fdo-mime_desktop_database_update
|
| 56 |
}
|