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

Contents of /sci-libs/openmm/openmm-5.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jun 25 23:51:19 2013 UTC (7 years ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
clean up + fix depend (bug #474720)

(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.1.ebuild,v 1.1 2013/05/22 02:09:22 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? (
27 dev-cpp/gccxml virtual/jre
28 app-doc/doxygen )" # wrappers need doxygen #470706
29
30 S="${WORKDIR}/${MY_P}"
31
32 pkg_setup() {
33 python_set_active_version 2
34 }
35
36 src_prepare() {
37 use cuda && cuda_src_prepare
38 default
39 }
40
41 src_configure() {
42 mycmakeargs=(
43 $(cmake-utils_use cuda OPENMM_BUILD_CUDA_LIB)
44 $(cmake-utils_use opencl OPENMM_BUILD_OPENCL_LIB)
45 $(cmake-utils_use doc OPENMM_GENERATE_API_DOCS)
46 $(cmake-utils_use wrappers OPENMM_BUILD_C_AND_FORTRAN_WRAPPERS)
47 )
48
49 cmake-utils_src_configure
50 }
51
52 src_install() {
53 cmake-utils_src_install
54
55 if use doc; then
56 dodoc "${ED}"/usr/docs/*.pdf
57 dohtml -r "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
58 fi
59 rm -f "${ED}"/usr/docs/*.pdf
60 rm -rf "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
61 rmdir "${ED}"/usr/docs || die
62
63 if use examples; then
64 insinto /usr/share/"${PN}"
65 doins -r "${ED}"/usr/examples
66 fi
67 rm -rf "${ED}"/usr/examples
68
69 rm -rf "${ED}"/usr/licenses
70 }

  ViewVC Help
Powered by ViewVC 1.1.20