[gnome-commander] Added cppunit in configure.ac and in the ebuild



commit 9ee981cf89e2a211c2d618239282c4aa766bd547
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sun Jun 22 18:31:07 2014 +0200

    Added cppunit in configure.ac and in the ebuild

 configure.ac                   |   10 ++++++++++
 data/gnome-commander.ebuild.in |    5 +++--
 2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6aaf61b..942afa9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,7 @@ EXIV2_REQ=0.14
 TAGLIB_REQ=1.4
 LIBGSF_REQ=1.12.0
 POPPLER_REQ=0.18
+CPPUNIT_REQ=1.13.1
 
 AC_SUBST(GLIB_REQ)
 AC_SUBST(GTK_REQ)
@@ -290,6 +291,15 @@ if test "x$have_pdf" = "xyes"; then
 fi
 
 
+dnl =====================
+dnl Check for check
+dnl =====================
+
+PKG_CHECK_MODULES(CPPUNIT, [cppunit >= $CPPUNIT_REQ],,[AC_MSG_RESULT([no, testing is disabled])]) 
+AM_CONDITIONAL(HAVE_CPPUNIT, [test "x$CHECK_LIBS" != "x"])
+AC_SUBST(CHECK_CFLAGS)
+AC_SUBST(CHECK_LIBS)
+
 dnl =============================
 dnl Checks for library functions
 dnl =============================
diff --git a/data/gnome-commander.ebuild.in b/data/gnome-commander.ebuild.in
index 4dcfbbf..60f27eb 100644
--- a/data/gnome-commander.ebuild.in
+++ b/data/gnome-commander.ebuild.in
@@ -14,7 +14,7 @@ HOMEPAGE="http://gcmd.github.io/";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="chm doc exif gsf pdf python taglib samba"
+IUSE="chm doc exif gsf pdf python taglib samba test"
 
 RDEPEND="app-text/gnome-doc-utils
        >=dev-libs/glib- GLIB_REQ@:2
@@ -35,7 +35,8 @@ RDEPEND="app-text/gnome-doc-utils
 DEPEND="${RDEPEND}
        >=dev-util/intltool-0.35.0
        sys-devel/gettext
-       virtual/pkgconfig"
+       virtual/pkgconfig
+       test? ( dev-util/cppunit- CPPUNIT_REQ@ )"
 
 DOCS="AUTHORS BUGS ChangeLog NEWS README TODO"
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]