/[gentoo-x86]/sci-chemistry/votca-csg/votca-csg-1.2.3.ebuild
Gentoo

Contents of /sci-chemistry/votca-csg/votca-csg-1.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 27 03:36:51 2013 UTC (2 months, 3 weeks ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
fix broken dep

(Portage version: 2.1.11.50/cvs/Linux x86_64, unsigned Manifest commit)

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-chemistry/votca-csg/votca-csg-1.2.3.ebuild,v 1.2 2012/12/26 23:23:45 ottxor Exp $
4
5 EAPI=4
6
7 inherit bash-completion-r1 cmake-utils multilib
8
9 IUSE="doc examples extras +gromacs +system-boost"
10 PDEPEND="extras? ( =sci-chemistry/votca-csgapps-${PV} )"
11 if [ "${PV}" != "9999" ]; then
12 SRC_URI="http://votca.googlecode.com/files/${PF}.tar.gz
13 doc? ( http://votca.googlecode.com/files/${PN}-manual-${PV}.pdf )
14 examples? ( http://votca.googlecode.com/files/${PN}-tutorials-${PV}.tar.gz )"
15 RESTRICT="primaryuri"
16 else
17 SRC_URI=""
18 inherit mercurial
19 EHG_REPO_URI="https://csg.votca.googlecode.com/hg"
20 PDEPEND="${PDEPEND} doc? ( =app-doc/${PN}-manual-${PV} )
21 examples? ( =sci-chemistry/${PN}-tutorials-${PV} )"
22 fi
23
24 DESCRIPTION="Votca coarse-graining engine"
25 HOMEPAGE="http://www.votca.org"
26
27 LICENSE="Apache-2.0"
28 SLOT="0"
29 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
30
31 RDEPEND="~sci-libs/votca-tools-${PV}[system-boost=]
32 gromacs? ( sci-chemistry/gromacs )
33 dev-lang/perl
34 app-shells/bash"
35
36 DEPEND="${RDEPEND}
37 doc? ( || ( <app-doc/doxygen-1.7.6.1[-nodot] >=app-doc/doxygen-1.7.6.1[dot] ) )
38 >=app-text/txt2tags-2.5
39 virtual/pkgconfig"
40
41 DOCS=(README NOTICE ChangeLog)
42
43 src_configure() {
44 local GMX_DEV="OFF" GMX_DOUBLE="OFF" extra
45
46 if use gromacs; then
47 has_version =sci-chemistry/gromacs-9999 && GMX_DEV="ON"
48 has_version sci-chemistry/gromacs[double-precision] && GMX_DOUBLE="ON"
49 fi
50
51 #to create man pages, build tree binaries are executed (bug #398437)
52 [[ ${CHOST} = *-darwin* ]] && \
53 extra+=" -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF"
54
55 mycmakeargs=(
56 $(cmake-utils_use system-boost EXTERNAL_BOOST)
57 $(cmake-utils_use_with gromacs GMX)
58 -DWITH_GMX_DEVEL="${GMX_DEV}"
59 -DGMX_DOUBLE="${GMX_DOUBLE}"
60 ${extra}
61 -DWITH_RC_FILES=OFF
62 -DLIB=$(get_libdir)
63 )
64 cmake-utils_src_configure
65 }
66
67 src_install() {
68 newbashcomp scripts/csg-completion.bash ${PN}
69 cmake-utils_src_install
70 if use doc; then
71 if [ -n "${PV##*9999}" ]; then
72 dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
73 fi
74 cd "${CMAKE_BUILD_DIR}" || die
75 cd share/doc || die
76 doxygen || die
77 dohtml -r html/*
78 fi
79 if use examples && [ -n "${PV##*9999}" ]; then
80 insinto "/usr/share/doc/${PF}/tutorials"
81 docompress -x "/usr/share/doc/${PF}/tutorials"
82 doins -r "${WORKDIR}/${PN}-tutorials-${PV}"/*
83 fi
84 }
85
86 pkg_postinst() {
87 einfo
88 einfo "Please read and cite:"
89 einfo "VOTCA, J. Chem. Theory Comput. 5, 3211 (2009). "
90 einfo "http://dx.doi.org/10.1021/ct900369w"
91 einfo
92 }

  ViewVC Help
Powered by ViewVC 1.1.13