openssl-1.0.1h-r1.ebuild added
This commit is contained in:
parent
924ec0364d
commit
161e6f198c
|
@ -1,10 +1,10 @@
|
||||||
# Copyright 1999-2014 Gentoo Foundation
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1h.ebuild,v 1.1 2014/06/05 12:53:23 polynomial-c Exp $
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1h-r1.ebuild,v 1.7 2014/06/06 05:13:00 vapier Exp $
|
||||||
|
|
||||||
EAPI="4"
|
EAPI="4"
|
||||||
|
|
||||||
inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
|
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||||
|
|
||||||
REV="1.7"
|
REV="1.7"
|
||||||
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
|
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
|
||||||
|
@ -14,19 +14,19 @@ SRC_URI="mirror://openssl/source/${P}.tar.gz
|
||||||
|
|
||||||
LICENSE="openssl"
|
LICENSE="openssl"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
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"
|
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"
|
||||||
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test +tls-heartbeat vanilla zlib"
|
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test +tls-heartbeat vanilla zlib"
|
||||||
|
|
||||||
|
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
|
||||||
|
# our libssl.a depends on libz.a/etc... at runtime.
|
||||||
|
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
|
||||||
|
zlib? ( sys-libs/zlib[static-libs(+)] )
|
||||||
|
kerberos? ( app-crypt/mit-krb5 )"
|
||||||
# The blocks are temporary just to make sure people upgrade to a
|
# The blocks are temporary just to make sure people upgrade to a
|
||||||
# version that lack runtime version checking. We'll drop them in
|
# version that lack runtime version checking. We'll drop them in
|
||||||
# the future.
|
# the future.
|
||||||
RDEPEND="gmp? ( dev-libs/gmp[static-libs(+)?,${MULTILIB_USEDEP}] )
|
RDEPEND="static-libs? ( ${LIB_DEPEND} )
|
||||||
zlib? ( sys-libs/zlib[static-libs(+)?,${MULTILIB_USEDEP}] )
|
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||||
kerberos? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
|
|
||||||
abi_x86_32? (
|
|
||||||
!<=app-emulation/emul-linux-x86-baselibs-20140406-r3
|
|
||||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
|
||||||
)
|
|
||||||
!<net-misc/openssh-5.9_p1-r4
|
!<net-misc/openssh-5.9_p1-r4
|
||||||
!<net-libs/neon-0.29.6-r1"
|
!<net-libs/neon-0.29.6-r1"
|
||||||
DEPEND="${RDEPEND}
|
DEPEND="${RDEPEND}
|
||||||
|
@ -45,10 +45,6 @@ src_unpack() {
|
||||||
> "${WORKDIR}"/c_rehash || die #416717
|
> "${WORKDIR}"/c_rehash || die #416717
|
||||||
}
|
}
|
||||||
|
|
||||||
MULTILIB_WRAPPED_HEADERS=(
|
|
||||||
usr/include/openssl/opensslconf.h
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
# Make sure we only ever touch Makefile.org and avoid patching a file
|
# Make sure we only ever touch Makefile.org and avoid patching a file
|
||||||
# that gets blown away anyways by the Configure script in src_configure
|
# that gets blown away anyways by the Configure script in src_configure
|
||||||
|
@ -92,11 +88,9 @@ src_prepare() {
|
||||||
# The config script does stupid stuff to prompt the user. Kill it.
|
# The config script does stupid stuff to prompt the user. Kill it.
|
||||||
sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
|
sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
|
||||||
./config --test-sanity || die "I AM NOT SANE"
|
./config --test-sanity || die "I AM NOT SANE"
|
||||||
|
|
||||||
multilib_copy_sources
|
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_configure() {
|
src_configure() {
|
||||||
unset APPS #197996
|
unset APPS #197996
|
||||||
unset SCRIPTS #312551
|
unset SCRIPTS #312551
|
||||||
unset CROSS_COMPILE #311473
|
unset CROSS_COMPILE #311473
|
||||||
|
@ -130,7 +124,6 @@ multilib_src_configure() {
|
||||||
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
||||||
local config="Configure"
|
local config="Configure"
|
||||||
[[ -z ${sslout} ]] && config="config"
|
[[ -z ${sslout} ]] && config="config"
|
||||||
|
|
||||||
echoit \
|
echoit \
|
||||||
./${config} \
|
./${config} \
|
||||||
${sslout} \
|
${sslout} \
|
||||||
|
@ -168,7 +161,7 @@ multilib_src_configure() {
|
||||||
Makefile || die
|
Makefile || die
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_compile() {
|
src_compile() {
|
||||||
# depend is needed to use $confopts; it also doesn't matter
|
# depend is needed to use $confopts; it also doesn't matter
|
||||||
# that it's -j1 as the code itself serializes subdirs
|
# that it's -j1 as the code itself serializes subdirs
|
||||||
emake -j1 depend
|
emake -j1 depend
|
||||||
|
@ -178,15 +171,12 @@ multilib_src_compile() {
|
||||||
emake rehash
|
emake rehash
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_test() {
|
src_test() {
|
||||||
emake -j1 test
|
emake -j1 test
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_install() {
|
src_install() {
|
||||||
emake INSTALL_PREFIX="${D}" install
|
emake INSTALL_PREFIX="${D}" install
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
dobin "${WORKDIR}"/c_rehash #333117
|
dobin "${WORKDIR}"/c_rehash #333117
|
||||||
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
|
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
|
||||||
dohtml -r doc/*
|
dohtml -r doc/*
|
Loading…
Reference in New Issue