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: Thu, 07 Jan 2021 21:48:35
Message-Id: 1610056090.5fc0074061e16398913db7f0a62749208aad4fbc.chewi@gentoo
1 commit: 5fc0074061e16398913db7f0a62749208aad4fbc
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 21:48:10 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 21:48:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fc00740
7
8 app-crypt/rhash: Version bump to 1.4.1
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.1
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.1.ebuild | 81 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 82 insertions(+)
16
17 diff --git a/app-crypt/rhash/Manifest b/app-crypt/rhash/Manifest
18 index 4836b91f03c..ec67cda284e 100644
19 --- a/app-crypt/rhash/Manifest
20 +++ b/app-crypt/rhash/Manifest
21 @@ -1,2 +1,3 @@
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
26 diff --git a/app-crypt/rhash/rhash-1.4.1.ebuild b/app-crypt/rhash/rhash-1.4.1.ebuild
27 new file mode 100644
28 index 00000000000..84b05ebc648
29 --- /dev/null
30 +++ b/app-crypt/rhash/rhash-1.4.1.ebuild
31 @@ -0,0 +1,81 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit toolchain-funcs multilib-minimal
38 +
39 +DESCRIPTION="Console utility and library for computing and verifying file hash sums"
40 +HOMEPAGE="http://rhash.sourceforge.net/"
41 +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
46 +IUSE="debug nls libressl ssl static-libs"
47 +
48 +RDEPEND="
49 + ssl? (
50 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
51 + libressl? ( dev-libs/libressl: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 +}