--- harfbuzz-0.9.23.ebuild.orig 2013-12-23 01:31:22 +0900 +++ harfbuzz-0.9.23.ebuild 2013-12-31 04:58:45 +0900 @@ -7,7 +7,7 @@ EGIT_REPO_URI="git://anongit.freedesktop.org/harfbuzz" [[ ${PV} == 9999 ]] && inherit git-2 autotools -inherit eutils libtool autotools +inherit eutils libtool autotools multilib-minimal DESCRIPTION="An OpenType text shaping engine" HOMEPAGE="http://www.freedesktop.org/wiki/Software/HarfBuzz" @@ -22,12 +22,12 @@ REQUIRED_USE="introspection? ( glib )" RDEPEND=" - cairo? ( x11-libs/cairo:= ) - glib? ( dev-libs/glib:2 ) - graphite? ( media-gfx/graphite2:= ) - icu? ( dev-libs/icu:= ) + cairo? ( x11-libs/cairo ) + glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] ) + graphite? ( media-gfx/graphite2:=[${MULTILIB_USEDEP}] ) + icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) introspection? ( >=dev-libs/gobject-introspection-1.32 ) - truetype? ( media-libs/freetype:2= ) + truetype? ( media-libs/freetype:2=[${MULTILIB_USEDEP}] ) " DEPEND="${RDEPEND} dev-util/gtk-doc-am @@ -60,21 +60,25 @@ elibtoolize # for Solaris } -src_configure() { +multilib_src_configure() { + ECONF_SOURCE="${S}" \ econf \ --without-coretext \ --without-uniscribe \ $(use_enable static-libs static) \ - $(use_with cairo) \ + $(multilib_is_native_abi \ + && use_with cairo \ + || echo --without-cairo) \ $(use_with glib) \ $(use_with glib gobject) \ $(use_with graphite graphite2) \ $(use_with icu) \ - $(use_enable introspection) \ + $(multilib_is_native_abi \ + && use_enable introspection \ + || echo --disable-introspection) \ $(use_with truetype freetype) } -src_install() { - default +multilib_src_install_all() { prune_libtool_files --modules }