commit:     18e5fc8e9e14f5e52ac26cd3dee23cf814ae8fd7
Author:     itZzenXX <codeberg.giovanni <AT> aleeas <DOT> com>
AuthorDate: Wed Mar  2 21:57:41 2022 +0000
Commit:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Sun Mar  6 23:40:53 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=18e5fc8e

dev-libs/libressl: bump to 3.5.0

Signed-off-by: itZzenXX <codeberg.giovanni <AT> aleeas.com>
Closes: https://github.com/gentoo/libressl/pull/379
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>

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

diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
index 6d88fb2..e5b8175 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.2.tar.gz 3918441 BLAKE2B 
87fd4a704fc7276ef38a57ae7a6df69db129c88be50c64efdf82b50d3ad277c2b1c89ba707ddec2c08f1571a2699b1aeebbc94bf32e69d66e606c59282dc3f1e
 SHA512 
ae91a840b29330681dc2a4f55a9bd760e6fe1bdfb3399017aae3a16bd21b413e97cbb8ba504400f0a1f42757f6128b3fa763d06bae4fc9f2b9dbeea867a57ad2
+DIST libressl-3.5.0.tar.gz 4029094 BLAKE2B 
22ce978629e018349a3bdcfc871bf552b10653747d0683f0a4b090882c386cc78450a324d1cea5607c1b999e682f21691ca4ddc97990c9c8f184dcc39d93dc3f
 SHA512 
599d8c1068175d4a9a26ff68ab95d44dff0d3c06a9bd205301b0c7f9b06c1fec7b18cfa0eb0fced2db9429daa5bacc1c9391462f5de6ff311ded1e5d5b9855c8

diff --git a/dev-libs/libressl/libressl-3.5.0.ebuild 
b/dev-libs/libressl/libressl-3.5.0.ebuild
new file mode 100644
index 0000000..a16ffe3
--- /dev/null
+++ b/dev-libs/libressl/libressl-3.5.0.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