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