diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-physics/reduze |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-physics/reduze')
-rw-r--r-- | sci-physics/reduze/Manifest | 9 | ||||
-rw-r--r-- | sci-physics/reduze/files/reduze-2.0.9-gcc6.patch | 58 | ||||
-rw-r--r-- | sci-physics/reduze/files/reduze-2.1-gcc6.patch | 29 | ||||
-rw-r--r-- | sci-physics/reduze/metadata.xml | 15 | ||||
-rw-r--r-- | sci-physics/reduze/reduze-2.0.9.ebuild | 67 | ||||
-rw-r--r-- | sci-physics/reduze/reduze-2.1.ebuild | 67 |
6 files changed, 245 insertions, 0 deletions
diff --git a/sci-physics/reduze/Manifest b/sci-physics/reduze/Manifest new file mode 100644 index 000000000000..07a1e14d1111 --- /dev/null +++ b/sci-physics/reduze/Manifest @@ -0,0 +1,9 @@ +AUX reduze-2.0.9-gcc6.patch 2077 SHA256 b8926d9fe3e6ca68f703a9cb87a81aaa44238a0a8a0c348a6c9b3ff839468b20 SHA512 3636a1f22e129b7ceea50add15d52e96b96dfa28629b46e6bd1fd5e51f47a8f0d4f232e2b70858fa460cb0c9e842e7325df5a5d6bcabf6b17805a9c8a03d8cc4 WHIRLPOOL 8edbdf79c047930326017ae5e60cd23ed886121c8ad3c89ce078eece47d06769c7fb9f5fb28ce7c322b7d5ec2624799a321ec30a65b5461a03549faff91a63d4 +AUX reduze-2.1-gcc6.patch 850 SHA256 8d7ad4b374c827b664d3aee215205727b3de1c5c0ec66199c06ca559b78cf753 SHA512 2df799698e9aab61c00f36cfa9b8e4806b9856180ba0621e4e4a30b485018a5fc9a1195cfe5579910b4f946119ec1a205b3e7778417bf205c1dd3ab6227f3813 WHIRLPOOL 37f11078d916606d8dea855642e825a2f374cf4b4670414f0a317bf2f1bf6e6abb56f0279f27532e4beda83fc513ce520996fdd960206107dbad56998e0b7f88 +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 +EBUILD reduze-2.0.9.ebuild 1422 SHA256 03eed8be3f5e5b94ddfda2e98902f698358a7e99c85ab508ddd6b8c562188307 SHA512 48c183662fb22751e0aa55a8be99a0d174fa67a5ac33f16e85075b982a584692e909a36d460c196c36195cce34dd4dc0f3a3e3cce392f03f21f36acbb280160d WHIRLPOOL c2c129550dc93effb86c4b8d900149989f658b1c1c1fca1d94a04d2798d35f7ba63d1c692e22bae7a910a9e6a0fdc9c1bc8be62ee87c001350676e2516358d83 +EBUILD reduze-2.1.ebuild 1429 SHA256 2d6cc0ac62edc32536e5176317c6207e692e818c6d113cdc3e8ad78d4ac76beb SHA512 db7df515fe96c676a9ee84708c5d61ae1a7092430f15c4f8eb06c8af5ee4dc85c073f19a3997500e73934136d905e3d563bb83c85a307fecfe64483b24df934b WHIRLPOOL c149b013ae09a785cfeb5848c2f734a8b25ab68d225ade310065eb77b9d3068bd885fc06aa3f4819f478149fb42befc778eccd5578e23e69e6b1a8d87b641cbf +MISC ChangeLog 2699 SHA256 63179c7409df0f47290b55f212ad120b81ec71a5252fa270d24872d3f114a7dc SHA512 1f06df35d44a05a2d5c0ede827eb4d2982bf8fbf782451ac918ac103fc76e03b3a9309776d728f947a283a613d7b73bf571d304193bf83cfbfbc09d58da2ee29 WHIRLPOOL 8a41b2b5801d0224de4b04e95146d059f614e822b269b4d0181e9eddf3afeb049bd0e61a11b517d4c5d2b46333c477791d27fa4483bc7c47078226f6456ea242 +MISC ChangeLog-2015 840 SHA256 684b99df70a9bdd93b6ba39d5d5f65ba126461b39c725a5c280b2c4ca7667925 SHA512 aec87f5661a5c71ed908eac254603816aecf85bf0ee738dea530fccca3b9992d04e47884bed1ab0c1df7a260794d7272b9924e7162ffecdbaa1d00a765e8bce5 WHIRLPOOL a64f7b1c874a568ca2dcee658e1136c93790984bbaa442072731832dc23649a78f796945e84049c133fe903c88ee2fda7d2c53750717a67fc54a888e37366ad6 +MISC metadata.xml 454 SHA256 a8251d92622c824b5afb570a6a73ddac217f9c0532cd475735c30baedcc7c18c SHA512 2c4ba8ba43848a07834cb7f31a474f7c236356ef228e87db2870a4d19c3d2edf29189fab25f05efe70c004a3fdb7c2fd065687b104fe33d1fd20626c6aea4372 WHIRLPOOL facce8bba364b5b0c52d1a532f862e505d4046a6d9cd9563670d069dec636577f4fc2a137db838e58824b973c62d407ba2713df786be55d53635c34bbb2f831b diff --git a/sci-physics/reduze/files/reduze-2.0.9-gcc6.patch b/sci-physics/reduze/files/reduze-2.0.9-gcc6.patch new file mode 100644 index 000000000000..9864163cdec9 --- /dev/null +++ b/sci-physics/reduze/files/reduze-2.0.9-gcc6.patch @@ -0,0 +1,58 @@ +--- a/reduze/amplitude.cpp ++++ b/reduze/amplitude.cpp +@@ -782,7 +782,7 @@ + + ex resultLeadingNc = result; + for (exset::const_iterator it = found.begin(); it != found.end(); ++it) { +- VERIFY(is_a<function>(*it) && ex_to<function>(*it).get_name() == "Color"); ++ VERIFY(is_a<GiNaC::function>(*it) && ex_to<GiNaC::function>(*it).get_name() == "Color"); + VERIFY(is_a<lst>(it->op(0))); + ex res(1); + for (size_t i = 0; i < it->op(0).nops(); ++i) +@@ -823,7 +823,7 @@ + timer.restart(); + exmap m; + for (exset::const_iterator it = found.begin(); it != found.end(); ++it) { +- VERIFY(is_a<function>(*it) && ex_to<function>(*it).get_name() == "Lorentz"); ++ VERIFY(is_a<GiNaC::function>(*it) && ex_to<GiNaC::function>(*it).get_name() == "Lorentz"); + VERIFY(is_a<lst>(it->op(0))); + + ex res(1); +--- a/reduze/files.cpp ++++ b/reduze/files.cpp +@@ -420,7 +420,7 @@ + get_filename_sectormappings(m.integralfamily()->name()); + ofstream file(file_name.c_str()); + if (!file) +- ABORT("Can't write to " << file); ++ ABORT("Can't write to " << file_name); + os << YAML::BeginMap << YAML::Key << "sectormappings" << YAML::Value; + os << m << YAML::EndMap; + file << os.c_str(); +@@ -617,7 +617,7 @@ + + bool is_readable_file(const string& filename) { + ifstream is(filename.c_str()); +- bool ok = is; ++ bool ok = !is.fail(); + is.close(); + return ok; + } +--- a/reduze/sectormappings.cpp ++++ b/reduze/sectormappings.cpp +@@ -757,13 +757,13 @@ + const Node& z_node = node["zero_sectors"]; + for (Iterator n = z_node.begin(); n != z_node.end(); ++n) + for (Iterator s = n.second().begin(); s != n.second().end(); ++s) +- m.zero_sectors_.insert(*s); ++ m.zero_sectors_.insert((const int) *s); + + if (node.FindValue("sectors_without_graph")) { + const Node& ng_node = node["sectors_without_graph"]; + for (Iterator n = ng_node.begin(); n != ng_node.end(); ++n) + for (Iterator s = n.second().begin(); s != n.second().end(); ++s) +- m.sectors_without_graph_.insert(*s); ++ m.sectors_without_graph_.insert((const int) *s); + } + + const Node& rel_node = node["sector_relations"]; diff --git a/sci-physics/reduze/files/reduze-2.1-gcc6.patch b/sci-physics/reduze/files/reduze-2.1-gcc6.patch new file mode 100644 index 000000000000..3b347ef413c3 --- /dev/null +++ b/sci-physics/reduze/files/reduze-2.1-gcc6.patch @@ -0,0 +1,29 @@ +--- a/reduze/files.cpp ++++ b/reduze/files.cpp +@@ -723,7 +723,7 @@ + string file_name_tmp = file_name + ".tmp"; + ofstream file(file_name_tmp.c_str()); + if (!file) +- ABORT("Can't write to " << file); ++ ABORT("Can't write to " << file_name_tmp); + Emitter os; + os << BeginMap; + os << Key << "crossings" << Value; +@@ -752,7 +752,7 @@ + string file_name_tmp = file_name + ".tmp"; + ofstream file(file_name_tmp.c_str()); + if (!file) +- ABORT("Can't write to " << file); ++ ABORT("Can't write to " << file_name_tmp); + os << YAML::BeginMap << YAML::Key << "sectormappings" << YAML::Value; + os << m << YAML::EndMap; + file << os.c_str(); +@@ -1036,7 +1036,7 @@ + + bool is_readable_file(const string& filename) { + ifstream is(filename.c_str()); +- bool ok = is; ++ bool ok = !is.fail(); + is.close(); + return ok && !is_readable_directory(filename); + } diff --git a/sci-physics/reduze/metadata.xml b/sci-physics/reduze/metadata.xml new file mode 100644 index 000000000000..4b1d47af2649 --- /dev/null +++ b/sci-physics/reduze/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</name> +</maintainer> +<maintainer type="project"> + <email>sci-physics@gentoo.org</email> + <name>Gentoo Physics Project</name> +</maintainer> +<longdescription lang="en"> + A program for reducing Feynman integrals +</longdescription> +</pkgmetadata> diff --git a/sci-physics/reduze/reduze-2.0.9.ebuild b/sci-physics/reduze/reduze-2.0.9.ebuild new file mode 100644 index 000000000000..3c0713e8e163 --- /dev/null +++ b/sci-physics/reduze/reduze-2.0.9.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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 )" + +DOCS=( ChangeLog README ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc6.patch + + # gentoo doc directory + sed -i \ + -e "s:share/reduze:share/doc/${PF}:g" \ + CMakeLists.txt || die + use doc || sed -i -e '/share/d' CMakeLists.txt + # 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 + $(cmake-utils_use berkdb USE_DATABASE) + $(cmake-utils_use mpi USE_MPI) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile all $(use doc && echo doc) +} + +src_test() { + cd "${CMAKE_BUILD_DIR}" + emake check + use mpi && emake check_mpi +} + +src_install() { + cmake-utils_src_install + use doc && dohtml -r "${CMAKE_BUILD_DIR}"/doc/code/html/* +} diff --git a/sci-physics/reduze/reduze-2.1.ebuild b/sci-physics/reduze/reduze-2.1.ebuild new file mode 100644 index 000000000000..ad6f52292b44 --- /dev/null +++ b/sci-physics/reduze/reduze-2.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 )" + +PATCHES=( "${FILESDIR}"/${P}-gcc6.patch ) + +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 +} |