summaryrefslogtreecommitdiff
path: root/sci-physics/hoomd-blue
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/hoomd-blue')
-rw-r--r--sci-physics/hoomd-blue/Manifest7
-rw-r--r--sci-physics/hoomd-blue/hoomd-blue-2.0.2.ebuild69
-rw-r--r--sci-physics/hoomd-blue/hoomd-blue-9999.ebuild69
-rw-r--r--sci-physics/hoomd-blue/metadata.xml18
4 files changed, 163 insertions, 0 deletions
diff --git a/sci-physics/hoomd-blue/Manifest b/sci-physics/hoomd-blue/Manifest
new file mode 100644
index 000000000000..7f9c3eb24752
--- /dev/null
+++ b/sci-physics/hoomd-blue/Manifest
@@ -0,0 +1,7 @@
+DIST hoomd-blue-2.0.2.tar.bz2 2942198 SHA256 6ed0b7c28d4490a00081630fe9afd831a862cb895636679b89e2fb0a11637861 SHA512 6480639bc1b8d0534c220c7512f742a6f9eba76ad25991153735cc7f4ff88345332be4c215abd94de85249e79e85a6970be1a74a96350d4693a2c1291fbbf689 WHIRLPOOL e0a9e23a1a5aa8348496400140e4e288a3b79c5bd7f3c09675d592aebd02a781d4ef6cc9e5fe7ac9f671e1ff791ea75d70d3fa25189ade78d9229dfae6e9a21a
+DIST libgetar-0.5.0.tar.bz2 217067 SHA256 8b03a352f63dcf8d14e88af758f65f71e5e4f92ed01c1566c3333da90164ab42 SHA512 a27de8f7c976e5578142319684de15afca47c24953f590b34cad4ef88c3778aa47aa5eb9a1f83b1473aa49f4394e45dfaa4a8b5107264fa93101dea78ec5fa6b WHIRLPOOL d5dbb0bc51bdc7241ba4c51461da0a54eb57b0e9f76e1f0a7127010ccbd375146b4aae0bfd98a431f96595459913168097502edc9d7fe60f3180ca56fb44e91a
+EBUILD hoomd-blue-2.0.2.ebuild 1678 SHA256 328463b5c154437750b44f44206f49e978b9d0ad9daf2a190c2fa6adcf87835d SHA512 3661ed6fb5c847ce42471540cc6052f2703df6b560313c8b40882ed3a25f460d64edb279ae191c23004fa1fba479f1b8d95ef7c96e86e85c891d19dc32587079 WHIRLPOOL 7f1cbc3df827339af362a9f8319999049fa0b279cb7caa39a2bddafc7970ab65780c0f58f146ce4a306dbb99ee681256d8f183627d90879c133c6feff1419ea3
+EBUILD hoomd-blue-9999.ebuild 1678 SHA256 328463b5c154437750b44f44206f49e978b9d0ad9daf2a190c2fa6adcf87835d SHA512 3661ed6fb5c847ce42471540cc6052f2703df6b560313c8b40882ed3a25f460d64edb279ae191c23004fa1fba479f1b8d95ef7c96e86e85c891d19dc32587079 WHIRLPOOL 7f1cbc3df827339af362a9f8319999049fa0b279cb7caa39a2bddafc7970ab65780c0f58f146ce4a306dbb99ee681256d8f183627d90879c133c6feff1419ea3
+MISC ChangeLog 4519 SHA256 2bc26c0a4890c4cc74d9387e406e7a0a62bcc6683e368745d666641eec7da55c SHA512 115a23e18be3c753509d0f855edde2f3cd0d96c031785cc26e820f3fcd0241fd3be0658ca9796f8c6eab64a3a420ad99a51ab0687016e87d847872ab3b3103eb WHIRLPOOL 0aae697211ac3a8c64cdbf65799e5e34b6c2251570dd3f48c9faef0b2fbd111b137722810615d85fe597c59c103607865c18459e7905d00d87a40071b44080c0
+MISC ChangeLog-2015 364 SHA256 0d4218b64abe236703393d57798a608c807c9e1c26d020bc1d44d27c16663931 SHA512 a42e693f09d9c5dd058d445fda0acf0d06cf5b60ae60ee2031f95a76116702ebac5fab92520ea4672b66b7eca919b64a412848920d2257ef7f8f7ce2fcb20af3 WHIRLPOOL 43045f90ac93d6d3b74914bdbcb9a170f6f0820b6156b93dacedcddcc63383ecaa354ee6367277b1660cd1d4f39e4a7a31dfb8d2fe14bb050ab71bdbd708adcd
+MISC metadata.xml 558 SHA256 b1599c6e269d7982c878931bb51e7871edd85db46c6080df477f67e785bd1ff9 SHA512 48dfc3b18f1ab9d5c3ecd82e2eb30ec907a65c38b2cb28d6253c1a41990f9dd05ca86c7696c6f218b14149e115e9c1ad257f43ae3c7d37854c416e02855abf07 WHIRLPOOL ffc9c0fbd081e6cf87d0e49a6c330fcb381b5710b76c1f0037f2f7a6958ce5e98626fb6cbe98d59aec924b2501f833f407cca60af66439e57e7c70a78325ab83
diff --git a/sci-physics/hoomd-blue/hoomd-blue-2.0.2.ebuild b/sci-physics/hoomd-blue/hoomd-blue-2.0.2.ebuild
new file mode 100644
index 000000000000..4eeb2d729682
--- /dev/null
+++ b/sci-physics/hoomd-blue/hoomd-blue-2.0.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4} )
+CMAKE_MAKEFILE_GENERATOR="ninja"
+
+inherit cmake-utils cuda python-r1
+
+DESCRIPTION="a general-purpose particle simulation toolkit"
+HOMEPAGE="http://codeblue.umich.edu/hoomd-blue/"
+EGIT_REPO_URI="https://bitbucket.org/glotzer/${PN}.git"
+
+if [[ ${PV} = 9999 ]]; then
+ EGIT_REPO_URI="https://bitbucket.org/glotzer/${PN}.git"
+ inherit git-r3
+else
+ inherit vcs-snapshot
+ GETTAR_VER=0.5.0
+ SRC_URI="https://bitbucket.org/glotzer/${PN}/get/v${PV}.tar.bz2 -> ${P}.tar.bz2
+ https://bitbucket.org/glotzer/libgetar/get/v${GETTAR_VER}.tar.bz2 -> libgetar-${GETTAR_VER}.tar.bz2"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="hoomd-blue"
+SLOT="0"
+IUSE="cuda test mpi"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ mpi? ( virtual/mpi )
+ cuda? ( dev-util/nvidia-cuda-sdk )
+ dev-libs/boost:=[threads,python,mpi,${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ [[ ${PV} = 9999 ]] || mv ../libgetar-${GETTAR_VER}/* hoomd/extern/libgetar || die
+ use cuda && cuda_src_prepare
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ src_configure_internal() {
+ local mycmakeargs=(
+ -DENABLE_MPI=$(usex mpi)
+ -DENABLE_CUDA=$(usex cuda)
+ -DBUILD_TESTING=$(usex test)
+ -DUPDATE_SUBMODULES=OFF
+ -DPYTHON_EXECUTABLE="${PYTHON}"
+ -DCMAKE_INSTALL_PREFIX=$(python_get_sitedir)
+ )
+ cmake-utils_src_configure
+ }
+ python_foreach_impl src_configure_internal
+}
+
+src_compile() {
+ python_foreach_impl cmake-utils_src_make
+}
+
+src_test() {
+ python_foreach_impl cmake-utils_src_test
+}
+
+src_install() {
+ python_foreach_impl cmake-utils_src_install
+}
diff --git a/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild b/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild
new file mode 100644
index 000000000000..4eeb2d729682
--- /dev/null
+++ b/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4} )
+CMAKE_MAKEFILE_GENERATOR="ninja"
+
+inherit cmake-utils cuda python-r1
+
+DESCRIPTION="a general-purpose particle simulation toolkit"
+HOMEPAGE="http://codeblue.umich.edu/hoomd-blue/"
+EGIT_REPO_URI="https://bitbucket.org/glotzer/${PN}.git"
+
+if [[ ${PV} = 9999 ]]; then
+ EGIT_REPO_URI="https://bitbucket.org/glotzer/${PN}.git"
+ inherit git-r3
+else
+ inherit vcs-snapshot
+ GETTAR_VER=0.5.0
+ SRC_URI="https://bitbucket.org/glotzer/${PN}/get/v${PV}.tar.bz2 -> ${P}.tar.bz2
+ https://bitbucket.org/glotzer/libgetar/get/v${GETTAR_VER}.tar.bz2 -> libgetar-${GETTAR_VER}.tar.bz2"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="hoomd-blue"
+SLOT="0"
+IUSE="cuda test mpi"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ mpi? ( virtual/mpi )
+ cuda? ( dev-util/nvidia-cuda-sdk )
+ dev-libs/boost:=[threads,python,mpi,${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ [[ ${PV} = 9999 ]] || mv ../libgetar-${GETTAR_VER}/* hoomd/extern/libgetar || die
+ use cuda && cuda_src_prepare
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ src_configure_internal() {
+ local mycmakeargs=(
+ -DENABLE_MPI=$(usex mpi)
+ -DENABLE_CUDA=$(usex cuda)
+ -DBUILD_TESTING=$(usex test)
+ -DUPDATE_SUBMODULES=OFF
+ -DPYTHON_EXECUTABLE="${PYTHON}"
+ -DCMAKE_INSTALL_PREFIX=$(python_get_sitedir)
+ )
+ cmake-utils_src_configure
+ }
+ python_foreach_impl src_configure_internal
+}
+
+src_compile() {
+ python_foreach_impl cmake-utils_src_make
+}
+
+src_test() {
+ python_foreach_impl cmake-utils_src_test
+}
+
+src_install() {
+ python_foreach_impl cmake-utils_src_install
+}
diff --git a/sci-physics/hoomd-blue/metadata.xml b/sci-physics/hoomd-blue/metadata.xml
new file mode 100644
index 000000000000..1b92a0a45128
--- /dev/null
+++ b/sci-physics/hoomd-blue/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>junghans@gentoo.org</email>
+ <name>Christoph Junghans</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+ </maintainer>
+ <use>
+ <flag name="cuda">Enable cuda non-bonded kernels</flag>
+ </use>
+ <upstream>
+ <remote-id type="bitbucket">glotzer/hoomd-blue</remote-id>
+ </upstream>
+</pkgmetadata>