mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
sci-libs/OpDiLib: new package, add 1.2.1
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
sci-libs/OpDiLib/Manifest
Normal file
1
sci-libs/OpDiLib/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST OpDiLib-1.2.1.tar.gz 66659 BLAKE2B d34182436d4a70ef18d2e65ffe3f0bc1c3cd86fcf2bf1b3a873421ae76faaaded723395083e14620e30edf6503b0a831878851a20ae981f4dbe2520e17443728 SHA512 8c74a6e9c1364556588e6dd6ca466753820eddc588a0d3fb330943079aee1d5db230942bc00a3f94a022f1a60b3b5a76be880d31517d2ade0b274538324f6c5b
|
||||
39
sci-libs/OpDiLib/OpDiLib-1.2.1.ebuild
Normal file
39
sci-libs/OpDiLib/OpDiLib-1.2.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
12
sci-libs/OpDiLib/metadata.xml
Normal file
12
sci-libs/OpDiLib/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Alessandro Barbieri</name>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/SciCompKL/OpDiLib/issues</bugs-to>
|
||||
<remote-id type="github">SciCompKL/OpDiLib</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user