1 |
polynomial-c 13/10/25 12:51:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gettext-0.18.3.1-r1.ebuild |
5 |
Log: |
6 |
Fixed bug #487794. Raised ebuild to EAPI-5. Switched to mono-env eclass |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
9 |
|
10 |
Revision Changes Path |
11 |
1.224 sys-devel/gettext/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/ChangeLog?rev=1.224&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/ChangeLog?rev=1.224&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/ChangeLog?r1=1.223&r2=1.224 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v |
20 |
retrieving revision 1.223 |
21 |
retrieving revision 1.224 |
22 |
diff -u -r1.223 -r1.224 |
23 |
--- ChangeLog 25 Aug 2013 01:14:18 -0000 1.223 |
24 |
+++ ChangeLog 25 Oct 2013 12:51:26 -0000 1.224 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for sys-devel/gettext |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.223 2013/08/25 01:14:18 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.224 2013/10/25 12:51:26 polynomial-c Exp $ |
30 |
+ |
31 |
+*gettext-0.18.3.1-r1 (25 Oct 2013) |
32 |
+ |
33 |
+ 25 Oct 2013; Lars Wendler <polynomial-c@g.o> |
34 |
+ +gettext-0.18.3.1-r1.ebuild, |
35 |
+ +files/gettext-0.18.3.1-use_m4_fallback_dir.patch: |
36 |
+ Fixed autopoint installation to / when no m4dir was found (bug #487794). |
37 |
+ Raised ebuild to EAPI-5. Switched to mono-env eclass. |
38 |
|
39 |
*gettext-0.18.3.1 (25 Aug 2013) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-devel/gettext/gettext-0.18.3.1-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/gettext-0.18.3.1-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/gettext-0.18.3.1-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: gettext-0.18.3.1-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.18.3.1-r1.ebuild,v 1.1 2013/10/25 12:51:26 polynomial-c Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
inherit flag-o-matic eutils multilib toolchain-funcs mono-env libtool java-pkg-opt-2 |
58 |
|
59 |
DESCRIPTION="GNU locale utilities" |
60 |
HOMEPAGE="http://www.gnu.org/software/gettext/" |
61 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-3 LGPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
66 |
IUSE="acl -cvs doc emacs git java nls +cxx openmp static-libs elibc_glibc" |
67 |
|
68 |
DEPEND="virtual/libiconv |
69 |
dev-libs/libxml2 |
70 |
sys-libs/ncurses |
71 |
dev-libs/expat |
72 |
acl? ( virtual/acl ) |
73 |
java? ( >=virtual/jdk-1.4 )" |
74 |
RDEPEND="${DEPEND} |
75 |
!git? ( cvs? ( dev-vcs/cvs ) ) |
76 |
git? ( dev-vcs/git ) |
77 |
java? ( >=virtual/jre-1.4 )" |
78 |
PDEPEND="emacs? ( app-emacs/po-mode )" |
79 |
|
80 |
src_prepare() { |
81 |
epatch "${FILESDIR}"/${P}-use_m4_fallback_dir.patch #487794 |
82 |
java-pkg-opt-2_src_prepare |
83 |
epunt_cxx |
84 |
elibtoolize |
85 |
} |
86 |
|
87 |
src_configure() { |
88 |
local myconf="" |
89 |
# Build with --without-included-gettext (on glibc systems) |
90 |
if use elibc_glibc ; then |
91 |
myconf="${myconf} --without-included-gettext $(use_enable nls)" |
92 |
else |
93 |
myconf="${myconf} --with-included-gettext --enable-nls" |
94 |
fi |
95 |
use cxx || export CXX=$(tc-getCC) |
96 |
|
97 |
# --without-emacs: Emacs support is now in a separate package |
98 |
# --with-included-glib: glib depends on us so avoid circular deps |
99 |
# --with-included-libcroco: libcroco depends on glib which ... ^^^ |
100 |
# |
101 |
# --with-included-libunistring will _disable_ libunistring (since |
102 |
# --it's not bundled), see bug #326477 |
103 |
econf \ |
104 |
--cache-file="${S}"/config.cache \ |
105 |
--docdir="/usr/share/doc/${PF}" \ |
106 |
--without-emacs \ |
107 |
--without-lispdir \ |
108 |
$(use_enable java) \ |
109 |
--with-included-glib \ |
110 |
--with-included-libcroco \ |
111 |
--with-included-libunistring \ |
112 |
$(use_enable acl) \ |
113 |
$(use_enable openmp) \ |
114 |
$(use_enable static-libs static) \ |
115 |
$(use_with git) \ |
116 |
$(usex git --without-cvs $(use_with cvs)) |
117 |
} |
118 |
|
119 |
src_install() { |
120 |
emake install DESTDIR="${D}" |
121 |
use nls || rm -r "${D}"/usr/share/locale |
122 |
use static-libs || rm -f "${D}"/usr/lib*/*.la |
123 |
dosym msgfmt /usr/bin/gmsgfmt #43435 |
124 |
dobin gettext-tools/misc/gettextize |
125 |
|
126 |
# remove stuff that glibc handles |
127 |
if use elibc_glibc ; then |
128 |
rm -f "${D}"/usr/include/libintl.h |
129 |
rm -f "${D}"/usr/$(get_libdir)/libintl.* |
130 |
fi |
131 |
rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias |
132 |
|
133 |
[[ ${USERLAND} == "BSD" ]] && gen_usr_ldscript -a intl |
134 |
|
135 |
if use java ; then |
136 |
java-pkg_dojar "${D}"/usr/share/${PN}/*.jar |
137 |
rm -f "${D}"/usr/share/${PN}/*.jar |
138 |
rm -f "${D}"/usr/share/${PN}/*.class |
139 |
if use doc ; then |
140 |
java-pkg_dojavadoc "${D}"/usr/share/doc/${PF}/javadoc2 |
141 |
rm -rf "${D}"/usr/share/doc/${PF}/javadoc2 |
142 |
fi |
143 |
fi |
144 |
|
145 |
if use doc ; then |
146 |
dohtml "${D}"/usr/share/doc/${PF}/*.html |
147 |
else |
148 |
rm -rf "${D}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1} |
149 |
fi |
150 |
rm -f "${D}"/usr/share/doc/${PF}/*.html |
151 |
|
152 |
dodoc AUTHORS ChangeLog NEWS README THANKS |
153 |
} |
154 |
|
155 |
pkg_preinst() { |
156 |
# older gettext's sometimes installed libintl ... |
157 |
# need to keep the linked version or the system |
158 |
# could die (things like sed link against it :/) |
159 |
preserve_old_lib /{,usr/}$(get_libdir)/libintl$(get_libname 7) |
160 |
|
161 |
java-pkg-opt-2_pkg_preinst |
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
preserve_old_lib_notify /{,usr/}$(get_libdir)/libintl$(get_libname 7) |
166 |
} |