summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Henke <Jan.Henke@taujhe.de>2018-09-29 19:08:58 +0200
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2018-10-11 18:30:33 -0700
commit336d88ac3348e5c617beae2776db5f001133b502 (patch)
tree19b05c37d6a9afaca5cca323517984bd56677391 /dev-cpp
parentdev-python/elasticsearch-curator: drop old (diff)
downloadgentoo-336d88ac3348e5c617beae2776db5f001133b502.tar.gz
gentoo-336d88ac3348e5c617beae2776db5f001133b502.tar.bz2
gentoo-336d88ac3348e5c617beae2776db5f001133b502.zip
dev-cpp/ms-gsl: Version bump to 2.0.0
Closes: https://bugs.gentoo.org/666410 Closes: https://github.com/gentoo/gentoo/pull/10013 Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Jan Henke <Jan.Henke@taujhe.de> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/ms-gsl/Manifest1
-rw-r--r--dev-cpp/ms-gsl/ms-gsl-2.0.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-cpp/ms-gsl/Manifest b/dev-cpp/ms-gsl/Manifest
index 605a6a2172e3..d1b036879f31 100644
--- a/dev-cpp/ms-gsl/Manifest
+++ b/dev-cpp/ms-gsl/Manifest
@@ -1 +1,2 @@
DIST ms-gsl-1.0.0.tar.gz 58920 BLAKE2B 46b71ec1fe57ec311a53895498c375c2313ed1f2858cd6b67d19d92ef10230707ce14fb757c00c92ea3475d787cda400cc449c34d54a54a3d0123f71b87b11ad SHA512 cde55df9540fd08ca8d29a74b2cff360686aa75b01ee1c48bd9782a2d70d1b6eae712a51eaf9b60453f859e466df00345b0a2893137d16490cea8ee54362f7da
+DIST ms-gsl-2.0.0.tar.gz 64726 BLAKE2B ab40725aa38af7c5651e22ebf32d4bd9c27a10be2e206fd4c3c0173ad21da262beddef022b7b158653b185cfc3269f2b6e80d99fe65f601ffc3e770b143b03f8 SHA512 7339527222c8a97a94c0bb4038b3d142045ec5d80995e628574ac96f4d9d13c41ad70fbe0d8390586dc0db8d9ea55107dbc95de80f7335eb78ef9d2e7047d726
diff --git a/dev-cpp/ms-gsl/ms-gsl-2.0.0.ebuild b/dev-cpp/ms-gsl/ms-gsl-2.0.0.ebuild
new file mode 100644
index 000000000000..c3af23471bc5
--- /dev/null
+++ b/dev-cpp/ms-gsl/ms-gsl-2.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Guideline Support Library implementation by Microsoft"
+HOMEPAGE="https://github.com/Microsoft/GSL"
+SRC_URI="https://github.com/Microsoft/GSL/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+S="${WORKDIR}/GSL-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# header only library
+RDEPEND=""
+DEPEND="test? ( ~dev-cpp/catch-1.11.0 )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.0-use_system_catch-636828.patch"
+ "${FILESDIR}/${PN}-1.0.0-disable_Werror-644042.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DGSL_TEST=$(usex test)
+ )
+ use test && mycmakeargs+=( -DFORCE_SYSTEM_CATCH=ON )
+ cmake-utils_src_configure
+}