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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jun 27 23:06:50 2013 UTC (7 years ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
fixed multilib install (bug #475002)

(Portage version: 2.2.0_alpha185/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.1-r1.ebuild,v 1.1 2013/06/25 23:51:19 ottxor Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=( python{2_6,2_7} )
8
9 inherit cmake-utils cuda python-any-r1
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? (
27 dev-cpp/gccxml
28 virtual/jre
29 ${PYTHON_DEPS}
30 app-doc/doxygen )" # wrappers need doxygen #470706
31
32 S="${WORKDIR}/${MY_P}"
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 wrappers OPENMM_BUILD_PYTHON_WRAPPERS)
46 )
47
48 cmake-utils_src_configure
49 }
50
51 src_install() {
52 cmake-utils_src_install
53
54 if use doc; then
55 dodoc "${ED}"/usr/docs/*.pdf
56 dohtml -r "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
57 fi
58 rm -f "${ED}"/usr/docs/*.pdf
59 rm -rf "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
60 rmdir "${ED}"/usr/docs || die
61
62 if use examples; then
63 insinto /usr/share/"${PN}"
64 doins -r "${ED}"/usr/examples
65 fi
66 rm -rf "${ED}"/usr/examples
67
68 rm -rf "${ED}"/usr/licenses
69 }

  ViewVC Help
Powered by ViewVC 1.1.20