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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Apr 3 16:55:06 2015 UTC (5 years, 3 months ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
sci-libs/openmm: removed (bug #536406)

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-r2.ebuild,v 1.5 2013/07/07 10:21:20 ago Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=( python{2_6,2_7} )
8
9 inherit cmake-utils cuda multilib 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
37 #475002
38 find . -name CMakeLists.txt -exec sed -i \
39 -e "/INSTALL/s@\(DESTINATION\|RUNTIME\)\(.*\)lib@\1\2$(get_libdir)@" \
40 -e "/INSTALL_TARGETS/s@lib\(.*RUNTIME\)@$(get_libdir)\1@" \
41 {} + || die
42
43 default
44 }
45
46 src_configure() {
47 mycmakeargs=(
48 $(cmake-utils_use cuda OPENMM_BUILD_CUDA_LIB)
49 $(cmake-utils_use opencl OPENMM_BUILD_OPENCL_LIB)
50 $(cmake-utils_use doc OPENMM_GENERATE_API_DOCS)
51 $(cmake-utils_use wrappers OPENMM_BUILD_C_AND_FORTRAN_WRAPPERS)
52 $(cmake-utils_use wrappers OPENMM_BUILD_PYTHON_WRAPPERS)
53 )
54
55 cmake-utils_src_configure
56 }
57
58 src_install() {
59 cmake-utils_src_install
60
61 if use doc; then
62 dodoc "${ED}"/usr/docs/*.pdf
63 dohtml -r "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
64 fi
65 rm -f "${ED}"/usr/docs/*.pdf
66 rm -rf "${ED}"/usr/docs/*.html "${ED}"/usr/docs/api-*
67 rmdir "${ED}"/usr/docs || die
68
69 if use examples; then
70 insinto /usr/share/"${PN}"
71 doins -r "${ED}"/usr/examples
72 fi
73 rm -rf "${ED}"/usr/examples
74
75 rm -rf "${ED}"/usr/licenses
76 }

  ViewVC Help
Powered by ViewVC 1.1.20