diff options
-rw-r--r-- | sci-libs/cdf/ChangeLog | 19 | ||||
-rw-r--r-- | sci-libs/cdf/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/cdf/cdf-2.7.ebuild | 53 | ||||
-rw-r--r-- | sci-libs/cdf/files/digest-cdf-2.7 | 2 | ||||
-rw-r--r-- | sci-libs/cdf/metadata.xml | 5 |
5 files changed, 83 insertions, 0 deletions
diff --git a/sci-libs/cdf/ChangeLog b/sci-libs/cdf/ChangeLog new file mode 100644 index 000000000000..8a4e37fe050b --- /dev/null +++ b/sci-libs/cdf/ChangeLog @@ -0,0 +1,19 @@ +# ChangeLog for app-sci/cdf +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/ChangeLog,v 1.1 2004/12/28 18:21:40 ribosome Exp $ + +*cdf-2.7 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +cdf-2.7.ebuild: + Moved from app-sci/cdf to sci-libs/cdf. + + 15 Mar 2004; David Holm <dholm@gentoo.org> cdf-2.7.ebuild: + Added to ~ppc. + +*cdf-2.7 (22 Dec 2003) + + 22 Dec 2003; Patrick Kursawe <phosphan@gentoo.org> cdf-2.7.ebuild, + metadata.xml: + Initial import + diff --git a/sci-libs/cdf/Manifest b/sci-libs/cdf/Manifest new file mode 100644 index 000000000000..fda0d941fd82 --- /dev/null +++ b/sci-libs/cdf/Manifest @@ -0,0 +1,4 @@ +MD5 1d2e3a7f2b736cc9d0d3481d34beb10e ChangeLog 403 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 5c464645a3b240573ab262bec0ee9c5e cdf-2.7.ebuild 1572 +MD5 5b499d4b4c0682ebecd2e795aa95bc04 files/digest-cdf-2.7 133 diff --git a/sci-libs/cdf/cdf-2.7.ebuild b/sci-libs/cdf/cdf-2.7.ebuild new file mode 100644 index 000000000000..8bdba10ec8c0 --- /dev/null +++ b/sci-libs/cdf/cdf-2.7.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/cdf-2.7.ebuild,v 1.1 2004/12/28 18:21:40 ribosome Exp $ + +MY_P="${P/-}" +MY_P="${MY_P/.}" + +DESCRIPTION="CDF library and toolkit for storing, manipulating, and accessing multi-dimensional data sets" +HOMEPAGE="http://nssdc.gsfc.nasa.gov/cdf/cdf_home.html" +SRC_URI="ftp://nssdcftp.gsfc.nasa.gov/standards/cdf/dist/${MY_P}/unix/${MY_P}-dist-cdf.tar.gz + java? ( ftp://nssdcftp.gsfc.nasa.gov/standards/cdf/dist/${MY_P}/unix/${MY_P}-dist-java.tar.gz )" +LICENSE="CDF" +SLOT="0" +KEYWORDS="x86 ~ppc" +IUSE="ncurses java" + +RDEPEND="ncurses? ( sys-libs/ncurses )" +DEPEND="${RDEPEND} + java? ( virtual/jdk + dev-java/java-config )" + +S=${WORKDIR}/${MY_P}-dist + +src_compile() { + local myconf + if use ncurses; then + myconf="CURSES=yes" + else + myconf="CURSES=no" + fi + emake OS=linux ENV=gnu ${myconf} all || die "make failed" + make test || die "test failed" + if use java; then + export CDF_BASE="${S}" + export CDF_LIB="${S}/src/lib" + cd cdfjava/jni + cc -c cdfNativeLibrary.c -I${CDF_BASE}/src/include \ + -I$(java-config -O)/include -I$(java-config -O)/include/linux \ + -o cdfNativeLibrary.o || die "cc failed" + ld -shared cdfNativeLibrary.o -L${CDF_LIB} -lcdf \ + -o ../lib/libcdfNativeLibrary.so -lc -lm || die "ld failed" + fi +} + +src_install() { + make INSTALLDIR="${D}/usr" install || die "install failed" + if use java; then + cd ${S}/cdfjava + dolib lib/libcdfNativeLibrary.so + insinto /usr/share/cdf + doins */*.jar + fi +} diff --git a/sci-libs/cdf/files/digest-cdf-2.7 b/sci-libs/cdf/files/digest-cdf-2.7 new file mode 100644 index 000000000000..4fdacdb0e0cb --- /dev/null +++ b/sci-libs/cdf/files/digest-cdf-2.7 @@ -0,0 +1,2 @@ +MD5 1b95b51f54a0bb787a97aa733381f7a9 cdf27-dist-cdf.tar.gz 872734 +MD5 c7803f13511a7c2753fdcab45a4e6bee cdf27-dist-java.tar.gz 552932 diff --git a/sci-libs/cdf/metadata.xml b/sci-libs/cdf/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-libs/cdf/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +</pkgmetadata> |