commit: 95a50df2dfe1f5009bd0f653e813439d3a4af6f2 Author: Jan Henke <Jan.Henke <AT> taujhe <DOT> de> AuthorDate: Sat Nov 2 09:50:51 2024 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sat Nov 2 09:50:51 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a50df2
dev-cpp/ms-gsl: add 4.1.0 Closes: https://github.com/gentoo/gentoo/pull/39128 Signed-off-by: Jan Henke <Jan.Henke <AT> taujhe.de> Signed-off-by: David Seifert <soap <AT> gentoo.org> dev-cpp/ms-gsl/Manifest | 1 + dev-cpp/ms-gsl/ms-gsl-4.1.0.ebuild | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/dev-cpp/ms-gsl/Manifest b/dev-cpp/ms-gsl/Manifest index cff79bbcb244..81a5f6b9b545 100644 --- a/dev-cpp/ms-gsl/Manifest +++ b/dev-cpp/ms-gsl/Manifest @@ -1 +1,2 @@ DIST ms-gsl-4.0.0.tar.gz 55846 BLAKE2B 4391f8865f8dc044e5a48826e84919df8e32fc80815a260e9c892aa6d155d278a9b7742c17e4455bcba3fc3164118c14ef160353913814ba48a83bc7de40c123 SHA512 7fa7446796c6bf82fb3bff09f86a69c446a27be528bef3b17c8bc5ad2f24d5cf86bdb3d3813ecb44726e8f395020180e97e41027330d1fbf545cc0f0b44aac29 +DIST ms-gsl-4.1.0.tar.gz 57901 BLAKE2B 337725333c0fba4bcbc5f70e997f3c78af916a93761cf7f90e90722884963a4caa9871fcfa94f7edae95a248d75b6e51339f1b8bb428cb6a95c8ee1489163336 SHA512 1db14bebab5f2bc0752214f9bf1b84a056b7d83b4a9d296663c43103387baee60373447f62c4e9bc0b8df06a7ce0571a4e2b4a31441c866894eee3ae258fdfc8 diff --git a/dev-cpp/ms-gsl/ms-gsl-4.1.0.ebuild b/dev-cpp/ms-gsl/ms-gsl-4.1.0.ebuild new file mode 100644 index 000000000000..f0bd28aa7742 --- /dev/null +++ b/dev-cpp/ms-gsl/ms-gsl-4.1.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +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 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +# header only library +DEPEND="test? ( dev-cpp/gtest )" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.0-disable_Werror-644042.patch" +) + +src_configure() { + local mycmakeargs=( + -DGSL_TEST=$(usex test) + ) + cmake_src_configure +}