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

Contents of /sci-libs/openmm/openmm-5.0.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-5.0.ebuild,v 1.1 2013/02/05 05:51:44 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 )
46
47 cmake-utils_src_configure
48 }
49
50 src_install() {
51 cmake-utils_src_install
52
53 if use doc; then
54 dodoc "${ED}"/usr/docs/*.pdf
55 dohtml -r "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
56 fi
57 rm -f "${ED}"/usr/docs/*.pdf
58 rm -rf "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
59 rmdir "${ED}"/usr/docs || die
60
61 if use examples; then
62 insinto /usr/share/"${PN}"
63 doins -r "${ED}"/usr/examples
64 fi
65 rm -rf "${ED}"/usr/examples
66
67 rm -rf "${ED}"/usr/licenses
68 }

  ViewVC Help
Powered by ViewVC 1.1.20