1 |
commit: 23720bf54537daaad630ed9358ecfa8b5e629e16 |
2 |
Author: Jan Henke <Jan.Henke <AT> taujhe <DOT> de> |
3 |
AuthorDate: Sun Oct 14 19:52:22 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 19 09:13:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23720bf5 |
7 |
|
8 |
dev-cpp/ms-gsl: Add live ebuild |
9 |
|
10 |
Signed-off-by: Jan Henke <Jan.Henke <AT> taujhe.de> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/10146 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-cpp/ms-gsl/ms-gsl-9999.ebuild | 35 +++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 35 insertions(+) |
17 |
|
18 |
diff --git a/dev-cpp/ms-gsl/ms-gsl-9999.ebuild b/dev-cpp/ms-gsl/ms-gsl-9999.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..d7c78908654 |
21 |
--- /dev/null |
22 |
+++ b/dev-cpp/ms-gsl/ms-gsl-9999.ebuild |
23 |
@@ -0,0 +1,35 @@ |
24 |
+# Copyright 1999-2018 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit cmake-utils git-r3 |
30 |
+ |
31 |
+DESCRIPTION="Guideline Support Library implementation by Microsoft" |
32 |
+HOMEPAGE="https://github.com/Microsoft/GSL" |
33 |
+SRC_URI="" |
34 |
+EGIT_REPO_URI="https://github.com/Microsoft/GSL.git" |
35 |
+ |
36 |
+S="${WORKDIR}/GSL-${PV}" |
37 |
+ |
38 |
+LICENSE="MIT" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="" |
41 |
+IUSE="test" |
42 |
+ |
43 |
+# header only library |
44 |
+RDEPEND="" |
45 |
+DEPEND="test? ( ~dev-cpp/catch-1.11.0 )" |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}/${PN}-1.0.0-use_system_catch-636828.patch" |
49 |
+ "${FILESDIR}/${PN}-1.0.0-disable_Werror-644042.patch" |
50 |
+) |
51 |
+ |
52 |
+src_configure() { |
53 |
+ local mycmakeargs=( |
54 |
+ -DGSL_TEST=$(usex test) |
55 |
+ ) |
56 |
+ use test && mycmakeargs+=( -DFORCE_SYSTEM_CATCH=ON ) |
57 |
+ cmake-utils_src_configure |
58 |
+} |