Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gettext: ChangeLog gettext-0.18.1.1-r3.ebuild
Date: Wed, 07 Sep 2011 03:14:55
Message-Id: 20110907031444.AB9F320035@flycatcher.gentoo.org
1 vapier 11/09/07 03:14:44
2
3 Modified: ChangeLog
4 Added: gettext-0.18.1.1-r3.ebuild
5 Log:
6 Add USE=static-libs support #378227 by Agostino Sarubbo.
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.195 sys-devel/gettext/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/ChangeLog?rev=1.195&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/ChangeLog?rev=1.195&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/ChangeLog?r1=1.194&r2=1.195
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v
20 retrieving revision 1.194
21 retrieving revision 1.195
22 diff -u -r1.194 -r1.195
23 --- ChangeLog 7 Sep 2011 02:28:56 -0000 1.194
24 +++ ChangeLog 7 Sep 2011 03:14:44 -0000 1.195
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-devel/gettext
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.194 2011/09/07 02:28:56 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.195 2011/09/07 03:14:44 vapier Exp $
30 +
31 +*gettext-0.18.1.1-r3 (07 Sep 2011)
32 +
33 + 07 Sep 2011; Mike Frysinger <vapier@g.o> +gettext-0.18.1.1-r3.ebuild:
34 + Add USE=static-libs support #378227 by Agostino Sarubbo.
35
36 07 Sep 2011; Mike Frysinger <vapier@g.o> gettext-0.18.1.1-r2.ebuild,
37 +files/gettext-0.18.1.1-uclibc-sched_param-def.patch:
38
39
40
41 1.1 sys-devel/gettext/gettext-0.18.1.1-r3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/gettext-0.18.1.1-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/gettext-0.18.1.1-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gettext-0.18.1.1-r3.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/sys-devel/gettext/gettext-0.18.1.1-r3.ebuild,v 1.1 2011/09/07 03:14:44 vapier Exp $
51
52 EAPI="2"
53
54 inherit flag-o-matic eutils multilib toolchain-funcs mono libtool java-pkg-opt-2
55
56 DESCRIPTION="GNU locale utilities"
57 HOMEPAGE="http://www.gnu.org/software/gettext/"
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 +git java nls nocxx openmp static-libs elibc_glibc"
64
65 DEPEND="virtual/libiconv
66 dev-libs/libxml2
67 sys-libs/ncurses
68 dev-libs/expat
69 acl? ( virtual/acl )
70 java? ( >=virtual/jdk-1.4 )"
71 RDEPEND="${DEPEND}
72 git? ( dev-vcs/git )
73 java? ( >=virtual/jre-1.4 )"
74 PDEPEND="emacs? ( app-emacs/po-mode )"
75
76 src_prepare() {
77 java-pkg-opt-2_src_prepare
78 epunt_cxx
79 elibtoolize
80 epatch "${FILESDIR}"/${P}-uclibc-sched_param-def.patch
81 }
82
83 src_configure() {
84 local myconf=""
85 # Build with --without-included-gettext (on glibc systems)
86 if use elibc_glibc ; then
87 myconf="${myconf} --without-included-gettext $(use_enable nls)"
88 else
89 myconf="${myconf} --with-included-gettext --enable-nls"
90 fi
91 use nocxx && export CXX=$(tc-getCC)
92
93 # --without-emacs: Emacs support is now in a separate package
94 # --with-included-glib: glib depends on us so avoid circular deps
95 # --with-included-libcroco: libcroco depends on glib which ... ^^^
96 #
97 # --with-included-libunistring will _disable_ libunistring (since
98 # --it's not bundled), see bug #326477
99 econf \
100 --docdir="/usr/share/doc/${PF}" \
101 --without-emacs \
102 --without-lispdir \
103 $(use_enable java) \
104 --with-included-glib \
105 --with-included-libcroco \
106 --with-included-libunistring \
107 $(use_enable acl) \
108 $(use_enable openmp) \
109 $(use_enable static-libs static) \
110 $(use_with git) \
111 --without-cvs
112 }
113
114 src_install() {
115 emake install DESTDIR="${D}" || die "install failed"
116 use nls || rm -r "${D}"/usr/share/locale
117 use static-libs || rm -f "${D}"/usr/lib*/*.la
118 dosym msgfmt /usr/bin/gmsgfmt #43435
119 dobin gettext-tools/misc/gettextize || die "gettextize"
120
121 # remove stuff that glibc handles
122 if use elibc_glibc ; then
123 rm -f "${D}"/usr/include/libintl.h
124 rm -f "${D}"/usr/$(get_libdir)/libintl.*
125 fi
126 rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias
127
128 if [[ ${USERLAND} == "BSD" ]] ; then
129 libname="libintl$(get_libname)"
130 # Move dynamic libs and creates ldscripts into /usr/lib
131 dodir /$(get_libdir)
132 mv "${D}"/usr/$(get_libdir)/${libname}* "${D}"/$(get_libdir)/
133 gen_usr_ldscript ${libname}
134 fi
135
136 if use java ; then
137 java-pkg_dojar "${D}"/usr/share/${PN}/*.jar
138 rm -f "${D}"/usr/share/${PN}/*.jar
139 rm -f "${D}"/usr/share/${PN}/*.class
140 if use doc ; then
141 java-pkg_dojavadoc "${D}"/usr/share/doc/${PF}/javadoc2
142 rm -rf "${D}"/usr/share/doc/${PF}/javadoc2
143 fi
144 fi
145
146 if use doc ; then
147 dohtml "${D}"/usr/share/doc/${PF}/*.html
148 else
149 rm -rf "${D}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
150 fi
151 rm -f "${D}"/usr/share/doc/${PF}/*.html
152
153 dodoc AUTHORS ChangeLog NEWS README THANKS
154 }
155
156 pkg_preinst() {
157 # older gettext's sometimes installed libintl ...
158 # need to keep the linked version or the system
159 # could die (things like sed link against it :/)
160 preserve_old_lib /{,usr/}$(get_libdir)/libintl$(get_libname 7)
161
162 java-pkg-opt-2_pkg_preinst
163 }
164
165 pkg_postinst() {
166 preserve_old_lib_notify /{,usr/}$(get_libdir)/libintl$(get_libname 7)
167 }