1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib-minimal
8 DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
9 HOMEPAGE="https://www.libressl.org/"
10 SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
13 # Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
14 # we'll try to use the max of either. However, if either change between
15 # versions, we have to change the subslot to trigger rebuild of consumers.
17 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
18 IUSE="+asm static-libs"
20 RDEPEND="!dev-libs/openssl:0"
22 PDEPEND="app-misc/ca-certificates"
25 touch crypto/Makefile.in
28 -e '/^[ \t]*CFLAGS=/s#-g ##' \
29 -e '/^[ \t]*CFLAGS=/s#-g"#"#' \
30 -e '/^[ \t]*CFLAGS=/s#-O2 ##' \
31 -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
32 -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
33 -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
34 configure || die "fixing CFLAGS failed"
39 multilib_src_configure() {
40 ECONF_SOURCE="${S}" econf \
42 $(use_enable static-libs static)
49 multilib_src_install_all() {