/[gentoo-x86]/sci-libs/votca-tools/votca-tools-1.2.2.ebuild
Gentoo

Contents of /sci-libs/votca-tools/votca-tools-1.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri May 4 08:22:49 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.4: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/votca-tools/votca-tools-1.2.2.ebuild,v 1.4 2012/02/23 17:03:25 xarthisius Exp $
4
5 EAPI="3"
6
7 inherit cmake-utils eutils multilib
8
9 if [ "${PV}" != "9999" ]; then
10 SRC_URI="system-boost? ( http://votca.googlecode.com/files/${PF}_pristine.tar.gz )
11 !system-boost? ( http://votca.googlecode.com/files/${PF}.tar.gz )"
12 RESTRICT="primaryuri"
13 else
14 SRC_URI=""
15 inherit mercurial
16 EHG_REPO_URI="https://tools.votca.googlecode.com/hg"
17 EHG_REVISION="default"
18 S="${WORKDIR}/${EHG_REPO_URI##*/}"
19 fi
20
21 DESCRIPTION="Votca tools library"
22 HOMEPAGE="http://www.votca.org"
23
24 LICENSE="Apache-2.0"
25 SLOT="0"
26 KEYWORDS="amd64 x86 ~amd64-linux ~x86-macos"
27 IUSE="doc +fftw +gsl sqlite +system-boost"
28
29 RDEPEND="fftw? ( sci-libs/fftw:3.0 )
30 dev-libs/expat
31 gsl? ( sci-libs/gsl )
32 system-boost? ( dev-libs/boost )
33 sqlite? ( dev-db/sqlite:3 )"
34
35 DEPEND="${RDEPEND}
36 doc? ( || ( <app-doc/doxygen-1.7.6.1[-nodot] >=app-doc/doxygen-1.7.6.1[dot] ) )
37 >=app-text/txt2tags-2.5
38 virtual/pkgconfig"
39
40 src_prepare() {
41 use gsl || ewarn "Disabling gsl will lead to reduced functionality"
42 use fftw || ewarn "Disabling fftw will lead to reduced functionality"
43
44 #remove bundled libs
45 if use system-boost; then
46 rm -rf src/libboost
47 fi
48 }
49
50 src_configure() {
51 mycmakeargs=(
52 $(cmake-utils_use system-boost EXTERNAL_BOOST)
53 $(cmake-utils_use_with gsl GSL)
54 $(cmake-utils_use_with fftw FFTW)
55 $(cmake-utils_use_with sqlite SQLITE3)
56 -DWITH_RC_FILES=OFF
57 -DLIB=$(get_libdir)
58 )
59 cmake-utils_src_configure || die
60 }
61
62 src_install() {
63 DOCS=(${CMAKE_BUILD_DIR}/CHANGELOG NOTICE)
64 cmake-utils_src_install || die
65 if use doc; then
66 cd "${CMAKE_BUILD_DIR}" || die
67 cd share/doc || die
68 doxygen || die
69 dohtml -r html/* || die
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20