c0c3c28bc4f12823c96675a92dea71113be9b426
Hanno Böck openssl update

Hanno Böck authored 8 years ago

1) # Copyright 1999-2015 Gentoo Foundation
2) # Distributed under the terms of the GNU General Public License v2
Hanno Böck metadata use flags

Hanno Böck authored 8 years ago

3) # $Id$
Hanno Böck openssl update

Hanno Böck authored 8 years ago

4) 
5) EAPI="4"
6) 
7) inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
8) 
9) REV="1.7"
10) MY_P=${P/_/-}
11) DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
12) HOMEPAGE="http://www.openssl.org/"
13) SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
14) 	http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
15) 
16) LICENSE="openssl"
17) SLOT="0"
Hanno Böck fix keywords

Hanno Böck authored 8 years ago

18) KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
Hanno Böck openssl update

Hanno Böck authored 8 years ago

19) IUSE="+asm bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 static-libs test +tls-heartbeat vanilla zlib insecure-ssl2 insecure-ssl3"
20) RESTRICT="!bindist? ( bindist )"
21) 
22) # The blocks are temporary just to make sure people upgrade to a
23) # version that lack runtime version checking.  We'll drop them in
24) # the future.
25) RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
26) 	zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
27) 	kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )
28) 	abi_x86_32? (
29) 		!<=app-emulation/emul-linux-x86-baselibs-20140508
30) 		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
31) 	)
32) 	!<net-misc/openssh-5.9_p1-r4
33) 	!<net-libs/neon-0.29.6-r1"
34) DEPEND="${RDEPEND}
35) 	sys-apps/diffutils
36) 	>=dev-lang/perl-5
37) 	sctp? ( >=net-misc/lksctp-tools-1.0.12 )
38) 	test? ( sys-devel/bc )"
39) PDEPEND="app-misc/ca-certificates"
40) 
41) S="${WORKDIR}/${MY_P}"
42) 
43) MULTILIB_WRAPPED_HEADERS=(
44) 	usr/include/openssl/opensslconf.h
45) )
46) 
47) src_prepare() {
48) 	SSL_CNF_DIR="/etc/ssl"
49) 	sed \
50) 		-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
51) 		-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
52) 		"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
53) 		> "${WORKDIR}"/c_rehash || die #416717
54) 
55) 	# Make sure we only ever touch Makefile.org and avoid patching a file
56) 	# that gets blown away anyways by the Configure script in src_configure
57) 	rm -f Makefile
58) 
59) 	if ! use vanilla ; then
60) 		epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
61) 		epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
Hanno Böck metadata use flags

Hanno Böck authored 8 years ago

62) 		epatch "${FILESDIR}"/${PN}-1.0.2d-parallel-build.patch
Hanno Böck openssl update

Hanno Böck authored 8 years ago

63) 		epatch "${FILESDIR}"/${PN}-1.0.2a-parallel-obj-headers.patch
64) 		epatch "${FILESDIR}"/${PN}-1.0.2a-parallel-install-dirs.patch
65) 		epatch "${FILESDIR}"/${PN}-1.0.2a-parallel-symlinking.patch #545028
66) 		epatch "${FILESDIR}"/${PN}-1.0.2-ipv6.patch
67) 		epatch "${FILESDIR}"/${PN}-1.0.2a-x32-asm.patch #542618
Hanno Böck metadata use flags

Hanno Böck authored 8 years ago

68) 		epatch "${FILESDIR}"/${PN}-1.0.1p-default-source.patch #554338