/[gentoo-x86]/x11-libs/libfm/libfm-1.0.1.ebuild
Gentoo

Contents of /x11-libs/libfm/libfm-1.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Sep 22 16:32:37 2012 UTC (2 years, 2 months ago) by hwoarang
Branch: MAIN
Add vala use flag #435414. Thanks to Mr. B. Disable udisks support. Bump to EAPI4. Enable docs

(Portage version: 2.1.11.18/cvs/Linux x86_64)

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-libs/libfm/libfm-1.0.ebuild,v 1.1 2012/08/12 19:58:01 hwoarang Exp $
4
5 EAPI=4
6
7 inherit autotools fdo-mime vala
8
9 MY_PV=${PV/_/}
10 MY_P="${PN}-${MY_PV}"
11 DESCRIPTION="A library for file management"
12 HOMEPAGE="http://pcmanfm.sourceforge.net/"
13 SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.gz"
14
15 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
16 LICENSE="GPL-2"
17 SLOT="0"
18 IUSE="debug doc examples vala"
19
20 COMMON_DEPEND=">=dev-libs/glib-2.18:2
21 >=x11-libs/gtk+-2.16:2
22 >=lxde-base/menu-cache-0.3.2"
23 RDEPEND="${COMMON_DEPEND}
24 x11-misc/shared-mime-info
25 || ( gnome-base/gvfs[udev,udisks] gnome-base/gvfs[udev,gdu] )"
26 DEPEND="${COMMON_DEPEND}
27 vala? ( $(vala_depend) )
28 dev-util/gtk-doc-am
29 >=dev-util/intltool-0.40
30 virtual/pkgconfig
31 sys-devel/gettext"
32
33 S="${WORKDIR}"/${MY_P}
34
35 src_prepare() {
36 sed -ie '/SUBDIRS=/s#docs##' "${S}"/Makefile.am || die "sed failed"
37 sed -i -e '/^[[:space:]]*docs/d' -e "s:-O0::" -e "/-DG_ENABLE_DEBUG/s: -g::" \
38 configure.ac || die "sed failed"
39 #Remove -Werror for automake-1.12. Bug #421101
40 sed -i "s:-Werror::" configure.ac || die
41 eautoreconf
42 use vala && export VALAC="$(type -p valac-$(vala_best_api_version))"
43 }
44
45 src_configure() {
46 econf \
47 --sysconfdir="${EPREFIX}/etc" \
48 --disable-dependency-tracking \
49 --disable-static \
50 --disable-udisks \
51 $(use_enable examples demo) \
52 $(use_enable debug) \
53 $(use_enable vala actions) \
54 $(use_enable doc gtk-doc)
55 --with-html-dir=/usr/share/doc/${PF}/html
56 }
57
58 src_install() {
59 default
60 find "${D}" -name '*.la' -exec rm -f '{}' +
61 }
62
63 pkg_postinst() {
64 fdo-mime_mime_database_update
65 }
66
67 pkg_postrm() {
68 fdo-mime_mime_database_update
69 }

  ViewVC Help
Powered by ViewVC 1.1.20