/[gentoo-x86]/dev-libs/libgamin/libgamin-0.1.10.ebuild
Gentoo

Contents of /dev-libs/libgamin/libgamin-0.1.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jan 31 11:33:27 2009 UTC (10 years, 8 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Add blocker for app-admin/fam, bug #254658.
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10.ebuild,v 1.4 2009/01/06 15:52:38 ranger Exp $
4
5 inherit autotools eutils flag-o-matic libtool python
6
7 MY_PN=${PN//lib/}
8 MY_P=${MY_PN}-${PV}
9
10 DESCRIPTION="Library providing the FAM File Alteration Monitor API"
11 HOMEPAGE="http://www.gnome.org/~veillard/gamin/"
12 SRC_URI="http://www.gnome.org/~veillard/${MY_PN}/sources/${MY_P}.tar.gz"
13
14 LICENSE="LGPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd"
17 IUSE="debug kernel_linux python"
18
19 RESTRICT="test" # need gam-server
20
21 RDEPEND="python? ( virtual/python )
22 !<app-admin/gamin-0.1.10"
23
24 DEPEND="${RDEPEND}
25 dev-util/pkgconfig"
26
27 S="${WORKDIR}/${MY_P}"
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32
33 # Fix compile warnings; bug #188923
34 epatch "${FILESDIR}/${MY_PN}-0.1.9-freebsd.patch"
35
36 # Fix collision problem due to intermediate library, upstream bug #530635
37 epatch "${FILESDIR}/${P}-noinst-lib.patch"
38
39 # autoconf is required as the user-cflags patch modifies configure.in
40 # however, elibtoolize is also required, so when the above patch is
41 # removed, replace the following call with a call to elibtoolize
42 eautoreconf
43 }
44
45 src_compile() {
46 # fixes bug #225403
47 #append-flags "-D_GNU_SOURCE"
48
49 econf --disable-debug \
50 --disable-server \
51 $(use_enable kernel_linux inotify) \
52 $(use_enable debug debug-api) \
53 $(use_with python)
54
55 emake || die "emake failed"
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install || die "installation failed"
60
61 dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt
62 dohtml doc/*
63 }
64
65 pkg_postinst() {
66 if use python; then
67 python_version
68 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
69 fi
70 }
71
72 pkg_postrm() {
73 if use python; then
74 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20