/[gentoo-x86]/app-sci/cdf/cdf-2.7.ebuild
Gentoo

Contents of /app-sci/cdf/cdf-2.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Dec 28 18:20:52 2004 UTC (14 years, 9 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Moving to sci-libs/cdf

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/cdf/cdf-2.7.ebuild,v 1.5 2004/06/24 21:54:34 agriffis Exp $
4
5 MY_P="${P/-}"
6 MY_P="${MY_P/.}"
7
8 DESCRIPTION="CDF library and toolkit for storing, manipulating, and accessing multi-dimensional data sets"
9 HOMEPAGE="http://nssdc.gsfc.nasa.gov/cdf/cdf_home.html"
10 SRC_URI="ftp://nssdcftp.gsfc.nasa.gov/standards/cdf/dist/${MY_P}/unix/${MY_P}-dist-cdf.tar.gz
11 java? ( ftp://nssdcftp.gsfc.nasa.gov/standards/cdf/dist/${MY_P}/unix/${MY_P}-dist-java.tar.gz )"
12 LICENSE="CDF"
13 SLOT="0"
14 KEYWORDS="x86 ~ppc"
15 IUSE="ncurses java"
16
17 RDEPEND="ncurses? ( sys-libs/ncurses )"
18 DEPEND="${RDEPEND}
19 java? ( virtual/jdk
20 dev-java/java-config )"
21
22 S=${WORKDIR}/${MY_P}-dist
23
24 src_compile() {
25 local myconf
26 if use ncurses; then
27 myconf="CURSES=yes"
28 else
29 myconf="CURSES=no"
30 fi
31 emake OS=linux ENV=gnu ${myconf} all || die "make failed"
32 make test || die "test failed"
33 if use java; then
34 export CDF_BASE="${S}"
35 export CDF_LIB="${S}/src/lib"
36 cd cdfjava/jni
37 cc -c cdfNativeLibrary.c -I${CDF_BASE}/src/include \
38 -I$(java-config -O)/include -I$(java-config -O)/include/linux \
39 -o cdfNativeLibrary.o || die "cc failed"
40 ld -shared cdfNativeLibrary.o -L${CDF_LIB} -lcdf \
41 -o ../lib/libcdfNativeLibrary.so -lc -lm || die "ld failed"
42 fi
43 }
44
45 src_install() {
46 make INSTALLDIR="${D}/usr" install || die "install failed"
47 if use java; then
48 cd ${S}/cdfjava
49 dolib lib/libcdfNativeLibrary.so
50 insinto /usr/share/cdf
51 doins */*.jar
52 fi
53 }

  ViewVC Help
Powered by ViewVC 1.1.20