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: Thu, 28 Apr 2022 23:41:05
Message-Id: 1651189235.62864fa73d125042d722a8c488d1925888b213b7.quentin@gentoo
1 commit: 62864fa73d125042d722a8c488d1925888b213b7
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Wed Apr 27 23:59:53 2022 +0000
4 Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
5 CommitDate: Thu Apr 28 23:40:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=62864fa7
7
8 dev-libs/libressl: Updated for version 3.5.2.
9
10 Signed-off-by: orbea <orbea <AT> riseup.net>
11 Closes: https://github.com/gentoo/libressl/pull/397
12 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
13
14 dev-libs/libressl/Manifest | 1 +
15 dev-libs/libressl/libressl-3.5.2.ebuild | 63 +++++++++++++++++++++++++++++++++
16 2 files changed, 64 insertions(+)
17
18 diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
19 index 97c2d87..7f80fc7 100644
20 --- a/dev-libs/libressl/Manifest
21 +++ b/dev-libs/libressl/Manifest
22 @@ -1,3 +1,4 @@
23 DIST libressl-3.3.6.tar.gz 3844198 BLAKE2B 049fe23340e7dcbbc6a9d4210e257b1de0fb2bed508b44f63e54d315476cb580ac96c0b64618a8318227c5bf6daf34a47130572009977cb85adeafe3602da104 SHA512 b34cd1c5ac610b18cef996eacb5f4b5684f47e98ed82008e6bb7c61fe488f54db0a9b55ef69298c61a1c4e42a2294fff9b011e2a7c9397fcb5820698dfe10a71
24 DIST libressl-3.4.3.tar.gz 3913963 BLAKE2B 95adbdd30f5cd573d51ab3657afd4d17263c9faae9455a88985689fbacbb711289a87027891244922250fb3ccc131f858d536df4cdadb608375ef8f0c4ea9b39 SHA512 0562d9c1fc227bacb9c6a51f50a5f29e73a960758c2ee9b0e702352cc55808f93533c9e0d2e85fb841846b9fdf6a50e6048205ebb67b8a8b7d9fdf5856fbfb91
25 DIST libressl-3.5.1.tar.gz 4030718 BLAKE2B 5894d1a3ca1b8e1db8d7582798efd3a35d0c1a331171c672ca4b2c3530c822fe13b4fa0078ac2c8b80d672ef9e4c81b963977179ac8e84bd515f2cb725a792f8 SHA512 6f31b86427144c3b6336ceb074fbe7dadd2662e598e05334999072e0d7dfa30d7fae2ab409541ae9e3359fef569849a37e2fee47b8800225a2cab7f067d60655
26 +DIST libressl-3.5.2.tar.gz 4039407 BLAKE2B 7ed995ee73516d72d00cab90a78bdd1897d57ac79912c3d6ed28b010484b2e6fae511f11b2cf247f66a54ada14d4de9e1c534e8d20aae3462074bdb5f42e3c96 SHA512 07ebd1529934d472b621b31ba458a185c9fa1a4588d0bc34b669952ff0846e227094019b322cbb808def42967510abbb0928be3f6784920451b3e0c96c8f4cad
27
28 diff --git a/dev-libs/libressl/libressl-3.5.2.ebuild b/dev-libs/libressl/libressl-3.5.2.ebuild
29 new file mode 100644
30 index 0000000..a16ffe3
31 --- /dev/null
32 +++ b/dev-libs/libressl/libressl-3.5.2.ebuild
33 @@ -0,0 +1,63 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit multilib-minimal libtool
40 +
41 +DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
42 +HOMEPAGE="https://www.libressl.org/"
43 +SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
44 +
45 +LICENSE="ISC openssl"
46 +# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
47 +# we'll try to use the max of either. However, if either change between
48 +# versions, we have to change the subslot to trigger rebuild of consumers.
49 +SLOT="0/48"
50 +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"
51 +IUSE="+asm static-libs test"
52 +RESTRICT="!test? ( test )"
53 +REQUIRED_USE="test? ( static-libs )"
54 +
55 +DEPEND="${RDEPEND}"
56 +PDEPEND="app-misc/ca-certificates"
57 +
58 +src_prepare() {
59 + touch crypto/Makefile.in
60 +
61 + sed -i \
62 + -e '/^[ \t]*CFLAGS=/s#-g ##' \
63 + -e '/^[ \t]*CFLAGS=/s#-g"#"#' \
64 + -e '/^[ \t]*CFLAGS=/s#-O2 ##' \
65 + -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
66 + -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
67 + -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
68 + configure || die "fixing CFLAGS failed"
69 +
70 + if ! use test ; then
71 + sed -i \
72 + -e '/^[ \t]*SUBDIRS =/s#tests##' \
73 + Makefile.in || die "Removing tests failed"
74 + fi
75 +
76 + eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch || die
77 +
78 + eapply_user
79 +
80 + elibtoolize # for Solaris
81 +}
82 +
83 +multilib_src_configure() {
84 + ECONF_SOURCE="${S}" econf \
85 + $(use_enable asm) \
86 + $(use_enable static-libs static)
87 +}
88 +
89 +multilib_src_test() {
90 + emake check
91 +}
92 +
93 +multilib_src_install_all() {
94 + einstalldocs
95 + find "${D}" -name '*.la' -exec rm -f {} + || die
96 +}