/[gentoo-x86]/sci-libs/openmm/openmm-4.1.1-r1.ebuild
Gentoo

Contents of /sci-libs/openmm/openmm-4.1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed May 22 00:59:33 2013 UTC (7 years, 1 month ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key C2000586)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/openmm/openmm-4.1.1-r1.ebuild,v 1.1 2013/02/05 05:44:25 ottxor Exp $
4
5 EAPI="5"
6
7 PYTHON_DEPEND="2:2.6"
8
9 inherit cmake-utils cuda python
10
11 MY_P="${PN^^[om]}${PV}-Source"
12 DESCRIPTION="provides tools for modern molecular modeling simulation"
13 HOMEPAGE="https://simtk.org/home/openmm"
14 SRC_URI="mirror://gentoo/${MY_P}.zip"
15
16 LICENSE="MIT LGPL-2.1+ BSD RU-BSD"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="cuda doc examples opencl wrappers"
20
21 RDEPEND="
22 cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1 )
23 opencl? ( virtual/opencl )"
24 DEPEND="${RDEPEND}
25 doc? ( app-doc/doxygen )
26 wrappers? ( dev-cpp/gccxml virtual/jre )"
27
28 S="${WORKDIR}/${MY_P}"
29
30 pkg_setup() {
31 python_set_active_version 2
32 }
33
34 src_prepare() {
35 use cuda && cuda_src_prepare
36 default
37 }
38
39 src_configure() {
40 mycmakeargs=(
41 $(cmake-utils_use cuda OPENMM_BUILD_CUDA_LIB)
42 $(cmake-utils_use opencl OPENMM_BUILD_OPENCL_LIB)
43 $(cmake-utils_use doc OPENMM_GENERATE_API_DOCS)
44 $(cmake-utils_use wrappers OPENMM_BUILD_C_AND_FORTRAN_WRAPPERS)
45 $(cmake-utils_use !cuda CUDA_BUILD_CUBIN)
46 $(cmake-utils_use opencl OPENMM_BUILD_RPMD_PLUGIN)
47 $(cmake-utils_use opencl OPENMM_BUILD_PYTHON_WRAPPERS)
48 ) # last 3 options are workarounds for broken build system
49
50 cmake-utils_src_configure
51 }
52
53 src_install() {
54 cmake-utils_src_install
55
56 if use doc; then
57 dodoc "${ED}"/usr/docs/*.pdf
58 dohtml -r "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
59 fi
60 rm -f "${ED}"/usr/docs/*.pdf
61 rm -rf "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
62 rmdir "${ED}"/usr/docs || die
63
64 if use examples; then
65 insinto /usr/share/"${PN}"
66 doins -r "${ED}"/usr/examples
67 fi
68 rm -rf "${ED}"/usr/examples
69
70 rm -rf "${ED}"/usr/licenses
71 }

  ViewVC Help
Powered by ViewVC 1.1.20