Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gettext: ChangeLog gettext-0.17-r1.ebuild
Date: Tue, 05 Jan 2010 07:14:00
Message-Id: E1NS3c2-0001TK-BL@stork.gentoo.org
1 pva 10/01/05 07:13:54
2
3 Modified: ChangeLog
4 Added: gettext-0.17-r1.ebuild
5 Log:
6 Backport upstream fix: replace a lone high surrogate with U+FFFD, bug #299658. Required for gajim test suite to pass.
7 (Portage version: 2.1.7.16/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.170 sys-devel/gettext/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gettext/ChangeLog?rev=1.170&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gettext/ChangeLog?rev=1.170&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gettext/ChangeLog?r1=1.169&r2=1.170
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v
19 retrieving revision 1.169
20 retrieving revision 1.170
21 diff -u -r1.169 -r1.170
22 --- ChangeLog 29 May 2009 19:57:17 -0000 1.169
23 +++ ChangeLog 5 Jan 2010 07:13:54 -0000 1.170
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-devel/gettext
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.169 2009/05/29 19:57:17 flameeyes Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.170 2010/01/05 07:13:54 pva Exp $
30 +
31 +*gettext-0.17-r1 (05 Jan 2010)
32 +
33 + 05 Jan 2010; Peter Volkov <pva@g.o> +gettext-0.17-r1.ebuild,
34 + +files/gettext-0.17-x-python.patch:
35 + Backport upstream fix: replace a lone high surrogate with U+FFFD, bug
36 + #299658. Required for gajim test suite to pass.
37
38 29 May 2009; Diego E. Pettenò <flameeyes@g.o> gettext-0.17.ebuild:
39 Replace kernel-conditional dependency on sys-apps/acl with virtual/acl.
40
41
42
43 1.1 sys-devel/gettext/gettext-0.17-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gettext/gettext-0.17-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gettext/gettext-0.17-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gettext-0.17-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.17-r1.ebuild,v 1.1 2010/01/05 07:13:54 pva Exp $
53
54 inherit flag-o-matic eutils multilib toolchain-funcs mono libtool
55
56 DESCRIPTION="GNU locale utilities"
57 HOMEPAGE="http://www.gnu.org/software/gettext/gettext.html"
58 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-3 LGPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
63 IUSE="acl doc emacs nls nocxx openmp"
64
65 DEPEND="virtual/libiconv
66 dev-libs/libxml2
67 sys-libs/ncurses
68 dev-libs/expat
69 acl? ( virtual/acl )"
70 PDEPEND="emacs? ( app-emacs/po-mode )"
71
72 src_unpack() {
73 unpack ${A}
74 cd "${S}"
75
76 epunt_cxx
77
78 epatch "${FILESDIR}"/${PN}-0.14.1-lib-path-tests.patch #81628
79 epatch "${FILESDIR}"/${PN}-0.14.2-fix-race.patch #85054
80 epatch "${FILESDIR}"/${PN}-0.15-expat-no-dlopen.patch #146211
81 epatch "${FILESDIR}"/${PN}-0.17-open-args.patch #232081
82 epatch "${FILESDIR}"/${P}-gnuinfo.patch #249167
83 epatch "${FILESDIR}"/${P}-x-python.patch #299658
84
85 # bundled libtool seems to be broken so skip certain rpath tests
86 # http://lists.gnu.org/archive/html/bug-libtool/2005-03/msg00070.html
87 sed -i \
88 -e '2iexit 77' \
89 autoconf-lib-link/tests/rpath-3*[ef] || die "sed tests"
90
91 # until upstream pulls a new gnulib/acl, we have to hack around it
92 if ! use acl ; then
93 eval export ac_cv_func_acl{,delete_def_file,extended_file,free,from_{mode,text},{g,s}et_{fd,file}}=no
94 export ac_cv_header_acl_libacl_h=no
95 export ac_cv_header_sys_acl_h=no
96 export ac_cv_search_acl_get_file=no
97 export gl_cv_func_working_acl_get_file=no
98 sed -i -e 's:use_acl=1:use_acl=0:' gettext-tools/configure
99 fi
100 }
101
102 src_compile() {
103 local myconf=""
104 # Build with --without-included-gettext (on glibc systems)
105 if use elibc_glibc ; then
106 myconf="${myconf} --without-included-gettext $(use_enable nls)"
107 else
108 myconf="${myconf} --with-included-gettext --enable-nls"
109 fi
110 use nocxx && export CXX=$(tc-getCC)
111
112 # --without-emacs: Emacs support is now in a separate package
113 # --with-included-glib: glib depends on us so avoid circular deps
114 # --with-included-libcroco: libcroco depends on glib which ... ^^^
115 econf \
116 --docdir="/usr/share/doc/${PF}" \
117 --without-emacs \
118 --disable-java \
119 --with-included-glib \
120 --with-included-libcroco \
121 $(use_enable openmp) \
122 ${myconf} \
123 || die
124 emake || die
125 }
126
127 src_install() {
128 emake install DESTDIR="${D}" || die "install failed"
129 use nls || rm -r "${D}"/usr/share/locale
130 dosym msgfmt /usr/bin/gmsgfmt #43435
131 dobin gettext-tools/misc/gettextize || die "gettextize"
132
133 # remove stuff that glibc handles
134 if use elibc_glibc ; then
135 rm -f "${D}"/usr/include/libintl.h
136 rm -f "${D}"/usr/$(get_libdir)/libintl.*
137 fi
138 rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias
139
140 if [[ ${USERLAND} == "BSD" ]] ; then
141 libname="libintl$(get_libname 8)"
142 # Move dynamic libs and creates ldscripts into /usr/lib
143 dodir /$(get_libdir)
144 mv "${D}"/usr/$(get_libdir)/${libname}* "${D}"/$(get_libdir)/
145 gen_usr_ldscript ${libname}
146 fi
147
148 if use doc ; then
149 dohtml "${D}"/usr/share/doc/${PF}/*.html
150 else
151 rm -rf "${D}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
152 fi
153 rm -f "${D}"/usr/share/doc/${PF}/*.html
154
155 dodoc AUTHORS ChangeLog NEWS README THANKS
156 }
157
158 pkg_preinst() {
159 # older gettext's sometimes installed libintl ...
160 # need to keep the linked version or the system
161 # could die (things like sed link against it :/)
162 preserve_old_lib /{,usr/}$(get_libdir)/libintl$(get_libname 7)
163 }
164
165 pkg_postinst() {
166 preserve_old_lib_notify /{,usr/}$(get_libdir)/libintl$(get_libname 7)
167 }