Gentoo Archives: gentoo-commits

From: Christoph Junghans <kleiner_otti@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/openmm/
Date: Tue, 27 Nov 2012 05:43:39
Message-Id: 1353994128.b42793ee0d2ad8672486381b37ca39a0702e9576.kleiner_otti@gentoo
1 commit: b42793ee0d2ad8672486381b37ca39a0702e9576
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 27 05:11:57 2012 +0000
4 Commit: Christoph Junghans <kleiner_otti <AT> gmx <DOT> de>
5 CommitDate: Tue Nov 27 05:28:48 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b42793ee
7
8 re-added for gromacs
9
10 Package-Manager: portage-2.2.0_alpha142
11
12 ---
13 sci-libs/openmm/ChangeLog | 9 +++++++
14 sci-libs/openmm/metadata.xml | 13 +++++++++++
15 sci-libs/openmm/openmm-4.1.1.ebuild | 41 +++++++++++++++++++++++++++++++++++
16 3 files changed, 63 insertions(+), 0 deletions(-)
17
18 diff --git a/sci-libs/openmm/ChangeLog b/sci-libs/openmm/ChangeLog
19 new file mode 100644
20 index 0000000..02cf312
21 --- /dev/null
22 +++ b/sci-libs/openmm/ChangeLog
23 @@ -0,0 +1,9 @@
24 +# ChangeLog for sci-libs/openmm
25 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: $
27 +
28 +*openmm-4.1.1 (27 Nov 2012)
29 +
30 + 27 Nov 2012; Christoph Junghans <ottxor@g.o> +metadata.xml,
31 + +openmm-4.1.1.ebuild:
32 + re-added for gromacs
33
34 diff --git a/sci-libs/openmm/metadata.xml b/sci-libs/openmm/metadata.xml
35 new file mode 100644
36 index 0000000..e77ce3b
37 --- /dev/null
38 +++ b/sci-libs/openmm/metadata.xml
39 @@ -0,0 +1,13 @@
40 +<?xml version="1.0" encoding="UTF-8"?>
41 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
42 +<pkgmetadata>
43 + <herd>sci-chemistry</herd>
44 + <maintainer>
45 + <email>ottxor@g.o</email>
46 + <name>Christoph Junghans</name>
47 + </maintainer>
48 + <use>
49 + <flag name="cuda">enable cuda back-end</flag>
50 + <flag name="opencl">enable opencl back-end</flag>
51 + </use>
52 +</pkgmetadata>
53
54 diff --git a/sci-libs/openmm/openmm-4.1.1.ebuild b/sci-libs/openmm/openmm-4.1.1.ebuild
55 new file mode 100644
56 index 0000000..6f9adec
57 --- /dev/null
58 +++ b/sci-libs/openmm/openmm-4.1.1.ebuild
59 @@ -0,0 +1,41 @@
60 +# Copyright 1999-2012 Gentoo Foundation
61 +# Distributed under the terms of the GNU General Public License v2
62 +# $Header: $
63 +
64 +EAPI="5"
65 +
66 +inherit cmake-utils
67 +
68 +MY_P="${PN^^[om]}${PV}-Source"
69 +DESCRIPTION="provides tools for modern molecular modeling simulation"
70 +HOMEPAGE="https://simtk.org/home/openmm"
71 +SRC_URI="${MY_P}.zip"
72 +
73 +LICENSE="GPL-3"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ~x86"
76 +IUSE="cuda opencl"
77 +
78 +RDEPEND="
79 + cuda? ( dev-util/nvidia-cuda-toolkit )
80 + opencl? ( virtual/opencl )"
81 +DEPEND="${RDEPEND}
82 + dev-util/cmake"
83 +
84 +RESTRICT="fetch"
85 +S="${WORKDIR}/${MY_P}"
86 +
87 +pkg_nofetch(){
88 + einfo "Please download ${SRC_URI} from"
89 + einfo "${HOMEPAGE}"
90 + einfo "and put it into ${DISTDIR}"
91 +}
92 +
93 +src_configure() {
94 + mycmakeargs=(
95 + $(cmake-utils_use opencl OPENMM_BUILD_RPMD_PLUGIN)
96 + $(cmake-utils_use opencl OPENMM_BUILD_PYTHON_WRAPPERS)
97 + ) # workarounds for broken autodetection
98 +
99 + cmake-utils_src_configure
100 +}