1 |
commit: be1246e0efab3fc9527ee6b6dde9e8df74cf72d3 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 29 16:22:01 2018 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 29 18:41:24 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be1246e0 |
7 |
|
8 |
dev-cpp/catch: Sync catch-1.9999 live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/catch/catch-1.9999.ebuild | 26 +++++++++++++++++++------- |
14 |
1 file changed, 19 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/dev-cpp/catch/catch-1.9999.ebuild b/dev-cpp/catch/catch-1.9999.ebuild |
17 |
index a770fcddab5..f67c3c4193b 100644 |
18 |
--- a/dev-cpp/catch/catch-1.9999.ebuild |
19 |
+++ b/dev-cpp/catch/catch-1.9999.ebuild |
20 |
@@ -1,20 +1,32 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Copyright 1999-2018 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=6 |
26 |
|
27 |
-EGIT_REPO_URI="https://github.com/catchorg/Catch2.git" |
28 |
-EGIT_BRANCH="Catch1.x" |
29 |
-inherit cmake-utils git-r3 |
30 |
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
31 |
+inherit cmake-utils |
32 |
+ |
33 |
+if [[ ${PV} == *9999 ]]; then |
34 |
+ inherit git-r3 |
35 |
+ EGIT_REPO_URI="https://github.com/catchorg/Catch2.git" |
36 |
+ EGIT_BRANCH="Catch1.x" |
37 |
+else |
38 |
+ MY_P=${PN^}-${PV} |
39 |
+ SRC_URI="https://github.com/catchorg/Catch2/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
40 |
+ KEYWORDS="~amd64 ~x86" |
41 |
+ |
42 |
+ S="${WORKDIR}/${PN^}2-${PV}" |
43 |
+fi |
44 |
|
45 |
DESCRIPTION="Modern C++ header-only framework for unit-tests" |
46 |
HOMEPAGE="https://github.com/catchorg/Catch2" |
47 |
-SRC_URI="" |
48 |
|
49 |
LICENSE="Boost-1.0" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="" |
52 |
+SLOT="1" |
53 |
IUSE="test" |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+RDEPEND="!<dev-cpp/catch-1.12.2:0" |
57 |
|
58 |
src_configure() { |
59 |
local mycmakeargs=( |