/[gentoo-x86]/sci-astronomy/casacore/casacore-1.4.0.ebuild
Gentoo

Contents of /sci-astronomy/casacore/casacore-1.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Aug 5 14:42:12 2012 UTC (9 months, 2 weeks ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
keyword amd64-linux, x86-linux, removed old

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

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-astronomy/casacore/casacore-1.4.0.ebuild,v 1.1 2012/05/11 21:51:50 bicatali Exp $
4
5 EAPI=4
6
7 inherit cmake-utils eutils toolchain-funcs fortran-2
8
9 DESCRIPTION="Core libraries for the Common Astronomy Software Applications"
10 HOMEPAGE="http://code.google.com/p/casacore/"
11 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 KEYWORDS="~amd64 ~x86"
15 SLOT="0"
16 IUSE="doc fftw hdf5 openmp threads test"
17
18 RDEPEND="sci-libs/cfitsio
19 sci-astronomy/wcslib
20 sys-libs/readline
21 virtual/blas
22 virtual/fortran
23 virtual/lapack
24 hdf5? ( sci-libs/hdf5 )
25 fftw? ( >=sci-libs/fftw-3 )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 doc? ( app-doc/doxygen )"
29
30 PATCHES=( "${FILESDIR}"/1.3.0-{implicits,libdir}.patch )
31
32 pkg_setup() {
33 if [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
34 ewarn "You are using gcc but without OpenMP capabilities"
35 die "Need an OpenMP capable compiler"
36 fi
37 fortran-2_pkg_setup
38 }
39
40 src_configure() {
41 has_version sci-libs/hdf5[mpi] && export CXX=mpicxx
42 mycmakeargs+=(
43 -DENABLE_SHARED=ON
44 -DDATA_DIR="${EPREFIX}/usr/share/casacore/data"
45 $(cmake-utils_use_build test TESTING)
46 $(cmake-utils_use_use fftw FFTW3)
47 $(cmake-utils_use_use hdf5 HDF5)
48 $(cmake-utils_use_use threads THREADS)
49 $(cmake-utils_use_use openmp OPENMP)
50 )
51 cmake-utils_src_configure
52 }
53
54 src_compile() {
55 cmake-utils_src_compile
56 use doc && doxygen doxygen.cfg
57 }
58
59 src_install(){
60 cmake-utils_src_install
61 use doc && dohtml -r doc/html
62 }

  ViewVC Help
Powered by ViewVC 1.1.13