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/
Date: Mon, 17 Aug 2020 22:21:14
Message-Id: 1597702754.e75248b8cffc38f4529ab45acb30b2f916b836f0.chewi@gentoo
1 commit: e75248b8cffc38f4529ab45acb30b2f916b836f0
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 17 22:19:14 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 17 22:19:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e75248b8
7
8 app-crypt/rhash: Version bump to 1.4.0
9
10 Package-Manager: Portage-3.0.3, Repoman-2.3.23
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 app-crypt/rhash/Manifest | 1 +
14 app-crypt/rhash/rhash-1.4.0.ebuild | 74 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 75 insertions(+)
16
17 diff --git a/app-crypt/rhash/Manifest b/app-crypt/rhash/Manifest
18 index 2e8665c315b..7d4e592d996 100644
19 --- a/app-crypt/rhash/Manifest
20 +++ b/app-crypt/rhash/Manifest
21 @@ -1,3 +1,4 @@
22 DIST rhash-1.3.6-src.tar.gz 328097 BLAKE2B c74993d183f0f2e479f0bd5831a9f653b9bd17bbed4d1ba896f6e33db98b7141175cd3c688dc41dfd8ec4b98acb51255ae5b795435cbc9dfb5ab77573cb25543 SHA512 54f7f238ed1fdc01c29cc1338fa86be90b69beff0df8f20d24ce9cb3c48c7f4668b84a3fe0d4d8b04b54bc8145485d493435edf3219de3a637af0f9c007c85c6
23 DIST rhash-1.3.8-src.tar.gz 393544 BLAKE2B c326b3fa6dbc5ea2cce40105dc319456fdcc58140a05e8002bf1d92be921d8bbd27bf670370ba7cf2ff2001ff70ddbeb8efc9712869a7b215c5f51a5e493b5c9 SHA512 9dba4fa4dd49d323f2e440c5b93eac1ef62eb4046ec4ef611f0978c12c1739002f1ac1f1ec5e61bd359dc89e9ed612db71be91a795184ac5d5433280d27fa4c1
24 DIST rhash-1.3.9-src.tar.gz 403415 BLAKE2B 49f3b9348485b83521f58fa1de30517b05a8265547cbec3276d89c42b46baccc4ea22d41638764600c76669308a5f7d9d3995b7cec51676c9f8492ba740e473c SHA512 6fae0587cdeb42df59d542c58bad734259d1ff39fba92531c10a469b51310644669ffbe0453e72d85c2cf38b176962f6dca9062a121ac019f1b30f207a176e60
25 +DIST rhash-1.4.0-src.tar.gz 406433 BLAKE2B 2af437cd3a049bb9473825026f8a6476c81b4400a47638c62ee3ecb3d3984f7f9fe97def91488094a2919e5baad967d3f49ec7d95363896e270251ad085bacac SHA512 2f02487fffe8d1bc70c4454829bbd250a15fbd09db5ef85c54d3e8ad1008e84616ea54483292deae45047a27964e27b26d9b3da8447e7c37dac1e2ce18a63a07
26
27 diff --git a/app-crypt/rhash/rhash-1.4.0.ebuild b/app-crypt/rhash/rhash-1.4.0.ebuild
28 new file mode 100644
29 index 00000000000..e777c4b21ff
30 --- /dev/null
31 +++ b/app-crypt/rhash/rhash-1.4.0.ebuild
32 @@ -0,0 +1,74 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit toolchain-funcs multilib-minimal
39 +
40 +DESCRIPTION="Console utility and library for computing and verifying file hash sums"
41 +HOMEPAGE="http://rhash.sourceforge.net/"
42 +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +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"
47 +IUSE="debug nls libressl ssl static-libs"
48 +
49 +RDEPEND="
50 + ssl? (
51 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
52 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
53 +)"
54 +
55 +DEPEND="
56 + ${RDEPEND}
57 +"
58 +
59 +BDEPEND="
60 + nls? ( sys-devel/gettext )
61 +"
62 +
63 +S="${WORKDIR}/RHash-${PV}"
64 +
65 +src_prepare() {
66 + default
67 + multilib_copy_sources
68 +}
69 +
70 +multilib_src_configure() {
71 + set -- \
72 + ./configure \
73 + --target="${CHOST}" \
74 + --cc="$(tc-getCC)" \
75 + --ar="$(tc-getAR)" \
76 + --extra-cflags="${CFLAGS}" \
77 + --extra-ldflags="${LDFLAGS}" \
78 + --prefix="${EPREFIX}"/usr \
79 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
80 + --sysconfdir="${EPREFIX}"/etc \
81 + --disable-openssl-runtime \
82 + --disable-static \
83 + --enable-lib-shared \
84 + $(use_enable debug) \
85 + $(use_enable nls gettext) \
86 + $(use_enable ssl openssl) \
87 + $(use_enable static-libs lib-static)
88 +
89 + echo "${@}"
90 + "${@}" || die "configure failed"
91 +}
92 +
93 +# We would add compile-gmo to the build targets but install-gmo always
94 +# recompiles unconditionally. :(
95 +
96 +multilib_src_install() {
97 + # -j1 needed due to race condition.
98 + emake DESTDIR="${D}" -j1 \
99 + install{,-lib-headers,-pkg-config} \
100 + $(use nls && echo install-gmo) \
101 + $(use kernel_Winnt || echo install-lib-so-link)
102 +}
103 +
104 +multilib_src_test() {
105 + emake test
106 +}