--- libpcap-1.6.2.ebuild +++ libpcap-1.6.2-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-1.6.2.ebuild,v 1.2 2014/09/16 21:58:48 jer Exp $ +# $Header: $ EAPI=5 -inherit autotools eutils +inherit autotools eutils multilib-minimal DESCRIPTION="A system-independent library for user-level network packet capture" HOMEPAGE="http://www.tcpdump.org/" @@ -16,15 +16,15 @@ IUSE="bluetooth dbus ipv6 netlink static-libs canusb" RDEPEND=" - bluetooth? ( net-wireless/bluez:= ) - dbus? ( sys-apps/dbus ) - netlink? ( dev-libs/libnl:3 ) - canusb? ( virtual/libusb ) + bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] ) + dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) + netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] ) + canusb? ( virtual/libusb:1[${MULTILIB_USEDEP}] ) " DEPEND="${RDEPEND} sys-devel/flex - virtual/pkgconfig virtual/yacc + dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] ) " DOCS=( CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel} ) @@ -40,7 +40,8 @@ eautoreconf } -src_configure() { +multilib_src_configure() { + ECONF_SOURCE="${S}" \ econf \ $(use_enable bluetooth) \ $(use_enable ipv6) \ @@ -49,13 +50,11 @@ $(use_with netlink libnl) } -src_compile() { +multilib_src_compile() { emake all shared } -src_install() { - default - +multilib_src_install_all() { # remove static libraries (--disable-static does not work) if ! use static-libs; then find "${ED}" -name '*.a' -exec rm {} + || die