diff --git a/sci-libs/OpDiLib/Manifest b/sci-libs/OpDiLib/Manifest new file mode 100644 index 0000000000..ff3b1bf126 --- /dev/null +++ b/sci-libs/OpDiLib/Manifest @@ -0,0 +1 @@ +DIST OpDiLib-1.2.1.tar.gz 66659 BLAKE2B d34182436d4a70ef18d2e65ffe3f0bc1c3cd86fcf2bf1b3a873421ae76faaaded723395083e14620e30edf6503b0a831878851a20ae981f4dbe2520e17443728 SHA512 8c74a6e9c1364556588e6dd6ca466753820eddc588a0d3fb330943079aee1d5db230942bc00a3f94a022f1a60b3b5a76be880d31517d2ade0b274538324f6c5b diff --git a/sci-libs/OpDiLib/OpDiLib-1.2.1.ebuild b/sci-libs/OpDiLib/OpDiLib-1.2.1.ebuild new file mode 100644 index 0000000000..5fc1bc3503 --- /dev/null +++ b/sci-libs/OpDiLib/OpDiLib-1.2.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION='Open Multiprocessing Differentiation Library' +HOMEPAGE=" + https://github.com/SciCompKL/OpDiLib + https://www.scicomp.uni-kl.de/software/opdi/ +" +SRC_URI="https://github.com/SciCompKL/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64" +LICENSE='GPL-3' +IUSE="examples" +SLOT="0" + +DEPEND="examples? ( sci-libs/CoDiPack )" +RDEPEND="${DEPEND}" + +src_compile() { + if use examples; then + tc-export CXX + "${CXX}" -I/usr/include/codi -I./include --std=c++11 -fopenmp -o macroexample macroexample.cpp || die + "${CXX}" -I/usr/include/codi -I./include --std=c++11 -fopenmp -o omptexample omptexample.cpp || die + fi + return +} + +src_install() { + dodoc README.md + doheader -r include/* + insinto "/usr/share/${PN}" + doins -r syntax + exeinto "/usr/libexec/${PN}/examples" + use examples && doexe {macro,ompt}example +} diff --git a/sci-libs/OpDiLib/metadata.xml b/sci-libs/OpDiLib/metadata.xml new file mode 100644 index 0000000000..b7bbd70c33 --- /dev/null +++ b/sci-libs/OpDiLib/metadata.xml @@ -0,0 +1,12 @@ + + + + + Alessandro Barbieri + lssndrbarbieri@gmail.com + + + https://github.com/SciCompKL/OpDiLib/issues + SciCompKL/OpDiLib + +