/[gentoo-x86]/app-admin/gam-server/gam-server-0.1.10-r1.ebuild
Gentoo

Contents of /app-admin/gam-server/gam-server-0.1.10-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri May 4 00:39:09 2012 UTC (23 months, 2 weeks ago) by tetromino
Branch: MAIN
Fix hangs with glib-2.32 (bug #413331, thanks to Per Pomsel).

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

1 tetromino 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/app-admin/gam-server/gam-server-0.1.10.ebuild,v 1.12 2012/04/26 17:33:17 aballier Exp $
4    
5     EAPI="3"
6     GNOME_ORG_MODULE="gamin"
7    
8     inherit autotools eutils flag-o-matic libtool multilib python gnome.org
9    
10     DESCRIPTION="Library providing the FAM File Alteration Monitor API"
11     HOMEPAGE="http://www.gnome.org/~veillard/gamin/"
12     SRC_URI="${SRC_URI}
13     mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2
14     http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf
15    
16     LICENSE="LGPL-2"
17     SLOT="0"
18     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
19     IUSE="debug kernel_linux"
20    
21     RDEPEND=">=dev-libs/glib-2:2
22     >=dev-libs/libgamin-0.1.10
23     !app-admin/fam
24     !<app-admin/gamin-0.1.10"
25    
26     DEPEND="${RDEPEND}"
27    
28     #S=${WORKDIR}/${MY_P}
29    
30     src_prepare() {
31     mv -vf "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
32    
33     # Fix compile warnings; bug #188923
34     epatch "${DISTDIR}/gamin-0.1.9-freebsd.patch.bz2"
35    
36     # Fix file-collision due to shared library, upstream bug #530635
37     epatch "${FILESDIR}/${PN}-0.1.10-noinst-lib.patch"
38    
39     # Fix compilation with latest glib, bug #382783
40     epatch "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch"
41    
42     # Fix crosscompilation issues, bug #267604
43     epatch "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch"
44    
45     # Enable linux specific features on armel, upstream bug #588338
46     epatch "${FILESDIR}/${P}-armel-features.patch"
47    
48     # Fix deadlocks with glib-2.32, bug #413331, upstream #667230
49     epatch "${FILESDIR}/${P}-ih_sub_cancel-deadlock.patch"
50    
51     # Drop DEPRECATED flags
52     sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die
53    
54     # autoconf is required as the user-cflags patch modifies configure.in
55     # however, elibtoolize is also required, so when the above patch is
56     # removed, replace the following call with a call to elibtoolize
57     AT_M4DIR="${WORKDIR}" eautoreconf
58     }
59    
60     src_configure() {
61     # fixes bug 225403
62     #append-flags "-D_GNU_SOURCE"
63    
64     if ! has_version dev-util/pkgconfig; then
65     export DAEMON_CFLAGS="-I/usr/include/glib-2.0 -I/usr/$(get_libdir)/glib-2.0/include"
66     export DAEMON_LIBS="-lglib-2.0"
67     fi
68    
69     econf \
70     --disable-debug \
71     --disable-libgamin \
72     --without-python \
73     $(use_enable kernel_linux inotify) \
74     $(use_enable debug debug-api)
75     }
76    
77     src_install() {
78     emake DESTDIR="${D}" install || die
79     }

  ViewVC Help
Powered by ViewVC 1.1.20