--- /usr/portage/dev-libs/openssl/openssl-1.0.1g.ebuild 2014-04-29 21:31:11.000000000 +0200 +++ openssl-1.0.1g.ebuild 2014-05-04 12:15:46.000000000 +0200 @@ -4,7 +4,7 @@ EAPI="4" -inherit eutils flag-o-matic toolchain-funcs multilib +inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal REV="1.7" DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)" @@ -17,16 +17,16 @@ 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" -# 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 # version that lack runtime version checking. We'll drop them in # the future. -RDEPEND="static-libs? ( ${LIB_DEPEND} ) - !static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} ) +RDEPEND="gmp? ( dev-libs/gmp[static-libs?,${MULTILIB_USEDEP}] ) + zlib? ( sys-libs/zlib[static-libs?,${MULTILIB_USEDEP}] ) + kerberos? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r5 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + ) ! "${WORKDIR}"/c_rehash || die #416717 -} -src_prepare() { # 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 rm -f Makefile @@ -89,9 +98,10 @@ # 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 ./config --test-sanity || die "I AM NOT SANE" + multilib_copy_sources } -src_configure() { +multilib_src_configure() { unset APPS #197996 unset SCRIPTS #312551 unset CROSS_COMPILE #311473 @@ -125,6 +135,7 @@ einfo "Use configuration ${sslout:-(openssl knows best)}" local config="Configure" [[ -z ${sslout} ]] && config="config" + echoit \ ./${config} \ ${sslout} \ @@ -162,7 +173,7 @@ Makefile || die } -src_compile() { +multilib_src_compile() { # depend is needed to use $confopts; it also doesn't matter # that it's -j1 as the code itself serializes subdirs emake -j1 depend @@ -172,12 +183,15 @@ emake rehash } -src_test() { +multilib_src_test() { emake -j1 test } -src_install() { +multilib_src_install() { emake INSTALL_PREFIX="${D}" install +} + +multilib_src_install_all() { dobin "${WORKDIR}"/c_rehash #333117 dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el dohtml -r doc/*