summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2013-03-10 02:31:59 +0000
committerChristoph Junghans <ottxor@gentoo.org>2013-03-10 02:31:59 +0000
commitbfddda6e4cf1c6abe7c23e0ed1132c6318376afe (patch)
treeea8246e83ca3d4eb5bec4f97fd06c6d44adf3b77 /sci-libs
parentadd sys-apps/gawk dep (diff)
downloadgentoo-2-bfddda6e4cf1c6abe7c23e0ed1132c6318376afe.tar.gz
gentoo-2-bfddda6e4cf1c6abe7c23e0ed1132c6318376afe.tar.bz2
gentoo-2-bfddda6e4cf1c6abe7c23e0ed1132c6318376afe.zip
version bump
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key C2000586)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/openmm/ChangeLog7
-rw-r--r--sci-libs/openmm/openmm-5.0.1.ebuild68
2 files changed, 74 insertions, 1 deletions
diff --git a/sci-libs/openmm/ChangeLog b/sci-libs/openmm/ChangeLog
index 355894e23072..42cf1d336d48 100644
--- a/sci-libs/openmm/ChangeLog
+++ b/sci-libs/openmm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/openmm
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/openmm/ChangeLog,v 1.6 2013/02/05 05:51:44 ottxor Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/openmm/ChangeLog,v 1.7 2013/03/10 02:31:59 ottxor Exp $
+
+*openmm-5.0.1 (10 Mar 2013)
+
+ 10 Mar 2013; Christoph Junghans <ottxor@gentoo.org> +openmm-5.0.1.ebuild:
+ version bump
*openmm-5.0 (05 Feb 2013)
diff --git a/sci-libs/openmm/openmm-5.0.1.ebuild b/sci-libs/openmm/openmm-5.0.1.ebuild
new file mode 100644
index 000000000000..7e09d3392759
--- /dev/null
+++ b/sci-libs/openmm/openmm-5.0.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/openmm/openmm-5.0.1.ebuild,v 1.1 2013/03/10 02:31:59 ottxor Exp $
+
+EAPI="5"
+
+PYTHON_DEPEND="2:2.6"
+
+inherit cmake-utils cuda python
+
+MY_P="${PN^^[om]}${PV}-Source"
+DESCRIPTION="provides tools for modern molecular modeling simulation"
+HOMEPAGE="https://simtk.org/home/openmm"
+SRC_URI="mirror://gentoo/${MY_P}.zip"
+
+LICENSE="MIT LGPL-2.1+ BSD RU-BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cuda doc examples opencl wrappers"
+
+RDEPEND="
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1 )
+ opencl? ( virtual/opencl )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ wrappers? ( dev-cpp/gccxml virtual/jre )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare() {
+ use cuda && cuda_src_prepare
+ default
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use cuda OPENMM_BUILD_CUDA_LIB)
+ $(cmake-utils_use opencl OPENMM_BUILD_OPENCL_LIB)
+ $(cmake-utils_use doc OPENMM_GENERATE_API_DOCS)
+ $(cmake-utils_use wrappers OPENMM_BUILD_C_AND_FORTRAN_WRAPPERS)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use doc; then
+ dodoc "${ED}"/usr/docs/*.pdf
+ dohtml -r "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
+ fi
+ rm -f "${ED}"/usr/docs/*.pdf
+ rm -rf "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
+ rmdir "${ED}"/usr/docs || die
+
+ if use examples; then
+ insinto /usr/share/"${PN}"
+ doins -r "${ED}"/usr/examples
+ fi
+ rm -rf "${ED}"/usr/examples
+
+ rm -rf "${ED}"/usr/licenses
+}