1 |
commit: 05d4203bd3dd733cf76364fdb013a6b9eeef8b6b |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 4 09:11:10 2018 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 4 09:11:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05d4203b |
7 |
|
8 |
dev-cpp/gtest: merge live git ebuild w/releases & fix building w/latest git |
9 |
|
10 |
dev-cpp/gtest/gtest-9999.ebuild | 19 +++++++++++++------ |
11 |
1 file changed, 13 insertions(+), 6 deletions(-) |
12 |
|
13 |
diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild |
14 |
index 47a3ca79f6e..a4ab55ca6f1 100644 |
15 |
--- a/dev-cpp/gtest/gtest-9999.ebuild |
16 |
+++ b/dev-cpp/gtest/gtest-9999.ebuild |
17 |
@@ -1,16 +1,24 @@ |
18 |
-# Copyright 1999-2017 Gentoo Foundation |
19 |
+# Copyright 1999-2018 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
-EAPI=6 |
23 |
+EAPI="6" |
24 |
|
25 |
# Python is required for tests and some build tasks. |
26 |
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
27 |
|
28 |
-inherit git-r3 python-any-r1 cmake-multilib |
29 |
+inherit python-any-r1 cmake-multilib |
30 |
+ |
31 |
+if [[ ${PV} == "9999" ]]; then |
32 |
+ inherit git-r3 |
33 |
+ EGIT_REPO_URI="https://github.com/google/googletest" |
34 |
+else |
35 |
+ SRC_URI="https://github.com/google/googletest/archive/release-${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
37 |
+ S="${WORKDIR}"/googletest-release-${PV} |
38 |
+fi |
39 |
|
40 |
DESCRIPTION="Google C++ Testing Framework" |
41 |
HOMEPAGE="https://github.com/google/googletest" |
42 |
-EGIT_REPO_URI="https://github.com/google/googletest.git" |
43 |
|
44 |
LICENSE="BSD" |
45 |
SLOT="0" |
46 |
@@ -20,8 +28,7 @@ DEPEND="test? ( ${PYTHON_DEPS} )" |
47 |
RDEPEND="!dev-cpp/gmock" |
48 |
|
49 |
PATCHES=( |
50 |
- "${FILESDIR}"/${P}-fix-py-tests.patch |
51 |
- "${FILESDIR}"/${P}-fix-gcc6-undefined-behavior.patch |
52 |
+ "${FILESDIR}"/${PN}-9999-fix-gcc6-undefined-behavior.patch |
53 |
) |
54 |
|
55 |
pkg_setup() { |