media-libs/libcdr: Make test build optional, add dep on cppunit, #574932
authorMichał Górny <mgorny@gentoo.org>
Thu, 18 Feb 2016 19:20:21 +0000 (20:20 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 18 Feb 2016 19:21:28 +0000 (20:21 +0100)
media-libs/libcdr/libcdr-0.1.2.ebuild
media-libs/libcdr/libcdr-9999.ebuild

index dd033dac8721e19c4fb32f619ac5fe0ff07d756d..b0fd8db6ef5a3a643e7099fa5038aa0026a3124b 100644 (file)
@@ -16,7 +16,7 @@ LICENSE="MPL-2.0"
 SLOT="0"
 [[ ${PV} == 9999 ]] || \
 KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
-IUSE="doc static-libs"
+IUSE="doc static-libs test"
 
 RDEPEND="
        dev-libs/icu:=
@@ -29,6 +29,7 @@ DEPEND="${RDEPEND}
        sys-devel/libtool
        virtual/pkgconfig
        doc? ( app-doc/doxygen )
+       test? ( dev-util/cppunit )
 "
 
 src_prepare() {
@@ -42,7 +43,8 @@ src_configure() {
                --docdir="${EPREFIX}/usr/share/doc/${PF}" \
                $(use_enable static-libs static) \
                --disable-werror \
-               $(use_with doc docs)
+               $(use_with doc docs) \
+               $(use_enable test tests)
 }
 
 src_install() {
index dd033dac8721e19c4fb32f619ac5fe0ff07d756d..b0fd8db6ef5a3a643e7099fa5038aa0026a3124b 100644 (file)
@@ -16,7 +16,7 @@ LICENSE="MPL-2.0"
 SLOT="0"
 [[ ${PV} == 9999 ]] || \
 KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
-IUSE="doc static-libs"
+IUSE="doc static-libs test"
 
 RDEPEND="
        dev-libs/icu:=
@@ -29,6 +29,7 @@ DEPEND="${RDEPEND}
        sys-devel/libtool
        virtual/pkgconfig
        doc? ( app-doc/doxygen )
+       test? ( dev-util/cppunit )
 "
 
 src_prepare() {
@@ -42,7 +43,8 @@ src_configure() {
                --docdir="${EPREFIX}/usr/share/doc/${PF}" \
                $(use_enable static-libs static) \
                --disable-werror \
-               $(use_with doc docs)
+               $(use_with doc docs) \
+               $(use_enable test tests)
 }
 
 src_install() {