media-libs/libfreehand: Add missing tests handling
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 9 Oct 2017 20:12:31 +0000 (22:12 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 9 Oct 2017 20:12:53 +0000 (22:12 +0200)
Reported-by: jorgicio <jpizarrocallejas@gmail.com>
Gentoo-bug: 633806
Package-Manager: Portage-2.3.11, Repoman-2.3.3

media-libs/libfreehand/libfreehand-0.1.2.ebuild
media-libs/libfreehand/libfreehand-9999.ebuild

index 3ce6e903de14b57ac124b39e48b35c40ae323091..c2a85de892e648ff27a4eeb539e24aefe2602598 100644 (file)
@@ -14,7 +14,7 @@ LICENSE="MPL-2.0"
 SLOT="0"
 [[ ${PV} == 9999 ]] || \
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="doc static-libs"
+IUSE="doc static-libs test"
 
 RDEPEND="
        dev-libs/librevenge
@@ -27,6 +27,7 @@ DEPEND="${RDEPEND}
        sys-devel/libtool
        virtual/pkgconfig
        doc? ( app-doc/doxygen )
+       test? ( dev-util/cppunit )
 "
 
 src_prepare() {
@@ -39,7 +40,8 @@ src_configure() {
        econf \
                --disable-werror \
                $(use_with doc docs) \
-               $(use_enable static-libs static)
+               $(use_enable static-libs static) \
+               $(use_enable test tests)
 }
 
 src_install() {
index 3ce6e903de14b57ac124b39e48b35c40ae323091..c2a85de892e648ff27a4eeb539e24aefe2602598 100644 (file)
@@ -14,7 +14,7 @@ LICENSE="MPL-2.0"
 SLOT="0"
 [[ ${PV} == 9999 ]] || \
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="doc static-libs"
+IUSE="doc static-libs test"
 
 RDEPEND="
        dev-libs/librevenge
@@ -27,6 +27,7 @@ DEPEND="${RDEPEND}
        sys-devel/libtool
        virtual/pkgconfig
        doc? ( app-doc/doxygen )
+       test? ( dev-util/cppunit )
 "
 
 src_prepare() {
@@ -39,7 +40,8 @@ src_configure() {
        econf \
                --disable-werror \
                $(use_with doc docs) \
-               $(use_enable static-libs static)
+               $(use_enable static-libs static) \
+               $(use_enable test tests)
 }
 
 src_install() {