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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed Apr 8 17:51:56 2015 UTC (4 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 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-r5.ebuild,v 1.12 2014/12/06 16:40:07 ago Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=( python2_7 )
8 GNOME_ORG_MODULE="gamin"
9 GNOME_TARBALL_SUFFIX="bz2"
10
11 inherit autotools eutils flag-o-matic libtool python-r1 gnome.org multilib-minimal
12
13 DESCRIPTION="Library providing the FAM File Alteration Monitor API"
14 HOMEPAGE="http://www.gnome.org/~veillard/gamin/"
15 SRC_URI="${SRC_URI}
16 mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2
17 http://dev.gentoo.org/~grobian/patches/libgamin-0.1.10-opensolaris.patch.bz2
18 http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
19
20 LICENSE="LGPL-2"
21 SLOT="0"
22 KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
23 IUSE="debug kernel_linux python static-libs"
24
25 RESTRICT="test" # needs gam-server
26
27 RDEPEND="!app-admin/fam
28 !<app-admin/gamin-0.1.10"
29 DEPEND="${RDEPEND}"
30
31 src_prepare() {
32 mv "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
33
34 # Fix QA warnings, bug #257281, upstream #466791
35 epatch "${FILESDIR}"/${PN}-0.1.10-compilewarnings.patch
36
37 if [[ ${CHOST} != *-solaris* ]] ; then
38 # Fix compile warnings; bug #188923
39 epatch "${DISTDIR}"/gamin-0.1.9-freebsd.patch.bz2
40 else
41 # (Open)Solaris necessary patches (changes configure.in), unfortunately
42 # conflicts with freebsd patch and breaks some linux installs so it must
43 # only be applied if on solaris.
44 epatch "${DISTDIR}"/${P}-opensolaris.patch.bz2
45 fi
46
47 # Fix collision problem due to intermediate library, upstream bug #530635
48 epatch "${FILESDIR}"/${PN}-0.1.10-noinst-lib.patch
49
50 # Fix compilation with latest glib, bug #382783
51 epatch "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch"
52
53 # Fix crosscompilation issues, bug #267604
54 epatch "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch"
55
56 # Enable linux specific features on armel, upstream bug #588338
57 epatch "${FILESDIR}/${P}-armel-features.patch"
58
59 # Fix possible server deadlock in ih_sub_cancel, upstream bug #667230
60 epatch "${FILESDIR}/${PN}-0.1.10-deadlock.patch"
61
62 # Drop DEPRECATED flags
63 sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die
64
65 # Build only shared version of Python module.
66 epatch "${FILESDIR}"/${PN}-0.1.10-disable_python_static_library.patch
67
68 sed -i \
69 -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
70 -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
71 configure.in || die #466962
72
73 # autoconf is required as the user-cflags patch modifies configure.in
74 # however, elibtoolize is also required, so when the above patch is
75 # removed, replace the following call with a call to elibtoolize
76 AT_M4DIR="${WORKDIR}" eautoreconf
77 }
78
79 multilib_src_configure() {
80 local myconf=(
81 $(use_enable static-libs static)
82 --disable-debug
83 --disable-server
84 $(use_enable kernel_linux inotify)
85 $(use_enable debug debug-api)
86 --without-python
87 )
88 local ECONF_SOURCE=${S}
89
90 econf "${myconf[@]}"
91 if multilib_is_native_abi && use python; then
92 python_configure() {
93 mkdir -p "${BUILD_DIR}" || die
94 cd "${BUILD_DIR}" || die
95 econf "${myconf[@]}" --with-python
96 }
97
98 python_parallel_foreach_impl python_configure
99 fi
100 }
101
102 multilib_src_compile() {
103 default
104
105 if multilib_is_native_abi && use python; then
106 local native_builddir=${BUILD_DIR}
107
108 python_compile() {
109 emake -C "${BUILD_DIR}"/python \
110 VPATH="${native_builddir}/python:${S}/python" \
111 _gamin_la_LIBADD="${native_builddir}/libgamin/libgamin-1.la"
112 }
113
114 python_foreach_impl python_compile
115 fi
116 }
117
118 multilib_src_install() {
119 emake DESTDIR="${D}" install
120
121 if multilib_is_native_abi && use python; then
122 local native_builddir=${BUILD_DIR}
123
124 python_install() {
125 emake -C "${BUILD_DIR}"/python \
126 DESTDIR="${D}" install \
127 VPATH="${native_builddir}/python:${S}/python"
128 }
129
130 python_foreach_impl python_install
131 fi
132 }
133
134 multilib_src_install_all() {
135 dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt
136 dohtml doc/*
137
138 prune_libtool_files --all
139 }

  ViewVC Help
Powered by ViewVC 1.1.20