| 1 |
tetromino |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
ssuominen |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/gam-server/gam-server-0.1.10-r1.ebuild,v 1.1 2012/05/04 00:39:09 tetromino Exp $
|
| 4 |
tetromino |
1.1 |
|
| 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 |
ssuominen |
1.2 |
if ! has_version virtual/pkgconfig; then
|
| 65 |
tetromino |
1.1 |
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 |
|
|
}
|