app-text/podofo: add tools USE flag (bug 608876)
authorZac Medico <zmedico@gentoo.org>
Sun, 21 May 2017 22:35:52 +0000 (15:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 21 May 2017 22:57:59 +0000 (15:57 -0700)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

app-text/podofo/metadata.xml
app-text/podofo/podofo-0.9.6_pre20170508-r1.ebuild

index 11df5f9c71c5d8e70ec61deb1e7db872aad123ce..9faec0a121a780d1ec8f129fca5bb44340c72bcb 100644 (file)
@@ -6,6 +6,9 @@
        </maintainer>
        <use>
                <flag name="boost">Add support for boost</flag>
+               <flag name="tools">
+                       Build and install commandline tools.
+               </flag>
        </use>
        <upstream>
                <remote-id type="sourceforge">podofo</remote-id>
index 01c9050365794357e878022749c11338920f5078..9ac790385034e07f335946d84908aacc4376741e 100644 (file)
@@ -11,7 +11,8 @@ SRC_URI="mirror://gentoo/${P}.tar.xz"
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0/${PVR}"
 KEYWORDS="amd64 ~arm hppa ppc ppc64 ~sparc x86"
-IUSE="+boost idn libressl debug test"
+IUSE="+boost idn libressl debug test +tools"
+REQUIRED_USE="test? ( tools )"
 
 RDEPEND="dev-lang/lua:=
        idn? ( net-dns/libidn:= )
@@ -125,7 +126,8 @@ src_configure() {
                "-DUSE_STLPORT=0"
                -DWANT_BOOST=$(usex boost ON OFF)
                -DHAVE_LIBIDN=$(usex idn ON OFF)
-               -DHAVE_CPPUNIT=$(usex test ON OFF)
+               -DPODOFO_HAVE_CPPUNIT=$(usex test ON OFF)
+               -DPODOFO_BUILD_LIB_ONLY=$(usex tools OFF ON)
                )
 
        cmake-utils_src_configure