Gentoo Archives: gentoo-commits

From: Quentin Retornaz <gentoo@××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: dev-libs/libressl/
Date: Sat, 06 Nov 2021 18:21:14
Message-Id: 1636222802.930a28df0aa22c13c1c0b9661d60426fe9b779ce.quentin@gentoo
1 commit: 930a28df0aa22c13c1c0b9661d60426fe9b779ce
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Wed Nov 3 17:33:15 2021 +0000
4 Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
5 CommitDate: Sat Nov 6 18:20:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=930a28df
7
8 dev-libs/libressl: Update for 3.4.1
9
10 Closes https://github.com/gentoo/libressl/pull/362
11
12 Signed-off-by: orbea <orbea <AT> riseup.net>
13 Closes: https://github.com/gentoo/libressl/pull/366
14 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
15
16 dev-libs/libressl/Manifest | 1 +
17 dev-libs/libressl/libressl-3.4.1.ebuild | 63 +++++++++++++++++++++++++++++++++
18 2 files changed, 64 insertions(+)
19
20 diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
21 index b627fba..eba4377 100644
22 --- a/dev-libs/libressl/Manifest
23 +++ b/dev-libs/libressl/Manifest
24 @@ -1,3 +1,4 @@
25 DIST libressl-3.2.7.tar.gz 3841186 BLAKE2B 878c136fb61a612910ca6469ffc609c7cd1c502e5471b07d3122eb509e370e0f75cd0b07b7297079fa91220c5d21320f2f635ad05e61a7ea492f65b59f10b940 SHA512 34bddff17c93c7c5994bf3db92037882731fc41ddea0daa4ff57c8662d089e1c8d86cc6a4b36cee2cd57125ff7225d5448b6fd5ea6fb05053b708f804d4b264f
26 DIST libressl-3.3.5.tar.gz 3847261 BLAKE2B dcdb1a328bde78e52c721207df5b072f8c2fae3aa04e48547af28317de7520a9e50e7bd700d2ad03a1e46c79fe6822c8696fdd948a0e90999ecfeb8022e2aa95 SHA512 d7835ade07bff28425f9563189b4351f7864d3fafed264c3dad09e67b451a0166c825efadafc176c93c37f5c00789ad4f654146d3d3c0b59cb9981d1a8f9312f
27 DIST libressl-3.4.0.tar.gz 3917583 BLAKE2B 3be62513c99fe1336732ea2e0fb46e3eb788e139b0bc31d3350596b72e6a877bd62042f00173cc50a8b96115778dd567ca9e89e65d2fa592c7675fb7bb78317a SHA512 035a833889b1c52cb2828c38e01b33efc344586c2c7eed28241e74947efc767b893b41671ddc3c09ce6ff72f3bf91666ef07b9b8abb9ee9c619d68835787fb46
28 +DIST libressl-3.4.1.tar.gz 3917346 BLAKE2B 0c7e6f6594a5f16b68490ae70e51f975dce0e1d90a1a343590e7b430351531659609a1fbf4b579d72fa3ae3c332e03a3fe282807cb40b3964cb786cc5764236f SHA512 6a4ff612a9f82da672a66c9db807e34cabc961ffa309900cefde2c5061e129d1ec06f9688f5e83ebc5d8ed21a64ff0035271c807b71113b9e8f54e094cc8632f
29
30 diff --git a/dev-libs/libressl/libressl-3.4.1.ebuild b/dev-libs/libressl/libressl-3.4.1.ebuild
31 new file mode 100644
32 index 0000000..a16ffe3
33 --- /dev/null
34 +++ b/dev-libs/libressl/libressl-3.4.1.ebuild
35 @@ -0,0 +1,63 @@
36 +# Copyright 1999-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit multilib-minimal libtool
42 +
43 +DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
44 +HOMEPAGE="https://www.libressl.org/"
45 +SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
46 +
47 +LICENSE="ISC openssl"
48 +# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
49 +# we'll try to use the max of either. However, if either change between
50 +# versions, we have to change the subslot to trigger rebuild of consumers.
51 +SLOT="0/48"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
53 +IUSE="+asm static-libs test"
54 +RESTRICT="!test? ( test )"
55 +REQUIRED_USE="test? ( static-libs )"
56 +
57 +DEPEND="${RDEPEND}"
58 +PDEPEND="app-misc/ca-certificates"
59 +
60 +src_prepare() {
61 + touch crypto/Makefile.in
62 +
63 + sed -i \
64 + -e '/^[ \t]*CFLAGS=/s#-g ##' \
65 + -e '/^[ \t]*CFLAGS=/s#-g"#"#' \
66 + -e '/^[ \t]*CFLAGS=/s#-O2 ##' \
67 + -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
68 + -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
69 + -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
70 + configure || die "fixing CFLAGS failed"
71 +
72 + if ! use test ; then
73 + sed -i \
74 + -e '/^[ \t]*SUBDIRS =/s#tests##' \
75 + Makefile.in || die "Removing tests failed"
76 + fi
77 +
78 + eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch || die
79 +
80 + eapply_user
81 +
82 + elibtoolize # for Solaris
83 +}
84 +
85 +multilib_src_configure() {
86 + ECONF_SOURCE="${S}" econf \
87 + $(use_enable asm) \
88 + $(use_enable static-libs static)
89 +}
90 +
91 +multilib_src_test() {
92 + emake check
93 +}
94 +
95 +multilib_src_install_all() {
96 + einstalldocs
97 + find "${D}" -name '*.la' -exec rm -f {} + || die
98 +}