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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Jun 16 15:33:07 2010 UTC (9 years, 4 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Delete older ebuild.

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-r1.ebuild,v 1.9 2009/09/25 10:51:18 flameeyes 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 mirror://gentoo/${MY_PN}-0.1.9-freebsd.patch.bz2"
14
15 LICENSE="LGPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
18 IUSE="debug kernel_linux python"
19
20 RESTRICT="test" # need gam-server
21
22 RDEPEND="python? ( virtual/python )
23 !app-admin/fam
24 !<app-admin/gamin-0.1.10"
25
26 DEPEND="${RDEPEND}
27 dev-util/pkgconfig"
28
29 S="${WORKDIR}/${MY_P}"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 # Fix compile warnings; bug #188923
36 epatch "${DISTDIR}/${MY_PN}-0.1.9-freebsd.patch.bz2"
37
38 # Fix collision problem due to intermediate library, upstream bug #530635
39 epatch "${FILESDIR}/${P}-noinst-lib.patch"
40
41 # autoconf is required as the user-cflags patch modifies configure.in
42 # however, elibtoolize is also required, so when the above patch is
43 # removed, replace the following call with a call to elibtoolize
44 eautoreconf
45
46 # disable pyc compiling
47 mv "${S}"/py-compile "${S}"/py-compile.orig
48 ln -s $(type -P true) "${S}"/py-compile
49 }
50
51 src_compile() {
52 # fixes bug #225403
53 #append-flags "-D_GNU_SOURCE"
54
55 econf --disable-debug \
56 --disable-server \
57 $(use_enable kernel_linux inotify) \
58 $(use_enable debug debug-api) \
59 $(use_with python)
60
61 emake || die "emake failed"
62 }
63
64 src_install() {
65 emake DESTDIR="${D}" install || die "installation failed"
66
67 dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt
68 dohtml doc/*
69 }
70
71 pkg_postinst() {
72 if use python; then
73 python_version
74 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
75 fi
76 }
77
78 pkg_postrm() {
79 if use python; then
80 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20