summaryrefslogtreecommitdiff
path: root/sci-physics/sassena
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/sassena')
-rw-r--r--sci-physics/sassena/Manifest8
-rw-r--r--sci-physics/sassena/files/sassena-1.4.2_cmake-remove-missing.patch33
-rw-r--r--sci-physics/sassena/files/sassena-1.4.2_link_boost_thread.patch92
-rw-r--r--sci-physics/sassena/files/sassena-1.4.2_uint32_t.patch11
-rw-r--r--sci-physics/sassena/metadata.xml11
-rw-r--r--sci-physics/sassena/sassena-1.4.2.ebuild31
6 files changed, 186 insertions, 0 deletions
diff --git a/sci-physics/sassena/Manifest b/sci-physics/sassena/Manifest
new file mode 100644
index 000000000000..ec3561a37a0e
--- /dev/null
+++ b/sci-physics/sassena/Manifest
@@ -0,0 +1,8 @@
+AUX sassena-1.4.2_cmake-remove-missing.patch 1044 SHA256 cf166393e48c5a3ba1d9df04fdd5e44f7fd7855de7a60dd861b8caa7227d640b SHA512 cb26b4ea75ec321f5db2ec5d61b982ffc6d40d6817d1c1b89aa2c11763467a02fa14fe051f498065255ede032b2c0ab4a15bfa3f1f6a53eca035c6c4001e5d19 WHIRLPOOL 727bb56e05efaf767f1e0debb9d2bceb514a91d4cf01ee3167b34cc447df6530fde06ca7e7995541b669ac4280d4cdce47782b0c0c517ddca082017cd778e95f
+AUX sassena-1.4.2_link_boost_thread.patch 4581 SHA256 0f2c73cf7aeb0f1b2fd1298ad6e8060aa9e406281960e78a9f237a4d27684d89 SHA512 12e5d62d972eb9e0e89587db66f335496ba921009435a40ca61824165726244cf394634b88cd9ebbde08217d00ea4fd5a182aa7854be2ec481edf970a7442a37 WHIRLPOOL f008f122e360c398eaf49fdb2c09d3b1157f827d9bac750147e86dda80f97d6ddf7bf4d952878ea78c65d8689641bdf8ddf4328694706d16f83303a5ac478802
+AUX sassena-1.4.2_uint32_t.patch 491 SHA256 aa67a7844f459d5aa89f57396a5561164ba7db868ec8374bf9eb8adbeda4978d SHA512 1cf7bf57cbb4c967c63b32b063e71ef62f40640858464b4db4d392fe967be25010fa9e22f5cbca2e82e7cc185ccf07819919087ed72b79bace8ce152bace1b2e WHIRLPOOL 9db7e4a0040a3c4b85c9e589a199e87d052ea19affe7c1a15ed5273b2724911d795bf751235282a59dc19ffdcc2c67b10ab55b91ad926a9f0ebcec2ec56fad74
+DIST sassena-1.4.2.tar.gz 783708 SHA256 2df437eeaaed8275d73d8168f28242c5a02f2dc4dca302c3e9968cadab586115 SHA512 07dbd44494a50de29b6f3b3542d862328726d132bda097352ac2f6ad24479b93b2d77c5ea2ef812b2956d0ac950ad69b93da0996f14ff1ce9f0e310b27728942 WHIRLPOOL 7c105aa798a3eb962c675f77b195cef68b973c9f34185bbd3f5639b24822da8c9a5fa771777e0f9c652ecdf64d28536bc0ad79bb419d746a72524333f98d6caa
+EBUILD sassena-1.4.2.ebuild 712 SHA256 12f9320f5eca2cecbda832523987c44ffb3a66ba0086a3fade87f796f30bb15a SHA512 4cf60609ea5239b8a9db57b5b80da87d4b7614700cec6a9b38d6091ed05602be58189ff9a589b1530bf0cd387cff5a43ff03982459dbb4cedc1695accdf04892 WHIRLPOOL 7cebcacd3073451f03f8c7aa40eb1a75375b93c08264278ff61200213a836b53369fa24ff07beeed45c79ad5ea48ec85008187294c10d161c616ed2451dd051b
+MISC ChangeLog 3103 SHA256 80fb24a834d271842af3a5abff2f72ab4e173cd6130b73fcfaaec896177980fe SHA512 e0e70d8efbc2fd840fc47e4d3f13de89026d28253b328c145b508434d77ff1c67979e231ccf1ad32f8cd074d3af998043b26690d187a07f3542557ff93b6dec3 WHIRLPOOL d7e55f88bc5a454a343ae7244a0997978be90ac766c76d96b7825863c41d1cfbfacc0fd8254ddd2b196aa4890492e2b3b98eda46ece56feaaf9c40acf3dc2027
+MISC ChangeLog-2015 405 SHA256 a6f3eb99dade636a7e4740be9167c7fe22542863a199103af95951d1bff3c919 SHA512 01716d76565f08df0b2ad85b64e3a686f71931506e0a46fce196308fd71ae21ee855971653f71eea713470d929b4f79263377973b3af89661d6007c64aaa9a3f WHIRLPOOL 1f301bc02611a37873836d3367527b73702e70b152763dd2bdc58d0b02254865b940ae2db88288fad460fa10e5c838e315320b14fee10a6bf6e4ed59247efa9a
+MISC metadata.xml 328 SHA256 848c1d046bec70b59ea2e4396b6e47e94ac883583bc7603d03aac48ab34b11e3 SHA512 32e9e1d75cdaf8d4019c85ae952194ed9f60991068ffc10015b552ec3ea673e8e9ff35bde421059f5e0ee098a109af61b97de16bd16408e8b94b402e605163f6 WHIRLPOOL 4b6f9d365d20b4fbb7804f85d6c35e14e7efd634581123075e68e507faa9a18588a4ac7516a92d9a4e5bc6013d466bbf9f7aa6b9c1446d5916638e3761bdc314
diff --git a/sci-physics/sassena/files/sassena-1.4.2_cmake-remove-missing.patch b/sci-physics/sassena/files/sassena-1.4.2_cmake-remove-missing.patch
new file mode 100644
index 000000000000..7131d3514526
--- /dev/null
+++ b/sci-physics/sassena/files/sassena-1.4.2_cmake-remove-missing.patch
@@ -0,0 +1,33 @@
+diff -ru sassena-1.4.2_org/cmake/CMakeLists.txt.executables sassena-1.4.2/cmake/CMakeLists.txt.executables
+--- sassena-1.4.2_org/cmake/CMakeLists.txt.executables 2014-07-29 11:02:12.652053749 +0200
++++ sassena-1.4.2/cmake/CMakeLists.txt.executables 2014-07-29 11:04:57.831042602 +0200
+@@ -18,18 +18,12 @@
+ tests/unit_broadcast.cpp
+ )
+
+-ADD_EXECUTABLE(unit_parameters
+- src/common.cpp
+- tests/unit_parameters.cpp
+-)
+-
+
+ IF(STATIC)
+ SET_TARGET_PROPERTIES(sassena PROPERTIES LINK_SEARCH_END_STATIC 1)
+ SET_TARGET_PROPERTIES(s_stage PROPERTIES LINK_SEARCH_END_STATIC 1)
+ SET_TARGET_PROPERTIES(s_maketnx PROPERTIES LINK_SEARCH_END_STATIC 1)
+ SET_TARGET_PROPERTIES(unit_broadcast PROPERTIES LINK_SEARCH_END_STATIC 1)
+-SET_TARGET_PROPERTIES(unit_parameters PROPERTIES LINK_SEARCH_END_STATIC 1)
+ ENDIF(STATIC)
+
+ TARGET_LINK_LIBRARIES (s_stage
+@@ -89,10 +83,4 @@
+ ${BOOST_LIBRARIES}
+ )
+
+-TARGET_LINK_LIBRARIES (unit_parameters
+- sass_log
+- sass_controlio
+- ${BOOST_LIBRARIES}
+-)
+-
+ INSTALL(TARGETS unit_broadcast RUNTIME DESTINATION bin)
diff --git a/sci-physics/sassena/files/sassena-1.4.2_link_boost_thread.patch b/sci-physics/sassena/files/sassena-1.4.2_link_boost_thread.patch
new file mode 100644
index 000000000000..424ca381a511
--- /dev/null
+++ b/sci-physics/sassena/files/sassena-1.4.2_link_boost_thread.patch
@@ -0,0 +1,92 @@
+diff -ru sassena-1.4.2_org/src/main/sassena.cpp sassena-1.4.2/src/main/sassena.cpp
+--- sassena-1.4.2_org/src/main/sassena.cpp 2014-07-29 11:02:12.650053749 +0200
++++ sassena-1.4.2/src/main/sassena.cpp 2014-07-29 12:52:56.978605357 +0200
+@@ -62,6 +62,7 @@
+ #include <boost/serialization/complex.hpp>
+ #include <boost/serialization/map.hpp>
+ #include <boost/serialization/vector.hpp>
++#include <boost/thread/thread.hpp>
+
+ // other headers
+ #include "exceptions/exceptions.hpp"
+Nur in sassena-1.4.2/src/main: .sassena.cpp.swp.
+diff -ru sassena-1.4.2_org/src/main/s_stage.cpp sassena-1.4.2/src/main/s_stage.cpp
+--- sassena-1.4.2_org/src/main/s_stage.cpp 2014-07-29 11:02:12.650053749 +0200
++++ sassena-1.4.2/src/main/s_stage.cpp 2014-07-29 12:51:22.257611749 +0200
+@@ -33,6 +33,7 @@
+ #include <boost/serialization/complex.hpp>
+ #include <boost/serialization/map.hpp>
+ #include <boost/serialization/vector.hpp>
++#include <boost/thread/thread.hpp>
+
+ // other headers
+ #include "exceptions/exceptions.hpp"
+diff -ru sassena-1.4.2_org/src/scatter_devices/abstract_scatter_device.cpp sassena-1.4.2/src/scatter_devices/abstract_scatter_device.cpp
+--- sassena-1.4.2_org/src/scatter_devices/abstract_scatter_device.cpp 2014-07-29 11:02:12.650053749 +0200
++++ sassena-1.4.2/src/scatter_devices/abstract_scatter_device.cpp 2014-07-29 13:02:20.824567306 +0200
+@@ -18,6 +18,7 @@
+ #include <boost/accumulators/accumulators.hpp>
+ #include <boost/accumulators/statistics.hpp>
+ #include <boost/lexical_cast.hpp>
++#include <boost/thread/thread.hpp>
+
+ // other headers
+ #include "exceptions/exceptions.hpp"
+Nur in sassena-1.4.2/src/scatter_devices: .abstract_scatter_device.cpp.swp.
+diff -ru sassena-1.4.2_org/src/scatter_devices/all_vectors_scatter_device.cpp sassena-1.4.2/src/scatter_devices/all_vectors_scatter_device.cpp
+--- sassena-1.4.2_org/src/scatter_devices/all_vectors_scatter_device.cpp 2014-07-29 11:02:12.649053750 +0200
++++ sassena-1.4.2/src/scatter_devices/all_vectors_scatter_device.cpp 2014-07-29 13:04:04.907560282 +0200
+@@ -18,6 +18,7 @@
+ #include <boost/accumulators/accumulators.hpp>
+ #include <boost/accumulators/statistics.hpp>
+ #include <boost/lexical_cast.hpp>
++#include <boost/thread/thread.hpp>
+
+ // other headers
+ #include "math/coor3d.hpp"
+Nur in sassena-1.4.2/src/scatter_devices: .all_vectors_scatter_device.cpp.swp.
+diff -ru sassena-1.4.2_org/src/scatter_devices/multipole_scatter_device.cpp sassena-1.4.2/src/scatter_devices/multipole_scatter_device.cpp
+--- sassena-1.4.2_org/src/scatter_devices/multipole_scatter_device.cpp 2014-07-29 11:02:12.649053750 +0200
++++ sassena-1.4.2/src/scatter_devices/multipole_scatter_device.cpp 2014-07-29 13:01:16.038571678 +0200
+@@ -19,6 +19,7 @@
+ #include <boost/accumulators/statistics.hpp>
+ #include <boost/lexical_cast.hpp>
+ #include <boost/math/special_functions.hpp>
++#include <boost/thread/thread.hpp>
+
+ // other headers
+ #include "math/coor3d.hpp"
+diff -ru sassena-1.4.2_org/src/scatter_devices/self_vectors_scatter_device.cpp sassena-1.4.2/src/scatter_devices/self_vectors_scatter_device.cpp
+--- sassena-1.4.2_org/src/scatter_devices/self_vectors_scatter_device.cpp 2014-07-29 11:02:12.650053749 +0200
++++ sassena-1.4.2/src/scatter_devices/self_vectors_scatter_device.cpp 2014-07-29 13:01:45.753569673 +0200
+@@ -18,6 +18,7 @@
+ #include <boost/accumulators/accumulators.hpp>
+ #include <boost/accumulators/statistics.hpp>
+ #include <boost/lexical_cast.hpp>
++#include <boost/thread/thread.hpp>
+
+ // other headers
+ #include "math/coor3d.hpp"
+diff -ru sassena-1.4.2_org/src/services/file_writer_service.cpp sassena-1.4.2/src/services/file_writer_service.cpp
+--- sassena-1.4.2_org/src/services/file_writer_service.cpp 2014-07-29 11:02:12.650053749 +0200
++++ sassena-1.4.2/src/services/file_writer_service.cpp 2014-07-29 13:08:07.448543914 +0200
+@@ -13,6 +13,7 @@
+
+ #include <boost/lexical_cast.hpp>
+ #include <boost/filesystem.hpp>
++#include <boost/thread/thread.hpp>
+ #include <log.hpp>
+ #include <control.hpp>
+ #include <math/smath.hpp>
+Nur in sassena-1.4.2/src/services: .file_writer_service.cpp.swp.
+diff -ru sassena-1.4.2_org/src/services/monitor_service.cpp sassena-1.4.2/src/services/monitor_service.cpp
+--- sassena-1.4.2_org/src/services/monitor_service.cpp 2014-07-29 11:02:12.650053749 +0200
++++ sassena-1.4.2/src/services/monitor_service.cpp 2014-07-29 13:07:06.617548019 +0200
+@@ -13,6 +13,7 @@
+ #include <boost/lexical_cast.hpp>
+ #include <boost/filesystem.hpp>
+ #include <boost/random/uniform_int.hpp>
++#include <boost/thread/thread.hpp>
+ #include <log.hpp>
+ #include <control.hpp>
+ #include <report/timer.hpp>
diff --git a/sci-physics/sassena/files/sassena-1.4.2_uint32_t.patch b/sci-physics/sassena/files/sassena-1.4.2_uint32_t.patch
new file mode 100644
index 000000000000..ecb6e845a6b1
--- /dev/null
+++ b/sci-physics/sassena/files/sassena-1.4.2_uint32_t.patch
@@ -0,0 +1,11 @@
+diff -ru sassena-1.4.2_org/src/sample/frames.cpp sassena-1.4.2/src/sample/frames.cpp
+--- sassena-1.4.2_org/src/sample/frames.cpp 2014-07-29 11:02:12.651053749 +0200
++++ sassena-1.4.2/src/sample/frames.cpp 2014-07-29 11:11:39.229015514 +0200
+@@ -298,6 +298,7 @@
+ dcdfile.seekg(marker,ios_base::cur);
+ dcdfile.read((char*) &marker,sizeof(int32_t));
+
++ using boost::uint32_t;
+ uint32_t noa;
+ dcdfile.read((char*) &marker,sizeof(int32_t));
+ dcdfile.read((char*) &noa,sizeof(uint32_t));
diff --git a/sci-physics/sassena/metadata.xml b/sci-physics/sassena/metadata.xml
new file mode 100644
index 000000000000..4fac2fa01530
--- /dev/null
+++ b/sci-physics/sassena/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">benlabs/sassena</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-physics/sassena/sassena-1.4.2.ebuild b/sci-physics/sassena/sassena-1.4.2.ebuild
new file mode 100644
index 000000000000..4546a6090317
--- /dev/null
+++ b/sci-physics/sassena/sassena-1.4.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Software for Calculating Scattering Diagrams on Massively Parallel Computers"
+HOMEPAGE="http://www.sassena.org"
+SRC_URI="https://github.com/benlabs/sassena/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ dev-libs/boost[mpi]
+ sci-libs/hdf5[mpi]
+ dev-libs/libxml2
+ sci-libs/fftw:3.0
+ virtual/mpi
+ virtual/blas
+ virtual/lapack"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}_cmake-remove-missing.patch"
+ "${FILESDIR}/${P}_uint32_t.patch"
+ "${FILESDIR}/${P}_link_boost_thread.patch"
+)