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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 13 19:24:45 2012 UTC (23 months, 1 week ago) by hwoarang
Branch: MAIN
Changes since 1.2: +6 -3 lines
Fix building with USE=doc. Bug #442632

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)

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.1.0.ebuild,v 1.2 2012/11/13 19:14:58 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 if ! use doc; then
37 sed -ie '/SUBDIRS=/s#docs##' "${S}"/Makefile.am || die "sed failed"
38 sed -ie '/^[[:space:]]*docs/d' configure.ac || die "sed failed"
39 fi
40 sed -i -e "s:-O0::" -e "/-DG_ENABLE_DEBUG/s: -g::" \
41 configure.ac || die "sed failed"
42 #Remove -Werror for automake-1.12. Bug #421101
43 sed -i "s:-Werror::" configure.ac || die
44 eautoreconf
45 use vala && export VALAC="$(type -p valac-$(vala_best_api_version))"
46 }
47
48 src_configure() {
49 econf \
50 --sysconfdir="${EPREFIX}/etc" \
51 --disable-dependency-tracking \
52 --disable-static \
53 --disable-udisks \
54 $(use_enable examples demo) \
55 $(use_enable debug) \
56 $(use_enable vala actions) \
57 $(use_enable doc gtk-doc)
58 --with-html-dir=/usr/share/doc/${PF}/html
59 }
60
61 src_install() {
62 default
63 find "${D}" -name '*.la' -exec rm -f '{}' +
64 # Remove broken symlink #439570
65 # Sometimes a directory is created instead of a symlink. No idea why...
66 # It is wrong anyway. We expect a libfm-1.0 directory and then a libfm
67 # symlink to it.
68 if [[ -h ${D}/usr/include/${PN} || -d ${D}/usr/include/${PN} ]]; then
69 rm -r "${D}"/usr/include/${PN}
70 fi
71 }
72
73 pkg_preinst() {
74 # Resolve the symlink mess. Bug #439570
75 [[ -d "${ROOT}"/usr/include/${PN} ]] && \
76 rm -rf "${ROOT}"/usr/include/${PN}
77 if [[ -d "${D}"/usr/include/${PN}-1.0 ]]; then
78 cd ${D}/usr/include
79 ln -s --force ${PN}-1.0 ${PN}
80 fi
81 }
82
83 pkg_postinst() {
84 fdo-mime_mime_database_update
85 }
86
87 pkg_postrm() {
88 fdo-mime_mime_database_update
89 }

  ViewVC Help
Powered by ViewVC 1.1.20