commit:     2e7b347eb8060275d19b5c707cb8647580596ab1
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun May 21 22:35:52 2017 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun May 21 22:57:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e7b347e

app-text/podofo: add tools USE flag (bug 608876)

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 app-text/podofo/metadata.xml                       | 3 +++
 app-text/podofo/podofo-0.9.6_pre20170508-r1.ebuild | 6 ++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/app-text/podofo/metadata.xml b/app-text/podofo/metadata.xml
index 11df5f9c71c..9faec0a121a 100644
--- a/app-text/podofo/metadata.xml
+++ b/app-text/podofo/metadata.xml
@@ -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>

diff --git a/app-text/podofo/podofo-0.9.6_pre20170508-r1.ebuild 
b/app-text/podofo/podofo-0.9.6_pre20170508-r1.ebuild
index 01c90503657..9ac79038503 100644
--- a/app-text/podofo/podofo-0.9.6_pre20170508-r1.ebuild
+++ b/app-text/podofo/podofo-0.9.6_pre20170508-r1.ebuild
@@ -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

Reply via email to