Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/glib: ChangeLog glib-2.28.5.ebuild
Date: Fri, 01 Apr 2011 19:33:48
Message-Id: 20110401193337.891E820054@flycatcher.gentoo.org
1 nirbheek 11/04/01 19:33:37
2
3 Modified: ChangeLog
4 Added: glib-2.28.5.ebuild
5 Log:
6 Bump to 2.28.5, fixed g-i annotations
7
8 (Portage version: 2.1.9.45/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.455 dev-libs/glib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.455&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.455&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?r1=1.454&r2=1.455
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v
20 retrieving revision 1.454
21 retrieving revision 1.455
22 diff -u -r1.454 -r1.455
23 --- ChangeLog 26 Mar 2011 18:34:04 -0000 1.454
24 +++ ChangeLog 1 Apr 2011 19:33:37 -0000 1.455
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-libs/glib
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.454 2011/03/26 18:34:04 eva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.455 2011/04/01 19:33:37 nirbheek Exp $
30 +
31 +*glib-2.28.5 (01 Apr 2011)
32 +
33 + 01 Apr 2011; Nirbheek Chauhan <nirbheek@g.o> +glib-2.28.5.ebuild:
34 + Bump to 2.28.5, fixed g-i annotations
35
36 26 Mar 2011; Gilles Dartiguelongue <eva@g.o> -glib-2.22.5.ebuild,
37 -glib-2.24.1-r1.ebuild, -glib-2.28.3.ebuild, glib-2.28.4.ebuild:
38
39
40
41 1.1 dev-libs/glib/glib-2.28.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.28.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.28.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: glib-2.28.5.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.28.5.ebuild,v 1.1 2011/04/01 19:33:37 nirbheek Exp $
51
52 EAPI="3"
53 PYTHON_DEPEND="2"
54
55 inherit autotools gnome.org libtool eutils flag-o-matic pax-utils python virtualx
56
57 DESCRIPTION="The GLib library of C routines"
58 HOMEPAGE="http://www.gtk.org/"
59
60 LICENSE="LGPL-2"
61 SLOT="2"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
63 IUSE="debug doc fam +introspection selinux +static-libs test xattr"
64
65 RDEPEND="virtual/libiconv
66 sys-libs/zlib
67 xattr? ( sys-apps/attr )
68 fam? ( virtual/fam )"
69 DEPEND="${RDEPEND}
70 >=dev-util/pkgconfig-0.16
71 >=sys-devel/gettext-0.11
72 >=dev-util/gtk-doc-am-1.13
73 doc? (
74 >=dev-libs/libxslt-1.0
75 >=dev-util/gtk-doc-1.13
76 ~app-text/docbook-xml-dtd-4.1.2 )
77 test? ( >=sys-apps/dbus-1.2.14 )"
78 PDEPEND="introspection? ( dev-libs/gobject-introspection )
79 !<gnome-base/gvfs-1.6.4-r990" # Earlier versions do not work with glib
80
81 # XXX: Consider adding test? ( sys-devel/gdb ); assert-msg-test tries to use it
82
83 pkg_setup() {
84 python_set_active_version 2
85 }
86
87 src_prepare() {
88 if use ia64 ; then
89 # Only apply for < 4.1
90 local major=$(gcc-major-version)
91 local minor=$(gcc-minor-version)
92 if (( major < 4 || ( major == 4 && minor == 0 ) )); then
93 epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch"
94 fi
95 fi
96
97 # Don't fail gio tests when ran without userpriv, upstream bug 552912
98 # This is only a temporary workaround, remove as soon as possible
99 epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch"
100
101 # Fix gmodule issues on fbsd; bug #184301
102 epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
103
104 # Don't check for python, hence removing the build-time python dep.
105 # We remove the gdb python scripts in src_install due to bug 291328
106 epatch "${FILESDIR}/${PN}-2.25-punt-python-check.patch"
107
108 # Fix test failure when upgrading from 2.22 to 2.24, upstream bug 621368
109 epatch "${FILESDIR}/${PN}-2.24-assert-test-failure.patch"
110
111 # Do not try to remove files on live filesystem, upstream bug #619274
112 sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
113 -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
114
115 # Disable failing tests, upstream bug #???
116 epatch "${FILESDIR}/${PN}-2.26.0-disable-locale-sensitive-test.patch"
117 epatch "${FILESDIR}/${PN}-2.26.0-disable-volumemonitor-broken-test.patch"
118
119 if ! use test; then
120 # don't waste time building tests
121 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
122 || die "sed failed"
123 fi
124
125 # Needed for the punt-python-check patch, disabling timeout test
126 # Also needed to prevent croscompile failures, see bug #267603
127 eautoreconf
128
129 [[ ${CHOST} == *-freebsd* ]] && elibtoolize
130
131 epunt_cxx
132 }
133
134 src_configure() {
135 local myconf
136
137 # Building with --disable-debug highly unrecommended. It will build glib in
138 # an unusable form as it disables some commonly used API. Please do not
139 # convert this to the use_enable form, as it results in a broken build.
140 # -- compnerd (3/27/06)
141 # disable-visibility needed for reference debug, bug #274647
142 use debug && myconf="--enable-debug --disable-visibility"
143
144 # Always use internal libpcre, bug #254659
145 econf ${myconf} \
146 $(use_enable xattr) \
147 $(use_enable doc man) \
148 $(use_enable doc gtk-doc) \
149 $(use_enable fam) \
150 $(use_enable selinux) \
151 $(use_enable static-libs static) \
152 --enable-regex \
153 --with-pcre=internal \
154 --with-threads=posix \
155 --disable-dtrace \
156 --disable-systemtap
157 }
158
159 src_install() {
160 local f
161 emake DESTDIR="${D}" install || die "Installation failed"
162
163 # Do not install charset.alias even if generated, leave it to libiconv
164 rm -f "${ED}/usr/lib/charset.alias"
165
166 # Don't install gdb python macros, bug 291328
167 rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
168
169 dodoc AUTHORS ChangeLog* NEWS* README || die "dodoc failed"
170
171 insinto /usr/share/bash-completion
172 for f in gdbus gsettings; do
173 newins "${ED}/etc/bash_completion.d/${f}-bash-completion.sh" ${f} || die
174 done
175 rm -rf "${ED}/etc"
176 }
177
178 src_test() {
179 unset DBUS_SESSION_BUS_ADDRESS
180 export XDG_CONFIG_DIRS=/etc/xdg
181 export XDG_DATA_DIRS=/usr/local/share:/usr/share
182 export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
183 export XDG_DATA_HOME="${T}"
184 unset GSETTINGS_BACKEND # bug 352451
185
186 # Related test is a bit nitpicking
187 mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
188 chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
189
190 # Hardened: gdb needs this, bug #338891
191 if host-is-pax ; then
192 pax-mark -mr "${S}"/tests/.libs/assert-msg-test \
193 || die "Hardened adjustment failed"
194 fi
195
196 # Need X for dbus-launch session X11 initialization
197 Xemake check || die "tests failed"
198 }
199
200 pkg_preinst() {
201 # Only give the introspection message if:
202 # * The user has it enabled
203 # * Has glib already installed
204 # * Previous version was different from new version
205 if use introspection && has_version "${CATEGORY}/${PN}"; then
206 if ! has_version "=${CATEGORY}/${PF}"; then
207 ewarn "You must rebuild gobject-introspection so that the installed"
208 ewarn "typelibs and girs are regenerated for the new APIs in glib"
209 fi
210 fi
211 }
212
213 pkg_postinst() {
214 # Inform users about possible breakage when updating glib and not dbus-glib, bug #297483
215 if has_version dev-libs/dbus-glib; then
216 ewarn "If you experience a breakage after updating dev-libs/glib try"
217 ewarn "rebuilding dev-libs/dbus-glib"
218 fi
219 }