media-libs/libtiger: Enable multilib build
authorMichał Górny <mgorny@gentoo.org>
Wed, 9 Aug 2017 05:19:37 +0000 (07:19 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 11 Aug 2017 13:20:37 +0000 (15:20 +0200)
media-libs/libtiger/libtiger-0.3.4-r1.ebuild

index 27909edac9ef6ec96e52550fc8f273bf662f0afe..1d18c7f4373fd8c5f7a9e69c4807afe433ad98ca 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit libtool
+inherit libtool multilib-minimal
 
 DESCRIPTION="A rendering library for Kate streams using Pango and Cairo"
 HOMEPAGE="https://code.google.com/p/libtiger/"
@@ -13,11 +13,11 @@ SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
 IUSE="doc"
 
-RDEPEND="x11-libs/pango
-       >=media-libs/libkate-0.2.0
-       x11-libs/cairo"
+RDEPEND="x11-libs/pango[${MULTILIB_USEDEP}]
+       >=media-libs/libkate-0.2.0[${MULTILIB_USEDEP}]
+       x11-libs/cairo[${MULTILIB_USEDEP}]"
 DEPEND="${RDEPEND}
-       virtual/pkgconfig
+       virtual/pkgconfig[${MULTILIB_USEDEP}]
        doc? ( app-doc/doxygen )"
 
 src_prepare() {
@@ -25,11 +25,12 @@ src_prepare() {
        elibtoolize
 }
 
-src_configure() {
+multilib_src_configure() {
+       local ECONF_SOURCE=${S}
        econf $(use_enable doc)
 }
 
-src_install() {
-       default
+multilib_src_install_all() {
+       einstalldocs
        find "${ED}" -name '*.la' -delete || die
 }