commit: 9d2daff26548b9ebe2bdb49219430a9949944575 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> AuthorDate: Thu Feb 26 01:48:11 2015 +0000 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org> CommitDate: Thu Feb 26 01:49:35 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9d2daff2
initial commit Package-Manager: portage-2.2.14 --- sci-physics/hoomd/ChangeLog | 9 ++++++ sci-physics/hoomd/hoomd-9999.ebuild | 61 +++++++++++++++++++++++++++++++++++++ sci-physics/hoomd/metadata.xml | 12 ++++++++ 3 files changed, 82 insertions(+) diff --git a/sci-physics/hoomd/ChangeLog b/sci-physics/hoomd/ChangeLog new file mode 100644 index 0000000..4e1a959 --- /dev/null +++ b/sci-physics/hoomd/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-physics/hoomd +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*hoomd-9999 (26 Feb 2015) + + 26 Feb 2015; Christoph Junghans <[email protected]> +hoomd-9999.ebuild, + +metadata.xml: + initial commit diff --git a/sci-physics/hoomd/hoomd-9999.ebuild b/sci-physics/hoomd/hoomd-9999.ebuild new file mode 100644 index 0000000..c14ab91 --- /dev/null +++ b/sci-physics/hoomd/hoomd-9999.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit cmake-utils cuda python-single-r1 + +DESCRIPTION="a general-purpose particle simulation toolkit" +HOMEPAGE="http://codeblue.umich.edu/hoomd-blue/" + +if [[ ${PV} = 9999 ]]; then + EGIT_REPO_URI="https://bitbucket.org/glotzer/hoomd-blue.git" + inherit git-r3 + KEYWORDS= +else + inherit vcs-snapshot + SRC_URI="https://bitbucket.org/glotzer/hoomd-blue/get/v${PV}.tar.bz2 -> ${P}.tar.bz2" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="cuda doc test mpi +zlib" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + mpi? ( virtual/mpi ) + cuda? ( dev-util/nvidia-cuda-sdk ) + zlib? ( sys-libs/zlib ) + dev-libs/boost:=[threads,python,mpi,${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + use cuda && cuda_src_prepare + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_enable mpi MPI) + $(cmake-utils_use_enable doc DOXYGEN) + $(cmake-utils_use_enable cuda CUDA) + $(cmake-utils_use_enable zlib ZLIB) + $(cmake-utils_use_build test BUILD_TESTING) + -DPYTHON_SITEDIR=$(python_get_sitedir) + ) + cmake-utils_src_configure +} + +src_install() { + use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/hoomd-*doc* ) + cmake-utils_src_install + + sed -i "s/^python/${EPYTHON}/" "${ED}"/usr/bin/hoomd || die +} diff --git a/sci-physics/hoomd/metadata.xml b/sci-physics/hoomd/metadata.xml new file mode 100644 index 0000000..8dd7ec6 --- /dev/null +++ b/sci-physics/hoomd/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-chemistry</herd> + <maintainer> + <email>[email protected]</email> + <name>Christoph Junghans</name> + </maintainer> + <use> + <flag name="cuda">Enable cuda non-bonded kernels</flag> + </use> +</pkgmetadata>
