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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Aug 12 19:58:01 2012 UTC (5 years, 1 month ago) by hwoarang
Branch: MAIN
Version bump. Remove old

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 hwoarang 1.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_rc1.ebuild,v 1.2 2012/07/21 11:07:26 hwoarang Exp $
4    
5     EAPI=4
6    
7     inherit autotools fdo-mime
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 examples"
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     dev-util/gtk-doc-am
28     >=dev-util/intltool-0.40
29     virtual/pkgconfig
30     sys-devel/gettext"
31    
32     S="${WORKDIR}"/${MY_P}
33    
34     src_prepare() {
35     sed -ie '/SUBDIRS=/s#docs##' "${S}"/Makefile.am || die "sed failed"
36     sed -i -e '/^[[:space:]]*docs/d' -e "s:-O0::" -e "/-DG_ENABLE_DEBUG/s: -g::" \
37     configure.ac || die "sed failed"
38     #Remove -Werror for automake-1.12. Bug #421101
39     sed -i "s:-Werror::" configure.ac || die
40     eautoreconf
41     }
42    
43     src_configure() {
44     econf \
45     --sysconfdir="${EPREFIX}/etc" \
46     --disable-dependency-tracking \
47     --disable-static \
48     $(use_enable udev udisks) \
49     $(use_enable examples demo) \
50     $(use_enable debug) \
51     # Documentation fails to build at the moment
52     # $(use_enable doc gtk-doc) \
53     # $(use_enable doc gtk-doc-html) \
54     --with-html-dir=/usr/share/doc/${PF}/html
55     }
56    
57     src_install() {
58     default
59     find "${D}" -name '*.la' -exec rm -f '{}' +
60     }
61    
62     pkg_postinst() {
63     fdo-mime_mime_database_update
64     }
65    
66     pkg_postrm() {
67     fdo-mime_mime_database_update
68     }

  ViewVC Help
Powered by ViewVC 1.1.20