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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.32 - (show annotations) (download)
Sun Dec 23 14:40:40 2012 UTC (19 months ago) by hwoarang
Branch: MAIN
Changes since 1.31: +8 -5 lines
Rework broken symlink logic once again

(Portage version: 2.1.11.38/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-9999.ebuild,v 1.31 2012/12/02 15:26:59 hwoarang Exp $
4
5 EAPI=5
6
7 EGIT_REPO_URI="git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/${PN}"
8
9 inherit autotools git-2 fdo-mime vala
10
11 DESCRIPTION="A library for file management"
12 HOMEPAGE="http://pcmanfm.sourceforge.net/"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 IUSE="debug doc examples vala"
17 KEYWORDS=""
18
19 COMMON_DEPEND=">=dev-libs/glib-2.18:2
20 >=x11-libs/gtk+-2.16:2
21 >=lxde-base/menu-cache-0.3.2:="
22 RDEPEND="${COMMON_DEPEND}
23 x11-misc/shared-mime-info
24 || ( gnome-base/gvfs[udev,udisks] gnome-base/gvfs[udev,gdu] )"
25 DEPEND="${COMMON_DEPEND}
26 >=dev-lang/vala-0.14.0
27 dev-util/gtk-doc-am
28 doc? (
29 dev-util/gtk-doc
30 )
31 >=dev-util/intltool-0.40
32 virtual/pkgconfig
33 sys-devel/gettext"
34
35 DOCS=( AUTHORS TODO )
36
37 src_prepare() {
38 if ! use doc; then
39 sed -ie "/^SUBDIRS_DOCS/d" Makefile.am || die "sed failed"
40 sed -ie "/^[[:space:]]*docs/d" configure.ac || die "sed failed"
41 else
42 gtkdocize --copy || die
43 fi
44 intltoolize --force --copy --automake || die
45 #disable unused translations. Bug #356029
46 for trans in app-chooser ask-rename exec-file file-prop preferred-apps \
47 progress;do
48 echo "data/ui/"${trans}.ui >> po/POTFILES.in
49 done
50 sed -i -e "s:-O0::" -e "/-DG_ENABLE_DEBUG/s: -g::" "${S}"/configure.ac || die
51 #Remove -Werror for automake-1.12. Bug #421101
52 sed -i "s:-Werror::" configure.ac || die
53 # Drop the symlink. We will create it later on. 439580
54 sed -i "/@LN_S@ @PACKAGE@-@FMLIBVER@/d" src/Makefile.am \
55 || die "failed to remove the includedir symlink"
56
57 eautoreconf
58 rm -r autom4te.cache || die
59 use vala && export VALAC="$(type -p valac-$(vala_best_api_version))"
60 }
61
62 src_configure() {
63 econf \
64 --sysconfdir="${EPREFIX}/etc" \
65 --disable-dependency-tracking \
66 --disable-static \
67 --disable-udisks \
68 $(use_enable examples demo) \
69 $(use_enable debug) \
70 $(use_enable vala actions) \
71 $(use_enable doc gtk-doc) \
72 --with-html-dir=/usr/share/doc/${PF}/html
73 }
74
75 src_install() {
76 default
77 find "${D}" -name '*.la' -exec rm -f '{}' +
78 # 439570
79 [[ -d ${D}/usr/include/${PN} ]] \
80 && rm -r ${D}/usr/include/${PN}
81 }
82
83 pkg_preinst() {
84 # Resolve the symlink mess. Bug #439570
85 [[ -d "${ROOT}"/usr/include/${PN} ]] && \
86 rm -rf "${ROOT}"/usr/include/${PN}
87 if [[ -d "${D}"/usr/include/${PN}-1.0 ]]; then
88 cd ${D}/usr/include
89 ln -s --force ${PN}-1.0 ${PN}
90 fi
91 }
92
93 pkg_postinst() {
94 fdo-mime_mime_database_update
95 }
96
97 pkg_postrm() {
98 fdo-mime_mime_database_update
99 }

  ViewVC Help
Powered by ViewVC 1.1.20