Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/recode/files/, app-text/recode/
Date: Thu, 03 Aug 2017 21:10:18
Message-Id: 1501794610.c12f5e503c32f54f57e04eab0dd7547d2d2de6b1.monsieurp@gentoo
1 commit: c12f5e503c32f54f57e04eab0dd7547d2d2de6b1
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 3 21:09:56 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 3 21:10:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c12f5e50
7
8 app-text/recode: revert 41abe76b06e50552be388dd2b27582bceaea965c.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11 RepoMan-Options: --force
12
13 app-text/recode/Manifest | 2 +
14 app-text/recode/files/recode-3.6-as-if.patch | 19 +++++++
15 app-text/recode/files/recode-3.6-gettextfix.diff | 23 +++++++++
16 app-text/recode/recode-3.6_p20-r1.ebuild | 65 ++++++++++++++++++++++++
17 4 files changed, 109 insertions(+)
18
19 diff --git a/app-text/recode/Manifest b/app-text/recode/Manifest
20 index 2a33126e724..cbb6d515936 100644
21 --- a/app-text/recode/Manifest
22 +++ b/app-text/recode/Manifest
23 @@ -1 +1,3 @@
24 +DIST recode-3.6.tar.gz 1751886 SHA256 e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf SHA512 68de277ac8cd5f6023bb077b959ab5778a78edac1299d507bab906824080b6f86e9bfcd89169aa474197c2faa9af2ceb1ed272c8dd4d50caef373afa05daed1b WHIRLPOOL 08eef3eea75d1898800d9f18eec95f50706b4e75285ce22e71723069f7e2a07ee762693c8366e5139add65b319276ced71b6f046884c1e75eb89a3922b7f3dab
25 DIST recode-3.7_pre20140303.zip 1902903 SHA256 baba145f8c8aa7ba223419dadc942f2182450925283c1067fa16f87b3a9b3857 SHA512 256d79d6f9de18bbf53cb322f0467411ef2ff8e4f242d073d7302fbd05e4942373023514d0a88e33701280c1cb4e0235d76efb9220729cd1f91f9ad8fd2407de WHIRLPOOL 19290f675cacc30ee51f198d765d27af9d03d7a6e0f048b1f14b812f7cf11533a542dbd1bc13c61037ae327a5b5693e07a5bd9b1aa3d244266f2f658ca378dfd
26 +DIST recode_3.6-20.debian.tar.gz 341117 SHA256 ec0e25d91a8d5e4a61e8e2876c338ae6c1ba89018f02ff1ee4eb01cb7c44e7ee SHA512 bc586534e77b49da7d387187a8ddb042a12871f87f4f32c818ce7218b7254ac5ba6eccb14aaaf0312579f27958883f2da620016a7049c3af24c8bfba81acc3ef WHIRLPOOL 72f00b3d6732b8794456795d847dbb2114c2577b8d5c9683c8fcb41d3bd92548322dc9d73d38af3a4811fb531d9482d1a5d37ee6600cf281bed4ceb6e794b058
27
28 diff --git a/app-text/recode/files/recode-3.6-as-if.patch b/app-text/recode/files/recode-3.6-as-if.patch
29 new file mode 100644
30 index 00000000000..c7bcc27c875
31 --- /dev/null
32 +++ b/app-text/recode/files/recode-3.6-as-if.patch
33 @@ -0,0 +1,19 @@
34 +http://bugs.gentoo.org/283029
35 +
36 +--- a/m4/flex.m4
37 ++++ b/m4/flex.m4
38 +@@ -8,11 +8,11 @@ dnl ad_AC_PROG_FLEX
39 + dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
40 + AC_DEFUN(ad_AC_PROG_FLEX,
41 + [AC_CHECK_PROGS(LEX, flex, missing)
42 +-if test "$LEX" = missing; then
43 ++AS_IF([test "$LEX" = missing], [dnl
44 + LEX="\$(top_srcdir)/$ac_aux_dir/missing flex"
45 + LEX_OUTPUT_ROOT=lex.yy
46 + AC_SUBST(LEX_OUTPUT_ROOT)dnl
47 +-else
48 ++], [:
49 + AC_PROG_LEX
50 + AC_DECL_YYTEXT
51 +-fi])
52 ++])])
53
54 diff --git a/app-text/recode/files/recode-3.6-gettextfix.diff b/app-text/recode/files/recode-3.6-gettextfix.diff
55 new file mode 100644
56 index 00000000000..3b7eb8ba20e
57 --- /dev/null
58 +++ b/app-text/recode/files/recode-3.6-gettextfix.diff
59 @@ -0,0 +1,23 @@
60 +http://bugs.gentoo.org/239372
61 +
62 +patch by Dmitry Karasik
63 +
64 +--- recode-3.6/m4/gettext.m4
65 ++++ recode-3.6/m4/gettext.m4
66 +@@ -109,12 +109,12 @@
67 + else
68 + ac_items="$LINGUAS"
69 + for ac_item in $ac_items; do
70 +- case "$ALL_LINGUAS" in
71 +- *$ac_item*)
72 ++ for supported_item in $ALL_LINGUAS; do
73 ++ if test "$ac_item" = "$supported_item"; then
74 + ac_print="$ac_print $ac_item"
75 + MOFILES="$MOFILES $ac_item.mo"
76 +- ;;
77 +- esac
78 ++ fi
79 ++ done
80 + done
81 + fi
82 + AC_SUBST(MOFILES)
83
84 diff --git a/app-text/recode/recode-3.6_p20-r1.ebuild b/app-text/recode/recode-3.6_p20-r1.ebuild
85 new file mode 100644
86 index 00000000000..7b6e7af72bc
87 --- /dev/null
88 +++ b/app-text/recode/recode-3.6_p20-r1.ebuild
89 @@ -0,0 +1,65 @@
90 +# Copyright 1999-2017 Gentoo Foundation
91 +# Distributed under the terms of the GNU General Public License v2
92 +
93 +EAPI=5
94 +
95 +WANT_AUTOMAKE="1.11" # bug 419455
96 +
97 +inherit autotools eutils flag-o-matic libtool toolchain-funcs multilib-minimal
98 +
99 +MY_P=${P%_*}
100 +MY_PV=${PV%_*}
101 +DEB_PATCH=${PV#*p}
102 +
103 +DESCRIPTION="Convert files between various character sets"
104 +HOMEPAGE="http://recode.progiciels-bpi.ca/"
105 +SRC_URI="
106 + mirror://gnu/${PN}/${MY_P}.tar.gz
107 + mirror://debian/pool/main/r/${PN}/${PN}_${MY_PV}-${DEB_PATCH}.debian.tar.gz"
108 +
109 +LICENSE="GPL-2"
110 +SLOT="0"
111 +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
112 +IUSE="nls static-libs"
113 +
114 +DEPEND="
115 + sys-devel/flex
116 + nls? ( sys-devel/gettext )"
117 +RDEPEND=""
118 +
119 +S=${WORKDIR}/${MY_P}
120 +
121 +src_prepare() {
122 + # fix #571106 by restoring pre-GCC5 inline semantics
123 + append-cflags -std=gnu89
124 +
125 + rm "${WORKDIR}"/debian/patches/series || die
126 + epatch \
127 + "${FILESDIR}/${MY_P}-gettextfix.diff" \
128 + "${FILESDIR}"/${MY_P}-as-if.patch \
129 + "${WORKDIR}"/debian/patches/*
130 + sed -i '1i#include <stdlib.h>' src/argmatch.c || die
131 +
132 + # Remove old libtool macros
133 + rm "${S}"/acinclude.m4 || die
134 +
135 + eautoreconf
136 + elibtoolize
137 +}
138 +
139 +multilib_src_configure() {
140 + # on solaris -lintl is needed to compile
141 + [[ ${CHOST} == *-solaris* ]] && append-libs "-lintl"
142 + # --without-included-gettext means we always use system headers
143 + # and library
144 + ECONF_SOURCE="${S}" econf \
145 + --without-included-gettext \
146 + $(use_enable nls) \
147 + $(use_enable static-libs static)
148 +}
149 +
150 +multilib_src_install_all() {
151 + einstalldocs
152 + find "${ED}" -name '*.la' -exec rm -f {} + || die
153 + rm -f "${ED}"/usr/lib/charset.alias || die
154 +}