From: "Louis Sautier" <sbraz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/unittest++/
Date: Sat, 15 Aug 2020 17:46:01 +0000 (UTC) [thread overview]
Message-ID: <1597513536.3e7f1e4540edf3b33ec741fd2c2c03547b7de535.sbraz@gentoo> (raw)
commit: 3e7f1e4540edf3b33ec741fd2c2c03547b7de535
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 15 17:39:53 2020 +0000
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Sat Aug 15 17:45:36 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e7f1e45
dev-libs/unittest++: bump to EAPI=7, migrate to cmake.eclass
Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
dev-libs/unittest++/unittest++-2.0.0-r1.ebuild | 42 ++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/dev-libs/unittest++/unittest++-2.0.0-r1.ebuild b/dev-libs/unittest++/unittest++-2.0.0-r1.ebuild
new file mode 100644
index 00000000000..0da36ef58d5
--- /dev/null
+++ b/dev-libs/unittest++/unittest++-2.0.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+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"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# https://github.com/unittest-cpp/unittest-cpp/commit/2423fcac7668aa9c331a2dcf024c3ca06742942d
+PATCHES=( "${FILESDIR}/${P}-fix-tests-with-clang.patch" )
+
+src_prepare() {
+ cmake_src_prepare
+
+ # https://github.com/unittest-cpp/unittest-cpp/pull/163
+ sed -i '/run unit tests as post build step/,/Running unit tests/d' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DUTPP_INCLUDE_TESTS_IN_BUILD=$(usex test)
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ "${BUILD_DIR}/TestUnitTest++" || die "Tests failed"
+}
next reply other threads:[~2020-08-15 17:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-15 17:46 Louis Sautier [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-19 5:08 [gentoo-commits] repo/gentoo:master commit in: dev-libs/unittest++/ WANG Xuerui
2022-04-26 4:03 Sam James
2021-03-12 23:35 Andreas Sturmlechner
2021-03-11 13:30 Sam James
2021-03-11 2:35 Sam James
2021-03-10 3:06 Sam James
2021-03-10 3:06 Sam James
2021-03-10 3:06 Sam James
2021-03-10 3:05 Sam James
2021-03-10 3:04 Sam James
2021-02-11 7:37 Sergei Trofimovich
2021-02-11 7:36 Sergei Trofimovich
2021-02-09 21:41 Sam James
2021-02-06 1:07 Andreas K. Hüttel
2021-02-05 2:06 Sam James
2021-01-27 17:45 Sergei Trofimovich
2021-01-25 14:18 Sam James
2021-01-25 14:16 Sam James
2020-10-10 14:46 Louis Sautier
2020-08-15 17:46 Louis Sautier
2018-02-06 15:10 Thomas Deutschmann
2017-09-16 10:13 David Seifert
2017-09-16 10:13 David Seifert
2017-09-16 10:13 David Seifert
2016-05-05 13:13 Patrice Clement
2016-03-15 16:47 Michael Palimaka
2016-03-08 13:39 Ian Delaney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1597513536.3e7f1e4540edf3b33ec741fd2c2c03547b7de535.sbraz@gentoo \
--to=sbraz@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox