commit:     5888aff51b9e82fea2f5f0374b65f304a555aa89
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Sun Feb 12 19:36:28 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 13 04:45:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5888aff5

sci-libs/libecpint: change C++ standard to C++14 and bump EAPI

The latest gtest now requires being built with the C++14 dialect or
later.  Change all references of C++11 to C++14 in several affected
CMakeLists.txt files.

Closes: https://bugs.gentoo.org/894044
Closes: https://github.com/gentoo/gentoo/pull/29561
Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/libecpint/libecpint-1.0.6-r1.ebuild | 34 ++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/sci-libs/libecpint/libecpint-1.0.6-r1.ebuild 
b/sci-libs/libecpint/libecpint-1.0.6-r1.ebuild
new file mode 100644
index 000000000000..6f56bf9ddced
--- /dev/null
+++ b/sci-libs/libecpint/libecpint-1.0.6-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Efficient evaluation of integrals over ab initio effective core 
potentials"
+HOMEPAGE="https://github.com/robashaw/libecpint";
+SRC_URI="https://github.com/robashaw/libecpint/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-libs/pugixml"
+DEPEND="${RDEPEND}
+       test? ( dev-cpp/gtest )"
+
+src_prepare() {
+       cmake_src_prepare
+
+       find . -name CMakeLists.txt -exec \
+               sed -i -e 's/CXX_STANDARD 11/CXX_STANDARD 14/g' {} \; || die
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DLIBECPINT_BUILD_TESTS=$(usex test)
+       )
+       cmake_src_configure
+}

Reply via email to