--- /usr/portage/net-libs/ldns/ldns-1.6.16.ebuild 2014-01-23 06:01:26.000000000 +0100 +++ net-libs/ldns/ldns-1.6.16.ebuild 2014-01-26 19:32:25.186062326 +0100 @@ -5,7 +5,7 @@ EAPI="4" PYTHON_DEPEND="python? 2:2.5" -inherit eutils python +inherit eutils python multilib-minimal DESCRIPTION="a library with the aim to simplify DNS programming in C" HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/" @@ -18,9 +18,9 @@ RESTRICT="test" # 1.6.9 has no test directory -RDEPEND="ssl? ( >=dev-libs/openssl-0.9.7 ) - ecdsa? ( >=dev-libs/openssl-1.0.1c[-bindist] ) - gost? ( >=dev-libs/openssl-1 )" +RDEPEND="ssl? ( >=dev-libs/openssl-0.9.7[${MULTILIB_USEDEP}] ) + ecdsa? ( >=dev-libs/openssl-1.0.1c[-bindist,${MULTILIB_USEDEP}] ) + gost? ( >=dev-libs/openssl-1[${MULTILIB_USEDEP}] )" DEPEND="${RDEPEND} python? ( dev-lang/swig ) doc? ( app-doc/doxygen )" @@ -33,31 +33,44 @@ use python && python_pkg_setup } -src_configure() { - econf \ +multilib_src_configure() { + myconf=( $(use_enable ecdsa) \ $(use_enable gost) \ $(use_enable ssl sha2) \ $(use_enable static-libs static) \ $(use_with ssl) \ - $(use_with python pyldns) \ - $(use_with python pyldnsx) \ --without-drill \ --without-examples \ --disable-rpath + ) + + if multilib_build_binaries; then + myconf+=( + $(use_with python pyldns) \ + $(use_with python pyldnsx) + ) + else + myconf+=( + --without-pyldns + --without-pyldnsx + ) + fi + + ECONF_SOURCE="${S}" \ + econf \ + ${myconf[@]} } -src_compile() { +multilib_src_compile() { default - if use doc ; then + if multilib_build_binaries && use doc ; then emake doxygen fi } -src_install() { - default - +multilib_src_install_all() { dodoc Changelog README* if use python ; then @@ -65,7 +78,7 @@ fi if ! use static-libs ; then - find "${ED}" -name "*.la" -type f -delete || die + prune_libtool_files --all fi if use doc ; then