diff options
author | Gerhard Bräunlich <wippbox@gmx.net> | 2016-11-12 13:23:48 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-11-13 10:47:24 +0100 |
commit | 859d2ff2c4e6ad4a584f28d07aa82e6e7ab252bb (patch) | |
tree | 3241cde03cd23625971a2a68962572813ed5f4cd /sci-physics | |
parent | app-editors/nvi: fix compilation with sys-libs/db-6.0.35 (diff) | |
download | gentoo-859d2ff2c4e6ad4a584f28d07aa82e6e7ab252bb.tar.gz gentoo-859d2ff2c4e6ad4a584f28d07aa82e6e7ab252bb.tar.bz2 gentoo-859d2ff2c4e6ad4a584f28d07aa82e6e7ab252bb.zip |
sci-physics/reduze: Version bump to 2.1, EAPI bump 5 -> 6
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2815
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/reduze/Manifest | 1 | ||||
-rw-r--r-- | sci-physics/reduze/reduze-2.1.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/sci-physics/reduze/Manifest b/sci-physics/reduze/Manifest index 75027702ed4a..f7b7a2c3c546 100644 --- a/sci-physics/reduze/Manifest +++ b/sci-physics/reduze/Manifest @@ -1 +1,2 @@ DIST reduze-2.0.9.tar.gz 568570 SHA256 e56494519faffa381f16c8c9b439e9c17485392d47b836ef372d3c4ff451e67a SHA512 69818d7edaf3c69996d3f703401865f67722ec8d33b285642c71030f2852273b4b4028a00f0c639589cb801def739f93a05d504d4fb2edf228674962897d5f01 WHIRLPOOL 1aa84d755668badf01c077b3e9c63cf1c68c5f37f438875c3f3de11804013e551a92f98c7aacd5b8ea155e1540023d4273f1ceb98ea4e7551de9fe7613b18021 +DIST reduze-2.1.tar.gz 650423 SHA256 757556ba0b05b7b4c14091ce4a54f79259b530ed22180417b41f9ae443378ea7 SHA512 e27f711639fe4b95c2aef4e73a7f6d9dd1574d1a62bc531d0f5177c505ffd353193548f29332f3b5320d4907bebd404ef082d3fea1dd392b83573d085b4a795a WHIRLPOOL 5964aa240132b2e002039486977ad17c27c5a027a0d7339cae1d9979e394b5a236cf3894eef774bee5d79de272eea1aced1988dd53a986035b3ae1dfbb6393b5 diff --git a/sci-physics/reduze/reduze-2.1.ebuild b/sci-physics/reduze/reduze-2.1.ebuild new file mode 100644 index 000000000000..1a4afbc66b71 --- /dev/null +++ b/sci-physics/reduze/reduze-2.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Program for reducing Feynman integrals" +HOMEPAGE="http://reduze.hepforge.org/" +SRC_URI="http://reduze.hepforge.org/download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" + +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="berkdb doc mpi" + +RDEPEND=">=sci-mathematics/ginac-1.4.1 + berkdb? ( sys-libs/db:=[cxx] ) + mpi? ( virtual/mpi )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + cmake-utils_src_prepare + # gentoo doc directory + sed -i \ + -e "s:share/reduze:share/doc/${PF}:g" \ + CMakeLists.txt || die + if ! use doc ; then + sed -i -e '/share/d' CMakeLists.txt || die + fi + # prefix fix + sed -i \ + -e "s:/usr:${EPREFIX}/usr:g" \ + reduze/CMakeLists.txt || die + + # remove bundled yaml-cpp + # no: it does not build. is it patched? + # sed -i -e '/add_subdirectory ("yaml")/d' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_HASH_TABLE=ON + -DUSE_DATABASE=$(usex berkdb) + -DUSE_MPI=$(usex mpi) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile all $(usev doc) +} + +src_test() { + cmake-utils_src_compile check + use mpi && cmake-utils_src_compile check_mpi +} + +src_install() { + use doc && HTML_DOCS+=( "${BUILD_DIR}"/doc/code/html/. ) + cmake-utils_src_install +} |