Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/recode/
Date: Wed, 02 Jun 2021 10:58:59
Message-Id: 1622631490.efd1346188b3cc708f685261a97a6d3ee60739c1.sam@gentoo
1 commit: efd1346188b3cc708f685261a97a6d3ee60739c1
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 2 10:55:59 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 2 10:58:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efd13461
7
8 app-text/recode: add 3.7.9
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-text/recode/Manifest | 1 +
13 app-text/recode/recode-3.7.9.ebuild | 58 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/app-text/recode/Manifest b/app-text/recode/Manifest
17 index 7aa40eb5c34..9e411606aca 100644
18 --- a/app-text/recode/Manifest
19 +++ b/app-text/recode/Manifest
20 @@ -1,2 +1,3 @@
21 DIST recode-3.7.6.tar.gz 2210564 BLAKE2B 8c99b6d2eb93482785fe7e36063514e4c153516cc8059a9b98fc9f1b08704314b7933390a5fd7921525648ef58e9f995242182b8de23b7db33cbf94383e28f29 SHA512 ababefc445fcc47b6bf9ed640b767aed374bb8ce93cdccb641dd1ba5d298360583dd79070a0bb458f1190a8d6f1ddeb3b04eec34a61305b69def0963cec5843f
22 DIST recode-3.7.8.tar.gz 2230154 BLAKE2B 853a53d86a3a3600e5d70a8dc67bab9b0fa7a9dfab79e3f4ae8611f54c955802862689077774f7b21ce360f2d91c65ee238406ffa137a84545157e3a70853f42 SHA512 e6cd9c7d3eb5c179d3f62804018d1d19b71a3fae72b0d76aec730c36e64c50a571cbfda5340ac50244a16ccdd9265f5610deadb8908067c3866fa68cbbf0ac70
23 +DIST recode-3.7.9.tar.gz 2230259 BLAKE2B 36039ba9e62c5113231764dfa9cffa73b7ff5cd91bab622a0daf0a48a73ab8a62afd16132cec2590eed14623ce5b86ad057e8ca8454cf8185869f0780b3523e7 SHA512 277074dee63cdc7f1a1be2acca67481b8fb816bd4319fe8e882696e42d15309750b930fa9e8d6286e714132a976f0eaf87f718560d6cb86eeaa79b86f0700a6c
24
25 diff --git a/app-text/recode/recode-3.7.9.ebuild b/app-text/recode/recode-3.7.9.ebuild
26 new file mode 100644
27 index 00000000000..163176ef093
28 --- /dev/null
29 +++ b/app-text/recode/recode-3.7.9.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +
38 +inherit flag-o-matic python-any-r1 toolchain-funcs
39 +
40 +DESCRIPTION="Convert files between various character sets"
41 +HOMEPAGE="https://github.com/rrthomas/recode"
42 +SRC_URI="https://github.com/rrthomas/recode/releases/download/v${PV}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +# librecode soname version
46 +SLOT="0/3"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
48 +IUSE="nls test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="virtual/libiconv"
52 +DEPEND="
53 + ${RDEPEND}
54 + sys-devel/flex
55 +"
56 +BDEPEND="
57 + nls? ( sys-devel/gettext )
58 + test? (
59 + ${PYTHON_DEPS}
60 + $(python_gen_any_dep '
61 + dev-python/cython[${PYTHON_USEDEP}]
62 + ')
63 + )
64 +"
65 +
66 +python_check_deps() {
67 + if use test ; then
68 + has_version -b "dev-python/cython[${PYTHON_USEDEP}]" || return 1
69 + fi
70 +}
71 +
72 +src_configure() {
73 + tc-export CC LD
74 +
75 + # on solaris -lintl is needed to compile
76 + [[ ${CHOST} == *-solaris* ]] && append-libs "-lintl"
77 +
78 + # --without-included-gettext means we always use system headers
79 + # and library
80 + econf \
81 + $(use_enable nls) \
82 + --disable-static
83 +}
84 +
85 +src_install() {
86 + default
87 + find "${ED}" -name '*.la' -delete || die
88 +}