summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/hoomd')
-rw-r--r--sci-chemistry/hoomd/ChangeLog8
-rw-r--r--sci-chemistry/hoomd/Manifest6
-rw-r--r--sci-chemistry/hoomd/hoomd-0.9.1.3815.ebuild113
-rw-r--r--sci-chemistry/hoomd/metadata.xml10
4 files changed, 137 insertions, 0 deletions
diff --git a/sci-chemistry/hoomd/ChangeLog b/sci-chemistry/hoomd/ChangeLog
new file mode 100644
index 000000000..31f9037bb
--- /dev/null
+++ b/sci-chemistry/hoomd/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sci-chemistry/hoomd
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 13 Mar 2011; Ross Smith (gaurdro) <gaurdro@gmail.com>
+ +hoomd-0.9.1.3815.ebuild, +metadata.xml:
+ New Ebuild for bug 357021. Thanks to the sunrise devs for their help
+
diff --git a/sci-chemistry/hoomd/Manifest b/sci-chemistry/hoomd/Manifest
new file mode 100644
index 000000000..1d8c1e3d9
--- /dev/null
+++ b/sci-chemistry/hoomd/Manifest
@@ -0,0 +1,6 @@
+DIST hoomd-0.9.1.3815.tar.bz2 4631180 RMD160 ba2f16ae7802a8c612fd44cd353bccd1b5249d1a SHA1 4dff6182b6c423627bb5f3d2f434aab1f05fd4f3 SHA256 14ba3e17494681275593f7beafbe11dd84a954aa737f37807671ea70f7c8f3be
+DIST hoomd-devdoc-0.9.1.tar.bz2 729365 RMD160 e214c7351adbf32d7512ca8f9d0d7d2bc8753403 SHA1 511eb112d28297c0e0a0d3c4525934c54bc704ef SHA256 e2d5fcad50c94b7a7eea1b7142f4d0c7590a014587e6c8978c74e81580b8e57e
+DIST hoomd-userdoc-0.9.1.pdf 1462069 RMD160 db125732309cbdc85f6233fbefb246158a257820 SHA1 395439b3377d275b974831b00067ac046e94ab25 SHA256 119d97d630df30683debf4e128b3b4692bb3926b14ada3d4da7117a8c1086b09
+EBUILD hoomd-0.9.1.3815.ebuild 3299 RMD160 9f731174bfd60e46750837b024f036e070b70b51 SHA1 6a26156faf3da5dec0e8303fa0f6f5f597ecd418 SHA256 5615c737e2841a516c6a9d652d2bfdf771a57841a86edd75ffe1874b8a33cd37
+MISC ChangeLog 292 RMD160 70af3643d24e3fcd3a6139d056bf270d179afcbb SHA1 9df582916111fd3c69eede3906afdf9877c0bcba SHA256 91bd835482bb94b70d903df4d79861eaad8bd9d871c5a48e02102f808fb9f12e
+MISC metadata.xml 519 RMD160 9d8f1a598d95942c3832bb3f37c1cf15bde68bfa SHA1 3b646121e743776d9c2f7d5762cec79d67cdae16 SHA256 0274214dbdc5912f598acd525ebb28d0c54c01b23d21182bb31e12bb1e09c7b0
diff --git a/sci-chemistry/hoomd/hoomd-0.9.1.3815.ebuild b/sci-chemistry/hoomd/hoomd-0.9.1.3815.ebuild
new file mode 100644
index 000000000..94a7d7e9c
--- /dev/null
+++ b/sci-chemistry/hoomd/hoomd-0.9.1.3815.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_DOC_PV="0.9.1"
+
+inherit cmake-utils eutils fdo-mime python versionator
+DESCRIPTION="HOOMD performs general purpose molecular dynamics simulations on NVIDIA GPUs"
+HOMEPAGE="http://codeblue.umich.edu/hoomd-blue/index.html"
+SRC_URI="http://umich.edu/~rjsm/${P}.tar.bz2
+ doc? ( http://codeblue.umich.edu/hoomd-blue/downloads/0.9/hoomd-userdoc-${MY_DOC_PV}.pdf
+ http://codeblue.umich.edu/hoomd-blue/downloads/0.9/hoomd-devdoc-${MY_DOC_PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+cuda debug doc +openmp +single-precision static-libs zlib"
+
+RDEPEND="dev-libs/boost
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-2.0 dev-util/nvidia-cuda-sdk )
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+pkg_setup() {
+ python_pkg_setup
+
+ if use cuda && version_is_at_least 4.5 $(gcc-version) \
+ && has_version <=nvidia-cuda-toolkit-3.2 \
+ && has_version >nvidia-cuda-toolkit-3.0; then
+ ewarn "Nvidia CUDA SDK Version 3.2 and below require a gcc version less than 4.5"
+ ewarn "Enabling the cuda use flag with gcc version 4.5 or higher will cause build failures in those SDK versions."
+ ewarn "Please use gcc-config to set a gcc version less than 4.5."
+ fi
+
+ if use cuda && version_is_at_least 4.4 $(gcc-version) \
+ && has_version <=nvidia-cuda-toolkit-3.0; then
+ ewarn "Nvidia CUDA SDK version 3.0 and below requires a gcc version less than 4.4"
+ ewarn "Enabling the cuda use flag with gcc version 4.4 or higher will cause build failures in those SDK versions."
+ ewarn "Please use gcc-config to set a gcc version less than 4.4 ."
+ fi
+
+}
+
+src_unpack() {
+ unpack ${P}.tar.bz2
+ use doc && unpack hoomd-devdoc-${PV}.tar.bz2
+}
+
+src_prepare(){
+ python_copy_sources
+}
+
+src_configure(){
+ use single-precision && local sp="ON" || local sp="OFF"
+
+ if use !single-precision && use cuda ; then
+ ewarn "Single precision must be enabled to have cuda support built-in."
+ ewarn "Single-precision will be enabled for this build."
+ local sp="ON"
+ fi
+ my_config() {
+ local mycmakeargs=(
+ $(cmake-utils_use_enable cuda CUDA)
+ $(cmake-utils_use_enable static-lib STATIC)
+ $(cmake-utils_use_enable test BUILD_TESTING)
+ $(cmake-utils_use_enable openmp OPENMP)
+ $(cmake-utils_use_enable zlib ZLIB)
+ -DENABLE_VALGRIND=OFF
+ -DENABLE_NATIVE_INSTALL=0N
+ -DENABLE_DOXYGEN=OFF
+ -DPYTHON_SITEDIR=$(python_get_sitedir)
+ -DENABLE_SINGLE_PRECISION=${sp}
+ -DCMAKE_BUILD_TYPE=${cbt}
+ -DENABLE_OCELOT:BOOL=OFF
+ )
+
+ cmake-utils_src_configure
+ }
+
+ python_execute_function -s my_config
+}
+
+src_test(){
+ python_execute_function -s cmake-utils_src_test
+}
+
+src_install(){
+ if use doc; then
+
+ insinto /usr/share/doc/${PF}
+ newins "${DISTDIR}/hoomd-userdoc-${MY_DOC_PV}.pdf" hoom-userdoc-${PV}.pdf || die "docs failed"
+
+ insinto /usr/share/doc/${PF}/devdocs
+ mv "hoomd-devdoc-${MY_DOC_PV}/" "hoomd-devdoc-${PV}" || die
+ doins -r "hoomd-devdoc-${PV}/" || die "docs failed"
+ fi
+
+ python_execute_function -s cmake-utils_src_install
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/sci-chemistry/hoomd/metadata.xml b/sci-chemistry/hoomd/metadata.xml
new file mode 100644
index 000000000..e45e3ac1f
--- /dev/null
+++ b/sci-chemistry/hoomd/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+<use>
+ <flag name='cuda'>Enables support for the NVIDIA CUDA library. Requires single-precision flag be set.</flag>
+ <flag name='single-precision'>Computations will be performed using single precision numbers. Otherwise computations will be performed in double precision. </flag>
+</use>
+</pkgmetadata>