Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/rhash/, app-crypt/rhash/files/
Date: Fri, 27 Dec 2019 22:11:35
Message-Id: 1577484675.eea541f489c6e763b3b68c127d7abea2d0ad26ee.chewi@gentoo
1 commit: eea541f489c6e763b3b68c127d7abea2d0ad26ee
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 27 22:11:15 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 27 22:11:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea541f4
7
8 app-crypt/rhash: Version bump to 1.3.9
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 app-crypt/rhash/Manifest | 1 +
14 app-crypt/rhash/files/rhash-1.3.9-nls.patch | 22 ++++++++
15 app-crypt/rhash/rhash-1.3.9.ebuild | 78 +++++++++++++++++++++++++++++
16 3 files changed, 101 insertions(+)
17
18 diff --git a/app-crypt/rhash/Manifest b/app-crypt/rhash/Manifest
19 index cc4afd1859b..2e8665c315b 100644
20 --- a/app-crypt/rhash/Manifest
21 +++ b/app-crypt/rhash/Manifest
22 @@ -1,2 +1,3 @@
23 DIST rhash-1.3.6-src.tar.gz 328097 BLAKE2B c74993d183f0f2e479f0bd5831a9f653b9bd17bbed4d1ba896f6e33db98b7141175cd3c688dc41dfd8ec4b98acb51255ae5b795435cbc9dfb5ab77573cb25543 SHA512 54f7f238ed1fdc01c29cc1338fa86be90b69beff0df8f20d24ce9cb3c48c7f4668b84a3fe0d4d8b04b54bc8145485d493435edf3219de3a637af0f9c007c85c6
24 DIST rhash-1.3.8-src.tar.gz 393544 BLAKE2B c326b3fa6dbc5ea2cce40105dc319456fdcc58140a05e8002bf1d92be921d8bbd27bf670370ba7cf2ff2001ff70ddbeb8efc9712869a7b215c5f51a5e493b5c9 SHA512 9dba4fa4dd49d323f2e440c5b93eac1ef62eb4046ec4ef611f0978c12c1739002f1ac1f1ec5e61bd359dc89e9ed612db71be91a795184ac5d5433280d27fa4c1
25 +DIST rhash-1.3.9-src.tar.gz 403415 BLAKE2B 49f3b9348485b83521f58fa1de30517b05a8265547cbec3276d89c42b46baccc4ea22d41638764600c76669308a5f7d9d3995b7cec51676c9f8492ba740e473c SHA512 6fae0587cdeb42df59d542c58bad734259d1ff39fba92531c10a469b51310644669ffbe0453e72d85c2cf38b176962f6dca9062a121ac019f1b30f207a176e60
26
27 diff --git a/app-crypt/rhash/files/rhash-1.3.9-nls.patch b/app-crypt/rhash/files/rhash-1.3.9-nls.patch
28 new file mode 100644
29 index 00000000000..a6fb902676f
30 --- /dev/null
31 +++ b/app-crypt/rhash/files/rhash-1.3.9-nls.patch
32 @@ -0,0 +1,22 @@
33 +From a165520d3f63e976dd3b842c2fbb05f05f1029a8 Mon Sep 17 00:00:00 2001
34 +From: Aleksey <rhash.admin@×××××.com>
35 +Date: Sun, 15 Dec 2019 03:35:09 +0300
36 +Subject: [PATCH] i18n: fix a string in uk.po by adding newline
37 +
38 +---
39 + po/uk.po | 2 +-
40 + 1 file changed, 1 insertion(+), 1 deletion(-)
41 +
42 +diff --git a/po/uk.po b/po/uk.po
43 +index 959e47a..d6c0b1d 100644
44 +--- a/po/uk.po
45 ++++ b/po/uk.po
46 +@@ -234,7 +234,7 @@ msgstr "Перевірити хеш-файли, вказані у командн
47 +
48 + #: parse_cmdline.c:91
49 + msgid "Update the specified hash file.\n"
50 +-msgstr "Оновити вказаний хеш-файл"
51 ++msgstr "Оновити вказаний хеш-файл.\n"
52 +
53 + #: parse_cmdline.c:92
54 + msgid "Rename files by inserting crc32 sum into name.\n"
55
56 diff --git a/app-crypt/rhash/rhash-1.3.9.ebuild b/app-crypt/rhash/rhash-1.3.9.ebuild
57 new file mode 100644
58 index 00000000000..2d4c3303cd5
59 --- /dev/null
60 +++ b/app-crypt/rhash/rhash-1.3.9.ebuild
61 @@ -0,0 +1,78 @@
62 +# Copyright 1999-2019 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=7
66 +
67 +inherit toolchain-funcs multilib-minimal
68 +
69 +DESCRIPTION="Console utility and library for computing and verifying file hash sums"
70 +HOMEPAGE="http://rhash.sourceforge.net/"
71 +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
72 +
73 +LICENSE="MIT"
74 +SLOT="0"
75 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
76 +IUSE="debug nls libressl ssl static-libs"
77 +
78 +RDEPEND="
79 + ssl? (
80 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
81 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
82 +)"
83 +
84 +DEPEND="
85 + ${RDEPEND}
86 +"
87 +
88 +BDEPEND="
89 + nls? ( sys-devel/gettext )
90 +"
91 +
92 +S="${WORKDIR}/RHash-${PV}"
93 +
94 +PATCHES=(
95 + "${FILESDIR}"/${P}-nls.patch
96 +)
97 +
98 +src_prepare() {
99 + default
100 + multilib_copy_sources
101 +}
102 +
103 +multilib_src_configure() {
104 + set -- \
105 + ./configure \
106 + --target="${CHOST}" \
107 + --cc="$(tc-getCC)" \
108 + --ar="$(tc-getAR)" \
109 + --extra-cflags="${CFLAGS}" \
110 + --extra-ldflags="${LDFLAGS}" \
111 + --prefix="${EPREFIX}"/usr \
112 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
113 + --sysconfdir="${EPREFIX}"/etc \
114 + --disable-openssl-runtime \
115 + --disable-static \
116 + --enable-lib-shared \
117 + $(use_enable debug) \
118 + $(use_enable nls gettext) \
119 + $(use_enable ssl openssl) \
120 + $(use_enable static-libs lib-static)
121 +
122 + echo "${@}"
123 + "${@}" || die "configure failed"
124 +}
125 +
126 +# We would add compile-gmo to the build targets but install-gmo always
127 +# recompiles unconditionally. :(
128 +
129 +multilib_src_install() {
130 + # -j1 needed due to race condition.
131 + emake DESTDIR="${D}" -j1 \
132 + install{,-lib-headers,-pkg-config} \
133 + $(use nls && echo install-gmo) \
134 + $(use kernel_Winnt || echo install-lib-so-link)
135 +}
136 +
137 +multilib_src_test() {
138 + emake test
139 +}