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: Sat, 17 Jul 2021 07:02:34
Message-Id: 1626505270.095d1e028b4971c7fc874f6634f30029e2e37a2c.chewi@gentoo
1 commit: 095d1e028b4971c7fc874f6634f30029e2e37a2c
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 07:01:10 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 07:01:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=095d1e02
7
8 app-crypt/rhash: Version bump to 1.4.2
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
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.2.ebuild | 80 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/app-crypt/rhash/Manifest b/app-crypt/rhash/Manifest
18 index ec67cda284e..a9578b7a2f1 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.4.0-src.tar.gz 406433 BLAKE2B 2af437cd3a049bb9473825026f8a6476c81b4400a47638c62ee3ecb3d3984f7f9fe97def91488094a2919e5baad967d3f49ec7d95363896e270251ad085bacac SHA512 2f02487fffe8d1bc70c4454829bbd250a15fbd09db5ef85c54d3e8ad1008e84616ea54483292deae45047a27964e27b26d9b3da8447e7c37dac1e2ce18a63a07
24 DIST rhash-1.4.1-src.tar.gz 413274 BLAKE2B 2027bccc677e8a1766f0624e67f475713653ddb4be457f9c8434c45019bc730934ca860e69f8b8e1fec349e724b1a366df0f5fb98501c825b44f9b8105068ff7 SHA512 30bbef7ce7815ee4ac062c537206a0b895845f61de4b1fdc0c0494f66284d9f3c1b06f812ea913fa35a3342d230d25d0986a1db644c7b4464bc1185997beb638
25 +DIST rhash-1.4.2-src.tar.gz 416853 BLAKE2B 06322825116cb00aa4987b01610d967eb57c94aa29b43348ec2c31f053fd471a900fcee776714263213e9a79eaf389b2e79d7b34a5afd3e98d68198193b5cbe7 SHA512 41df57e8b3f32c93d8e6f2ac668b32aaa23eb2eaf90a83f109e61e511404a5036ea88bcf2854e19c1ade0f61960e0d9edf01f3d82e1c645fed36579e9d7a6a25
26
27 diff --git a/app-crypt/rhash/rhash-1.4.2.ebuild b/app-crypt/rhash/rhash-1.4.2.ebuild
28 new file mode 100644
29 index 00000000000..4aa5c894ec9
30 --- /dev/null
31 +++ b/app-crypt/rhash/rhash-1.4.2.ebuild
32 @@ -0,0 +1,80 @@
33 +# Copyright 1999-2021 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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="debug nls ssl static-libs"
48 +
49 +RDEPEND="
50 + ssl? (
51 + dev-libs/openssl:0=[${MULTILIB_USEDEP}]
52 +)"
53 +
54 +DEPEND="
55 + ${RDEPEND}
56 +"
57 +
58 +BDEPEND="
59 + nls? ( sys-devel/gettext )
60 +"
61 +
62 +S="${WORKDIR}/RHash-${PV}"
63 +
64 +src_prepare() {
65 + default
66 +
67 + if [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] ; then
68 + # we lack posix_memalign
69 + sed -i -e '/if _POSIX_VERSION/s/if .*$/if 0/' \
70 + librhash/util.h || die
71 + fi
72 +
73 + multilib_copy_sources
74 +}
75 +
76 +multilib_src_configure() {
77 + set -- \
78 + ./configure \
79 + --target="${CHOST}" \
80 + --cc="$(tc-getCC)" \
81 + --ar="$(tc-getAR)" \
82 + --extra-cflags="${CFLAGS}" \
83 + --extra-ldflags="${LDFLAGS}" \
84 + --prefix="${EPREFIX}"/usr \
85 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
86 + --sysconfdir="${EPREFIX}"/etc \
87 + --disable-openssl-runtime \
88 + --disable-static \
89 + --enable-lib-shared \
90 + $(use_enable debug) \
91 + $(use_enable nls gettext) \
92 + $(use_enable ssl openssl) \
93 + $(use_enable static-libs lib-static)
94 +
95 + echo "${@}"
96 + "${@}" || die "configure failed"
97 +}
98 +
99 +# We would add compile-gmo to the build targets but install-gmo always
100 +# recompiles unconditionally. :(
101 +
102 +multilib_src_install() {
103 + # -j1 needed due to race condition.
104 + emake DESTDIR="${D}" -j1 \
105 + install{,-lib-headers,-pkg-config} \
106 + $(use nls && echo install-gmo) \
107 + $(use kernel_Winnt || echo install-lib-so-link)
108 +}
109 +
110 +multilib_src_test() {
111 + emake test
112 +}