commit:     b88c4ffa968778080a39fe0bd5aae12779116a45
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  9 20:12:31 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Oct  9 20:12:53 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b88c4ffa

media-libs/libfreehand: Add missing tests handling

Reported-by: jorgicio <jpizarrocallejas <AT> gmail.com>
Gentoo-bug: 633806
Package-Manager: Portage-2.3.11, Repoman-2.3.3

 media-libs/libfreehand/libfreehand-0.1.2.ebuild | 6 ++++--
 media-libs/libfreehand/libfreehand-9999.ebuild  | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/media-libs/libfreehand/libfreehand-0.1.2.ebuild 
b/media-libs/libfreehand/libfreehand-0.1.2.ebuild
index 3ce6e903de1..c2a85de892e 100644
--- a/media-libs/libfreehand/libfreehand-0.1.2.ebuild
+++ b/media-libs/libfreehand/libfreehand-0.1.2.ebuild
@@ -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() {

diff --git a/media-libs/libfreehand/libfreehand-9999.ebuild 
b/media-libs/libfreehand/libfreehand-9999.ebuild
index 3ce6e903de1..c2a85de892e 100644
--- a/media-libs/libfreehand/libfreehand-9999.ebuild
+++ b/media-libs/libfreehand/libfreehand-9999.ebuild
@@ -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() {

Reply via email to