Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/unac/files/, app-text/unac/
Date: Sun, 12 Jan 2020 17:07:10
Message-Id: 1578848798.cb0928bd2cce682e1eb3cd29b8b367d2b0873e94.soap@gentoo
1 commit: cb0928bd2cce682e1eb3cd29b8b367d2b0873e94
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 12 17:06:38 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 12 17:06:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0928bd
7
8 app-text/unac: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/704976
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../unac-1.8.0-debian-gcc-4.4-bug-556379.patch | 10 +++----
15 app-text/unac/unac-1.8.0.ebuild | 31 ++++++++++------------
16 2 files changed, 18 insertions(+), 23 deletions(-)
17
18 diff --git a/app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch b/app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch
19 index ca1d50274da..a006c4fbd78 100644
20 --- a/app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch
21 +++ b/app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch
22 @@ -1,8 +1,7 @@
23 See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556379
24
25 -diff -r fd7eb0d70970 unac-1.8.0/unac.c
26 ---- a/unac-1.8.0/unac.c Fri Sep 17 10:35:14 2010 +0200
27 -+++ b/unac-1.8.0/unac.c Fri Sep 17 10:36:07 2010 +0200
28 +--- a/unac.c
29 ++++ b/unac.c
30 @@ -13873,9 +13873,9 @@
31 *out_lengthp = 0;
32 } else {
33 @@ -15,9 +14,8 @@ diff -r fd7eb0d70970 unac-1.8.0/unac.c
34
35 if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) < 0) {
36 return -1;
37 -diff -r fd7eb0d70970 unac-1.8.0/unaccent.c
38 ---- a/unac-1.8.0/unaccent.c Fri Sep 17 10:35:14 2010 +0200
39 -+++ b/unac-1.8.0/unaccent.c Fri Sep 17 10:40:34 2010 +0200
40 +--- a/unaccent.c
41 ++++ b/unaccent.c
42 @@ -90,7 +90,7 @@
43 const char* charset = argv[optind++];
44
45
46 diff --git a/app-text/unac/unac-1.8.0.ebuild b/app-text/unac/unac-1.8.0.ebuild
47 index 72fcf4f08e3..fed5a147afe 100644
48 --- a/app-text/unac/unac-1.8.0.ebuild
49 +++ b/app-text/unac/unac-1.8.0.ebuild
50 @@ -1,9 +1,9 @@
51 -# Copyright 1999-2019 Gentoo Authors
52 +# Copyright 1999-2020 Gentoo Authors
53 # Distributed under the terms of the GNU General Public License v2
54
55 -EAPI="5"
56 +EAPI=7
57
58 -inherit autotools eutils
59 +inherit autotools
60
61 DESCRIPTION="Library and command-line tool for removing accents from characters"
62 HOMEPAGE="http://www.nongnu.org/unac/"
63 @@ -12,7 +12,7 @@ SRC_URI="mirror://debian/pool/main/u/unac/${P/-/_}.orig.tar.gz"
64 LICENSE="GPL-2+"
65 SLOT="0"
66 KEYWORDS="amd64 x86"
67 -IUSE="static-libs test"
68 +IUSE="test"
69 RESTRICT="!test? ( test )"
70
71 RDEPEND="virtual/libiconv"
72 @@ -21,29 +21,26 @@ DEPEND="${RDEPEND}
73
74 S="${WORKDIR}/${P}.orig"
75
76 +PATCHES=(
77 + "${FILESDIR}"/${P}-debian-gcc-4.4-bug-556379.patch
78 + "${FILESDIR}"/${P}-automake-1.13.1.patch
79 +)
80 +
81 src_prepare() {
82 - epatch "${FILESDIR}/${P}-debian-gcc-4.4-bug-556379.patch"
83 - epatch "${FILESDIR}/${P}-automake-1.13.1.patch"
84 + default
85 + rm README.Debian || die
86 # otherwise automake will fail
87 touch config.rpath
88 eautoreconf
89 }
90
91 src_configure() {
92 - econf $(use_enable static-libs static)
93 + econf --disable-static
94 }
95
96 src_install() {
97 - DOCS="AUTHORS ChangeLog NEWS README THANKS"
98 default
99 - prune_libtool_files
100 -}
101
102 -pkg_postinst() {
103 - einfo "Examples of using unaccent from the command line:"
104 - einfo "unaccent utf8 été"
105 - einfo "echo -e '\\\\0303\\\\0251t\\\\0303\\\\0251' | unaccent utf8"
106 - einfo "unaccent ISO-8859-1 < myfile > myfile.unaccent"
107 - einfo
108 - einfo "See man unaccent and man unac for more information."
109 + # no static archives
110 + find "${D}" -name '*.la' -delete || die
111 }