commit:     930a28df0aa22c13c1c0b9661d60426fe9b779ce
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Wed Nov  3 17:33:15 2021 +0000
Commit:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Sat Nov  6 18:20:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=930a28df

dev-libs/libressl: Update for 3.4.1

Closes https://github.com/gentoo/libressl/pull/362

Signed-off-by: orbea <orbea <AT> riseup.net>
Closes: https://github.com/gentoo/libressl/pull/366
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>

 dev-libs/libressl/Manifest              |  1 +
 dev-libs/libressl/libressl-3.4.1.ebuild | 63 +++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
index b627fba..eba4377 100644
--- a/dev-libs/libressl/Manifest
+++ b/dev-libs/libressl/Manifest
@@ -1,3 +1,4 @@
 DIST libressl-3.2.7.tar.gz 3841186 BLAKE2B 
878c136fb61a612910ca6469ffc609c7cd1c502e5471b07d3122eb509e370e0f75cd0b07b7297079fa91220c5d21320f2f635ad05e61a7ea492f65b59f10b940
 SHA512 
34bddff17c93c7c5994bf3db92037882731fc41ddea0daa4ff57c8662d089e1c8d86cc6a4b36cee2cd57125ff7225d5448b6fd5ea6fb05053b708f804d4b264f
 DIST libressl-3.3.5.tar.gz 3847261 BLAKE2B 
dcdb1a328bde78e52c721207df5b072f8c2fae3aa04e48547af28317de7520a9e50e7bd700d2ad03a1e46c79fe6822c8696fdd948a0e90999ecfeb8022e2aa95
 SHA512 
d7835ade07bff28425f9563189b4351f7864d3fafed264c3dad09e67b451a0166c825efadafc176c93c37f5c00789ad4f654146d3d3c0b59cb9981d1a8f9312f
 DIST libressl-3.4.0.tar.gz 3917583 BLAKE2B 
3be62513c99fe1336732ea2e0fb46e3eb788e139b0bc31d3350596b72e6a877bd62042f00173cc50a8b96115778dd567ca9e89e65d2fa592c7675fb7bb78317a
 SHA512 
035a833889b1c52cb2828c38e01b33efc344586c2c7eed28241e74947efc767b893b41671ddc3c09ce6ff72f3bf91666ef07b9b8abb9ee9c619d68835787fb46
+DIST libressl-3.4.1.tar.gz 3917346 BLAKE2B 
0c7e6f6594a5f16b68490ae70e51f975dce0e1d90a1a343590e7b430351531659609a1fbf4b579d72fa3ae3c332e03a3fe282807cb40b3964cb786cc5764236f
 SHA512 
6a4ff612a9f82da672a66c9db807e34cabc961ffa309900cefde2c5061e129d1ec06f9688f5e83ebc5d8ed21a64ff0035271c807b71113b9e8f54e094cc8632f

diff --git a/dev-libs/libressl/libressl-3.4.1.ebuild 
b/dev-libs/libressl/libressl-3.4.1.ebuild
new file mode 100644
index 0000000..a16ffe3
--- /dev/null
+++ b/dev-libs/libressl/libressl-3.4.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal libtool
+
+DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
+HOMEPAGE="https://www.libressl.org/";
+SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz";
+
+LICENSE="ISC openssl"
+# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
+# we'll try to use the max of either. However, if either change between
+# versions, we have to change the subslot to trigger rebuild of consumers.
+SLOT="0/48"
+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"
+IUSE="+asm static-libs test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( static-libs )"
+
+DEPEND="${RDEPEND}"
+PDEPEND="app-misc/ca-certificates"
+
+src_prepare() {
+       touch crypto/Makefile.in
+
+       sed -i \
+               -e '/^[ \t]*CFLAGS=/s#-g ##' \
+               -e '/^[ \t]*CFLAGS=/s#-g"#"#' \
+               -e '/^[ \t]*CFLAGS=/s#-O2 ##' \
+               -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
+               -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
+               -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
+               configure || die "fixing CFLAGS failed"
+
+       if ! use test ; then
+       sed -i \
+               -e '/^[ \t]*SUBDIRS =/s#tests##' \
+               Makefile.in || die "Removing tests failed"
+       fi
+
+       eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch || die
+
+       eapply_user
+
+       elibtoolize  # for Solaris
+}
+
+multilib_src_configure() {
+       ECONF_SOURCE="${S}" econf \
+               $(use_enable asm) \
+               $(use_enable static-libs static)
+}
+
+multilib_src_test() {
+       emake check
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       find "${D}" -name '*.la' -exec rm -f {} + || die
+}

Reply via email to