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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Aug 17 03:13:10 2012 UTC (23 months, 1 week ago) by ottxor
Branch: MAIN
version bump

(Portage version: 2.2.0_alpha121/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.5 2012/05/04 08:22:49 jdhore 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 DOCS=( NOTICE )
41
42 src_prepare() {
43 use gsl || ewarn "Disabling gsl will lead to reduced functionality"
44 use fftw || ewarn "Disabling fftw will lead to reduced functionality"
45
46 #remove bundled libs
47 if use system-boost; then
48 rm -rf src/libboost
49 fi
50 }
51
52 src_configure() {
53 mycmakeargs=(
54 $(cmake-utils_use system-boost EXTERNAL_BOOST)
55 $(cmake-utils_use_with gsl GSL)
56 $(cmake-utils_use_with fftw FFTW)
57 $(cmake-utils_use_with sqlite SQLITE3)
58 -DWITH_RC_FILES=OFF
59 -DLIB=$(get_libdir)
60 )
61 cmake-utils_src_configure || die
62 }
63
64 src_install() {
65 cmake-utils_src_install || die
66 if use doc; then
67 cd "${CMAKE_BUILD_DIR}" || die
68 cd share/doc || die
69 doxygen || die
70 dohtml -r html/* || die
71 fi
72 }

  ViewVC Help
Powered by ViewVC 1.1.20