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