diff options
author | Louis Sautier <sautier.louis@gmail.com> | 2016-05-05 14:09:33 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-05-05 12:58:11 +0000 |
commit | 9d26b343480939aca5e10434ce908e290a442572 (patch) | |
tree | a30ef9ed8a9f4bf2b29a0f1cf1e2011b593d0cde /dev-libs/unittest++/unittest++-1.6.1.ebuild | |
parent | sci-misc/boinc: Fix variable default statements in init scripts (diff) | |
download | gentoo-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++/unittest++-1.6.1.ebuild')
-rw-r--r-- | dev-libs/unittest++/unittest++-1.6.1.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
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 000000000000..88dc9395ffed --- /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" +} |