commit:     95f0c290d47c0938c64866b78ad605e074ececf0
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Fri Apr 29 22:20:31 2022 +0000
Commit:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Sun May  1 00:17:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=95f0c290

dev-libs/libressl: Update ebuild

Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>

 dev-libs/libressl/libressl-3.5.2.ebuild | 42 ++++++++++++---------------------
 1 file changed, 15 insertions(+), 27 deletions(-)

diff --git a/dev-libs/libressl/libressl-3.5.2.ebuild 
b/dev-libs/libressl/libressl-3.5.2.ebuild
index a16ffe3..2cb7044 100644
--- a/dev-libs/libressl/libressl-3.5.2.ebuild
+++ b/dev-libs/libressl/libressl-3.5.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-inherit multilib-minimal libtool
+inherit autotools multilib-minimal
 
 DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
 HOMEPAGE="https://www.libressl.org/";
@@ -19,38 +19,26 @@ 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
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.8.3-solaris10.patch
+)
 
-       eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch || die
-
-       eapply_user
+src_prepare() {
+       default
 
-       elibtoolize  # for Solaris
+       eautoreconf
 }
 
 multilib_src_configure() {
-       ECONF_SOURCE="${S}" econf \
-               $(use_enable asm) \
+       local ECONF_SOURCE="${S}"
+       local args=(
+               $(use_enable asm)
                $(use_enable static-libs static)
+               $(use_enable test tests)
+       )
+       econf "${args[@]}"
 }
 
 multilib_src_test() {

Reply via email to