Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libgamin: libgamin-0.1.10-r3.ebuild ChangeLog
Date: Sun, 08 Jul 2012 11:47:34
Message-Id: 20120708114714.A5A2020063@flycatcher.gentoo.org
1 pacho 12/07/08 11:47:14
2
3 Modified: ChangeLog
4 Added: libgamin-0.1.10-r3.ebuild
5 Log:
6 Fix deadlock, bug #420353 by Michael Boone.
7
8 (Portage version: 2.1.11.5/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.32 dev-libs/libgamin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgamin/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgamin/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgamin/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libgamin/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 30 Apr 2012 14:29:54 -0000 1.31
24 +++ ChangeLog 8 Jul 2012 11:47:14 -0000 1.32
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/libgamin
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/ChangeLog,v 1.31 2012/04/30 14:29:54 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/ChangeLog,v 1.32 2012/07/08 11:47:14 pacho Exp $
30 +
31 +*libgamin-0.1.10-r3 (08 Jul 2012)
32 +
33 + 08 Jul 2012; Pacho Ramos <pacho@g.o>
34 + +files/libgamin-0.1.10-deadlock.patch, +libgamin-0.1.10-r3.ebuild:
35 + Fix deadlock, bug #420353 by Michael Boone.
36
37 30 Apr 2012; Fabian Groffen <grobian@g.o> libgamin-0.1.10-r2.ebuild:
38 Fix for Prefix, add (Open)Solaris patch, bug #413415
39 @@ -125,4 +131,3 @@
40 +libgamin-0.1.10.ebuild, +metadata.xml:
41 New ebuild split off gamin. Initial ebuild inspired by Pacho Ramos, closes
42 bug #217861.
43 -
44
45
46
47 1.1 dev-libs/libgamin/libgamin-0.1.10-r3.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r3.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r3.ebuild?rev=1.1&content-type=text/plain
51
52 Index: libgamin-0.1.10-r3.ebuild
53 ===================================================================
54 # Copyright 1999-2012 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r3.ebuild,v 1.1 2012/07/08 11:47:14 pacho Exp $
57
58 EAPI="4"
59 PYTHON_DEPEND="python? 2"
60 SUPPORT_PYTHON_ABIS="1"
61 RESTRICT_PYTHON_ABIS="3.* *-jython"
62 GNOME_ORG_MODULE="gamin"
63 GNOME_TARBALL_SUFFIX="bz2"
64
65 inherit autotools eutils flag-o-matic libtool python gnome.org
66
67 DESCRIPTION="Library providing the FAM File Alteration Monitor API"
68 HOMEPAGE="http://www.gnome.org/~veillard/gamin/"
69 SRC_URI="${SRC_URI}
70 mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2
71 http://dev.gentoo.org/~grobian/patches/libgamin-0.1.10-opensolaris.patch.bz2
72 http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf
73
74 LICENSE="LGPL-2"
75 SLOT="0"
76 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"
77 IUSE="debug kernel_linux python static-libs"
78
79 RESTRICT="test" # needs gam-server
80
81 RDEPEND="!app-admin/fam
82 !<app-admin/gamin-0.1.10"
83 DEPEND="${RDEPEND}"
84
85 pkg_setup() {
86 if use python; then
87 python_pkg_setup
88 fi
89 }
90
91 src_prepare() {
92 mv -vf "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
93
94 # Fix QA warnings, bug #257281, upstream #466791
95 epatch "${FILESDIR}"/${PN}-0.1.10-compilewarnings.patch
96
97 if [[ ${CHOST} != *-solaris* ]] ; then
98 # Fix compile warnings; bug #188923
99 epatch "${DISTDIR}"/gamin-0.1.9-freebsd.patch.bz2
100 else
101 # (Open)Solaris necessary patches (changes configure.in), unfortunately
102 # conflicts with freebsd patch and breaks some linux installs so it must
103 # only be applied if on solaris.
104 epatch "${DISTDIR}"/${P}-opensolaris.patch.bz2
105 fi
106
107 # Fix collision problem due to intermediate library, upstream bug #530635
108 epatch "${FILESDIR}"/${PN}-0.1.10-noinst-lib.patch
109
110 # Fix compilation with latest glib, bug #382783
111 epatch "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch"
112
113 # Fix crosscompilation issues, bug #267604
114 epatch "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch"
115
116 # Enable linux specific features on armel, upstream bug #588338
117 epatch "${FILESDIR}/${P}-armel-features.patch"
118
119 # Fix possible server deadlock in ih_sub_cancel, upstream bug #667230
120 epatch "${FILESDIR}/${PN}-0.1.10-deadlock.patch"
121
122 # Drop DEPRECATED flags
123 sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die
124
125 # Build only shared version of Python module.
126 epatch "${FILESDIR}"/${PN}-0.1.10-disable_python_static_library.patch
127
128 # Python bindings are built/installed manually.
129 sed -e "/SUBDIRS += python/d" -i Makefile.am
130
131 # autoconf is required as the user-cflags patch modifies configure.in
132 # however, elibtoolize is also required, so when the above patch is
133 # removed, replace the following call with a call to elibtoolize
134 AT_M4DIR="${WORKDIR}" eautoreconf
135
136 use python && python_clean_py-compile_files
137 }
138
139 src_configure() {
140 econf \
141 $(use_enable static-libs static) \
142 --disable-debug \
143 --disable-server \
144 $(use_enable kernel_linux inotify) \
145 $(use_enable debug debug-api) \
146 $(use_with python)
147 }
148
149 src_compile() {
150 default
151
152 if use python; then
153 python_copy_sources python
154
155 building() {
156 emake \
157 PYTHON_INCLUDES="${EPREFIX}$(python_get_includedir)" \
158 PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
159 PYTHON_VERSION="$(python_get_version)"
160 }
161 python_execute_function -s --source-dir python building
162 fi
163 }
164
165 src_install() {
166 emake DESTDIR="${D}" install
167
168 if use python; then
169 installation() {
170 emake \
171 DESTDIR="${D}" \
172 PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
173 PYTHON_VERSION="$(python_get_version)" \
174 install
175 }
176 python_execute_function -s --source-dir python installation
177
178 python_clean_installation_image
179 fi
180
181 dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt
182 dohtml doc/*
183
184 find "${D}" -name '*.la' -exec rm -f {} +
185 }
186
187 pkg_postinst() {
188 if use python; then
189 python_mod_optimize gamin.py
190 fi
191 }
192
193 pkg_postrm() {
194 if use python; then
195 python_mod_cleanup gamin.py
196 fi
197 }