summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2016-05-05 14:09:33 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-05-05 12:58:11 +0000
commit9d26b343480939aca5e10434ce908e290a442572 (patch)
treea30ef9ed8a9f4bf2b29a0f1cf1e2011b593d0cde /dev-libs/unittest++
parentsci-misc/boinc: Fix variable default statements in init scripts (diff)
downloadgentoo-9d26b343480939aca5e10434ce908e290a442572.tar.gz
gentoo-9d26b343480939aca5e10434ce908e290a442572.tar.bz2
gentoo-9d26b343480939aca5e10434ce908e290a442572.zip
dev-libs/unittest++: bump to 1.6.1
Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/1411 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-libs/unittest++')
-rw-r--r--dev-libs/unittest++/Manifest1
-rw-r--r--dev-libs/unittest++/metadata.xml1
-rw-r--r--dev-libs/unittest++/unittest++-1.6.1.ebuild34
3 files changed, 35 insertions, 1 deletions
diff --git a/dev-libs/unittest++/Manifest b/dev-libs/unittest++/Manifest
index eaf67a68006..6ca07a0642f 100644
--- a/dev-libs/unittest++/Manifest
+++ b/dev-libs/unittest++/Manifest
@@ -1 +1,2 @@
DIST unittest++-1.6.0.tar.gz 52227 SHA256 9fa7e797816e16669d68171418b0dc41ec6b7eaf8483f782441f5f159598c3c0 SHA512 499450b6cfa8ef8be5eff09ac238423fe5dc04b1c6065db02f46b903968e702fb45ccd9953aff81eef4a8aae80e91448afc0cbdf4a3f1f83b551f9d7dcd828f3 WHIRLPOOL 8043c8da08117f70fda142e92bcdfd0c2c8fd99d10380554a2f32fbe5a5c58fe1f3cf31bcc82bfcc6b1dda22dcc61ed11a87370f0f2c7874116dfe8c5a9410e7
+DIST unittest++-1.6.1.tar.gz 52536 SHA256 1cc9071be01db190f26868fefb6a7af49ee56a339fc3b08d1a1e9eeca5376c45 SHA512 2bb03def8b6ac84dbb6e5e440e5be8648199096fdc93d6666b704386e2c2279b329be6bda47c81bd8a8c485334059fb2a53fdd90358005a95b8add6f057c25ce WHIRLPOOL e6dfe890ce809fcbee4d82b379e14c66687d9b9fd28bd934941677f32b4974951cae498010370bef85191bc01fd047ce23ff4a14e5b03d4b9216ee131610852a
diff --git a/dev-libs/unittest++/metadata.xml b/dev-libs/unittest++/metadata.xml
index e96948472c0..9b67ccd1e45 100644
--- a/dev-libs/unittest++/metadata.xml
+++ b/dev-libs/unittest++/metadata.xml
@@ -4,7 +4,6 @@
<maintainer type="person">
<email>sautier.louis@gmail.com</email>
<name>Louis Sautier</name>
- <description>Proxied maintainer; set to assignee in all bugs</description>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
diff --git a/dev-libs/unittest++/unittest++-1.6.1.ebuild b/dev-libs/unittest++/unittest++-1.6.1.ebuild
new file mode 100644
index 00000000000..88dc9395ffe
--- /dev/null
+++ b/dev-libs/unittest++/unittest++-1.6.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_PN="unittest-cpp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A lightweight unit testing framework for C++"
+HOMEPAGE="https://unittest-cpp.github.io/"
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ sed -i '/run unit tests as post build step/,/Running unit tests/d' \
+ CMakeLists.txt || die
+ use test || sed -i \
+ '/build the test runner/,/target_link_libraries(TestUnitTest++ UnitTest++/d' \
+ CMakeLists.txt || die
+ cmake-utils_src_prepare
+}
+
+src_test() {
+ "${BUILD_DIR}/TestUnitTest++" || die "Tests failed"
+}