+++ /dev/null
-# ChangeLog for dev-java/fits
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-*fits-1.06.0 (06 Oct 2011)
-
- 06 Oct 2011; W. Trevor King <wking@drexel.edu> +fits-1.06.0.ebuild,
- +files/build.xml, +files/README.Gentoo,
- +files/01-Use-getResource-to-access-CompressTest-data-for-unit.patch,
- +files/02-Update-ArrayFuncsTest.java-to-JUnit-4.patch,
- +metadata.xml:
- Initial ebuild.
+++ /dev/null
-AUX 01-Use-getResource-to-access-CompressTest-data-for-unit.patch 4661 RMD160 aaa090107ab67588ad0e13de7c43c2a4588441b4 SHA1 48b310f6e10c1e091b02ef94026f0bf4e31a75b5 SHA256 eb121342dfba55ec3bb7988c0b91074b581e89be87262aee3ced25ffd3d97cff
-AUX 02-Update-ArrayFuncsTest.java-to-JUnit-4.patch 7206 RMD160 96a7f0b30a8f215e5895d9c4c6f7c6ed9ad61602 SHA1 5edfe76d0abb7f91335a953239ad4016c21a1f84 SHA256 3d62e65233b4893b96e806afb6a9141402ffacbd134c9766e80c8a3f5e66d6d3
-AUX README.Gentoo 1872 RMD160 d1dd74e452a146eda2a7cbd2a77ebb56a553306e SHA1 a808f13153d79e45312981bdd1b70db9831cfecf SHA256 eff5ce2b235af399f751566aa395ca7b803b7314e3adb652f7ae395653ac8628
-AUX build.xml 3002 RMD160 ff42a54d09cbe083f0b4c13a334831daee87f439 SHA1 f6a6c3842255e3f1c372e42b2b669855028fc2c6 SHA256 a8a7fcee54ea0f2ac49f3c3503b310711b811afbb639e8f96c9a0b5010b06ada
-DIST fits-1.06.0-src.jar 174797 RMD160 af8bfea7039bc5ab9b3ad32be6d67f9145066005 SHA1 763c81042b8586ddba96e44a94fbd0d9e68217e4 SHA256 924c39f98114720917f2914e886d9f87050632a48769c289b0dffbbb646b7fcf
-EBUILD fits-1.06.0.ebuild 1392 RMD160 82941a2f83bbbc9afc300631db2151beafc29144 SHA1 c185d4a3ba44e19423fdbafb60c96bd14c3ae267 SHA256 801f403c0b72b027838f6d140d72cde9a8dd8d62225dd403636ba8e805caa01e
-MISC ChangeLog 418 RMD160 97fe025c39bcfc9da3c7a4697fc241ffa2135fc8 SHA1 12b1fa785671ced034b7107bc61da6861f665e4f SHA256 0246d12afba4f365370399c6d360fa1344a73dd20c1ef03dbf15395b32a053a6
-MISC metadata.xml 247 RMD160 6735f3a5dd2d7a2b70589d1693f35d54291b7147 SHA1 c015969fe50967340dd050a44cb9f8a30b5e34a5 SHA256 9e65060e5f9d0a50d28c7a69d9c27fed6c3037fdd3e420cc276627fde2794f72
+++ /dev/null
-diff --git a/src/nom/tam/fits/test/CompressTest.java b/src/nom/tam/fits/test/CompressTest.java
-index dd3aad0..c6d953e 100644
---- a/src/nom/tam/fits/test/CompressTest.java
-+++ b/src/nom/tam/fits/test/CompressTest.java
-@@ -54,58 +54,57 @@ public class CompressTest {
-
- @Test
- public void testStream() throws Exception {
-- InputStream is;
-+ String is;
-
-- is = new FileInputStream("test.fits");
-+ is = "test.fits";
- assertEquals("Stream1", 300, streamRead(is, false, false));
-
-- is = new FileInputStream("test.fits.Z");
-+ is = "test.fits.Z";
- assertEquals("Stream2", 300, streamRead(is, false, false));
-
-- is = new FileInputStream("test.fits.gz");
-+ is = "test.fits.gz";
- assertEquals("Stream3", 300, streamRead(is, false, false));
-
-- is = new FileInputStream("test.fits");
-+ is = "test.fits";
- assertEquals("Stream4", 300, streamRead(is, false, true));
-
-- is = new FileInputStream("test.fits.Z");
-+ is = "test.fits.Z";
- assertEquals("Stream5", 300, streamRead(is, false, true));
-
-- is = new FileInputStream("test.fits.gz");
-+ is = "test.fits.gz";
- assertEquals("Stream6", 300, streamRead(is, false, true));
-
--
-- is = new FileInputStream("test.fits.Z");
-+ is = "test.fits.Z";
- assertEquals("Stream7", 300, streamRead(is, true, true));
-
-- is = new FileInputStream("test.fits.gz");
-+ is = "test.fits.gz";
- assertEquals("Stream8", 300, streamRead(is, true, true));
-
-- is = new FileInputStream("test.fits.bz2");
-+ is = "test.fits.bz2";
- assertEquals("Stream9", 300, streamRead(is, true, true));
- }
-
- @Test
- public void testFile() throws Exception {
-- File is = new File("test.fits");
-+ String is = "test.fits";
- assertEquals("File1", 300, fileRead(is, false, false));
-
-- is = new File("test.fits.Z");
-+ is = "test.fits.Z";
- assertEquals("File2", 300, fileRead(is, false, false));
-
-- is = new File("test.fits.gz");
-+ is = "test.fits.gz";
- assertEquals("File3", 300, fileRead(is, false, false));
-
-- is = new File("test.fits");
-+ is = "test.fits";
- assertEquals("File4", 300, fileRead(is, false, true));
-
-- is = new File("test.fits.Z");
-+ is = "test.fits.Z";
- assertEquals("File7", 300, fileRead(is, true, true));
-
-- is = new File("test.fits.gz");
-+ is = "test.fits.gz";
- assertEquals("File8", 300, fileRead(is, true, true));
-
-- is = new File("test.fits.bz2");
-+ is = "test.fits.bz2";
- assertEquals("File9", 300, fileRead(is, true, true));
- }
-
-@@ -131,7 +130,6 @@ public class CompressTest {
-
- is = "test.fits.bz2";
- assertEquals("String8", 300, stringRead(is, true, true));
--
- }
-
- @Test
-@@ -158,13 +156,9 @@ public class CompressTest {
- assertEquals("String8", 300, urlRead(is, true, true));
- }
-
-- int urlRead(String is, boolean comp, boolean useComp)
-+ int urlRead(String filename, boolean comp, boolean useComp)
- throws Exception {
-- File fil = new File(is);
--
-- String path = fil.getCanonicalPath();
-- URL u = new URL("file://" + path);
--
-+ URL u = CompressTest.class.getResource(filename);
- Fits f;
- if (useComp) {
- f = new Fits(u, comp);
-@@ -176,8 +170,9 @@ public class CompressTest {
- return total(data);
- }
-
-- int streamRead(InputStream is, boolean comp, boolean useComp)
-+ int streamRead(String filename, boolean comp, boolean useComp)
- throws Exception {
-+ InputStream is = CompressTest.class.getResourceAsStream(filename);
- Fits f;
- if (useComp) {
- f = new Fits(is, comp);
-@@ -190,8 +185,9 @@ public class CompressTest {
- return total(data);
- }
-
-- int fileRead(File is, boolean comp, boolean useComp)
-+ int fileRead(String filename, boolean comp, boolean useComp)
- throws Exception {
-+ File is = new File(CompressTest.class.getResource(filename).getPath());
- Fits f;
- if (useComp) {
- f = new Fits(is, comp);
-@@ -203,8 +199,9 @@ public class CompressTest {
- return total(data);
- }
-
-- int stringRead(String is, boolean comp, boolean useComp)
-+ int stringRead(String filename, boolean comp, boolean useComp)
- throws Exception {
-+ String is = CompressTest.class.getResource(filename).getPath();
- Fits f;
- if (useComp) {
- f = new Fits(is, comp);
+++ /dev/null
-From b9edd6a86e66d354b0c1d010125246d8359cbb37 Mon Sep 17 00:00:00 2001
-From: W. Trevor King <wking@drexel.edu>
-Date: Fri, 7 Oct 2011 03:44:18 -0400
-Subject: [PATCH 7/8] Update ArrayFuncsTest.java to JUnit-4.
-
----
- src/nom/tam/util/test/ArrayFuncsTest.java | 44 +++++++++++++++++++---------
- 1 files changed, 30 insertions(+), 14 deletions(-)
-
-diff --git a/src/nom/tam/util/test/ArrayFuncsTest.java b/src/nom/tam/util/test/ArrayFuncsTest.java
-index df5efb0..7ad8e51 100644
---- a/src/nom/tam/util/test/ArrayFuncsTest.java
-+++ b/src/nom/tam/util/test/ArrayFuncsTest.java
-@@ -6,6 +6,12 @@
- */\r
- package nom.tam.util.test;\r
- \r
-+import org.junit.Test;\r
-+import static org.junit.Assert.assertEquals;\r
-+import static org.junit.Assert.assertTrue;\r
-+import static org.junit.Assert.assertFalse;\r
-+import static org.junit.Assert.assertSame;\r
-+import static org.junit.Assert.assertNotSame;\r
- import junit.framework.*;\r
- import java.lang.reflect.*;\r
- import java.util.Arrays;\r
-@@ -15,21 +21,12 @@ import nom.tam.util.ArrayFuncs;
- *\r
- * @author Thomas McGlynn\r
- */\r
--public class ArrayFuncsTest extends TestCase {\r
--\r
-- public ArrayFuncsTest(String testName) {\r
-- super(testName);\r
-- }\r
--\r
-- protected void setUp() throws Exception {\r
-- }\r
--\r
-- protected void tearDown() throws Exception {\r
-- }\r
-+public class ArrayFuncsTest {\r
- \r
- /**\r
- * Test of computeSize method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testComputeSize() {\r
- System.out.println("computeSize");\r
- \r
-@@ -58,6 +55,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of nElements method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testNElements() {\r
- System.out.println("nElements");\r
- \r
-@@ -72,6 +70,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of deepClone method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testDeepClone() {\r
- int[][] test = {{0, 1}, {2, 3}, {4, 5}};\r
- int[][] result = (int[][]) nom.tam.util.ArrayFuncs.deepClone(test);\r
-@@ -96,6 +95,7 @@ public class ArrayFuncsTest extends TestCase {
- }\r
- \r
- public boolean equals(Object x) {\r
-+ System.out.println("checking equality");\r
- return (x instanceof CloneTest)\r
- && (((CloneTest) x).value == this.value);\r
- }\r
-@@ -104,6 +104,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of genericClone method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testGenericClone() {\r
- System.out.println("genericClone");\r
- \r
-@@ -126,6 +127,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of copyArray method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testCopyArray() {\r
- System.out.println("copyArray");\r
- \r
-@@ -138,6 +140,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of getDimensions method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testGetDimensions() {\r
- System.out.println("getDimensions");\r
- \r
-@@ -157,6 +160,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of getBaseArray method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testGetBaseArray() {\r
- \r
- int[][][] test = new int[2][3][4];\r
-@@ -169,6 +173,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of getBaseClass method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testGetBaseClass() {\r
- System.out.println("getBaseClass");\r
- \r
-@@ -179,6 +184,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of getBaseLength method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testGetBaseLength() {\r
- \r
- assertEquals(ArrayFuncs.getBaseLength(new int[2][3]), 4);\r
-@@ -195,6 +201,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of generateArray method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testGenerateArray() {\r
- System.out.println("generateArray");\r
- \r
-@@ -213,6 +220,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of testPattern method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testTestPattern() {\r
- System.out.println("testPattern");\r
- \r
-@@ -229,6 +237,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of flatten method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testFlatten() {\r
- System.out.println("flatten");\r
- \r
-@@ -241,6 +250,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of curl method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testCurl() {\r
- System.out.println("curl");\r
- \r
-@@ -259,6 +269,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of mimicArray method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testMimicArray() {\r
- System.out.println("mimicArray");\r
- \r
-@@ -273,6 +284,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of convertArray method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testConvertArray() {\r
- System.out.println("convertArray");\r
- \r
-@@ -286,7 +298,7 @@ public class ArrayFuncsTest extends TestCase {
- \r
- newType = int.class;\r
- int[][] ires = (int[][]) ArrayFuncs.convertArray(array, newType, true);\r
-- assertEquals(array, ires);\r
-+ assertSame(array, ires);\r
- \r
- ires = (int[][]) ArrayFuncs.convertArray(array, newType, false);\r
- assertNotSame(array, ires);\r
-@@ -296,6 +308,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of copyInto method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testCopyInto() {\r
- System.out.println("copyInto");\r
- \r
-@@ -304,13 +317,14 @@ public class ArrayFuncsTest extends TestCase {
- \r
- ArrayFuncs.copyInto(x, y);\r
- \r
-- assertEquals((double) x[0][0], y[0][0]);\r
-- assertEquals((double) x[1][2], y[1][2]);\r
-+ assertEquals((double) x[0][0], y[0][0], 0.01);\r
-+ assertEquals((double) x[1][2], y[1][2], 0.01);\r
- }\r
- \r
- /**\r
- * Test of arrayEquals method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testArrayEquals() {\r
- System.out.println("arrayEquals");\r
- \r
-@@ -331,6 +345,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of doubleArrayEquals method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testDoubleArrayEquals() {\r
- \r
- double x[] = {1, 2, 3};\r
-@@ -349,6 +364,7 @@ public class ArrayFuncsTest extends TestCase {
- /**\r
- * Test of floatArrayEquals method, of class nom.tam.util.ArrayFuncs.\r
- */\r
-+ @Test\r
- public void testFloatArrayEquals() {\r
- float x[] = {1f, 2f, 3f};\r
- float y[] = {1f, 2f, 3f};\r
---
-1.7.3.1.104.gc752e
-
+++ /dev/null
-I have been unable to track down a source repository for fits, so this
-ebuild straps a build system onto source unpacked from a source JAR.
-Not the greatest solution, but it's the best I can come up with. I've
-also had trouble figuring out who holds copyright and what the
-licensing terms are. If you find more authoritative information, let
-me know!
-
-Authors (listed with the first release note to mention them):
- Tom McGlynn <thomas.a.mcglynn@nasa.gov> [1,12]
- Jens Knudstrup [2]
- Alan Brighton [2]
- R.J. Mathar [3]
- Jorgo Bakker [3]
- Laurent Michel [3]
- R. Mathar [4]
- Guillame Belanger [4]
- A. Kovacs [5]
- Javier Diaz [6]
- Juan Carlos Segovia [7]
- Thomas Granzer [7]
- L. Michel [8]
- Mark Taylor [9]
- Laurent Bourges [10]
- V. Forchi [11]
-
-From [11]:
-
-> [The] build procedure for FITS library has been changed. The library
-> is now stored as a NetBeans project and the standard NetBeans build
-> script has been modified to generate the fits.jar and fits_src.jar.
-
-
-[1]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v0.9/NOTES/NOTE.v091
-[2]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v0.9/NOTES/NOTE.v093
-[3]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v0.9/NOTES/NOTE.v099
-[4]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v0.9/NOTES/NOTE.v099.1
-[5]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v0.9/NOTES/NOTE.v099.5
-[6]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v1.0/NOTE.v100.1
-[7]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v1.0/NOTE.v101.0
-[8]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v1.0/NOTE.v102.0
-[9]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v1.0/NOTE.v104.0
-[10]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v1.0/NOTE.v105.0
-[11]: http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v1.0/NOTE.v105.1
-[12]: http://asd.gsfc.nasa.gov/Thomas.McGlynn/
+++ /dev/null
-<?xml version="1.0"?>
-<project name="fits" default="all" basedir=".">
- <target name="init" description="Sets build properties">
- <!-- package configuration -->
- <property name="package.version" value="devel"/>
- <!-- directory locations -->
- <property name="src" value="${basedir}/src"/>
- <property name="build" value="${basedir}/build"/>
- <property name="doc" value="${basedir}/doc"/>
- <property name="doc.api" value="${doc}/api"/>
- <!-- external dependencies -->
- <property name="junit.jar" value="junit.jar"/>
- <!-- classpaths -->
- <path id="project.class.path">
- </path>
- <path id="build.class.path">
- <pathelement location="${junit.jar}"/>
- </path>
- <path id="test.class.path">
- <pathelement location="${build}"/>
- </path>
- </target>
- <target name="all" depends="jar,javadoc"
- description="Pseudo-target that builds JAR and Javadoc">
- </target>
- <target name="build" depends="init"
- description="Compiles the classes">
- <mkdir dir="${build}"/>
- <javac destdir="${build}" srcdir="${src}" debug="true"
- deprecation="true" includeantruntime="false">
- <classpath refid="project.class.path"/>
- <classpath refid="build.class.path"/>
- <!--compilerarg line="-Xlint:unchecked"/-->
- </javac>
- <copy todir="${build}">
- <mappedresources>
- <fileset dir="${src}" includes="**/test/test.fits*"/>
- <globmapper from="*" to="*"/>
- </mappedresources>
- </copy>
- </target>
- <target name="test" depends="build">
- <junit>
- <classpath refid="project.class.path" />
- <classpath refid="test.class.path"/>
- <formatter type="brief" usefile="false" />
- <batchtest>
- <fileset dir="${build}">
- <include name="**/test/*.class" />
- <exclude name="**/*$*.class" />
- </fileset>
- </batchtest>
- </junit>
- </target>
- <target name="javadoc" depends="init"
- description="Generates Javadoc API documentation">
- <mkdir dir="${doc.api}"/>
- <javadoc packagenames="*"
- sourcepath="${src}" destdir="${doc.api}"
- author="true" version="true"
- use="true" private="true">
- <classpath refid="project.class.path" />
- <classpath refid="build.class.path"/>
- </javadoc>
- </target>
- <target name="jar" depends="build"
- description="Builds a project JAR file">
- <jar basedir="${build}" jarfile="${build}/fits.jar">
- <manifest>
- <attribute name="Version" value="${package.version}"/>
- </manifest>
- </jar>
- </target>
- <target name="clean" depends="init"
- description="Erase all generated files and dirs">
- <delete dir="${build}" verbose="true"/>
- <delete dir="${doc}/api" verbose="true"/>
- <delete verbose="true">
- <fileset dir="${basedir}" includes="*.fits"/>
- <fileset dir="${basedir}" includes="*.fil"/>
- <fileset dir="${basedir}" includes="*.hdr"/>
- </delete>
- </target>
-</project>
+++ /dev/null
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-JAVA_PKG_IUSE="doc source test"
-inherit eutils java-pkg-2 java-ant-2
-
-DESCRIPTION="Java library for FITS (image format) input/output"
-HOMEPAGE="http://fits.gsfc.nasa.gov/fits_libraries.html#java_tam"
-SRC_URI="http://heasarc.gsfc.nasa.gov/docs/heasarc/${PN}/java/v1.0/v${PV}/fits_src.jar -> ${P}-src.jar"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="~x86"
-IUSE=""
-
-COMMON_DEP="dev-java/junit:4"
-
-RDEPEND=">=virtual/jre-1.5
- ${COMMON_DEP}"
-
-DEPEND=">=virtual/jdk-1.5
- test? (
- dev-java/ant-junit4
- dev-java/hamcrest-core
- )
- ${COMMON_DEP}"
-
-EANT_EXTRA_ARGS="-Dpacakge.version=${PV}"
-EANT_GENTOO_CLASSPATH="junit-4"
-JAVA_ANT_REWRITE_CLASSPATH="true"
-
-src_unpack() {
- mkdir -p "${P}/src"
- cd "${P}/src"
- unpack "${A}"
-}
-
-java_prepare() {
- cd "${WORKDIR}/${P}" || die
- cp "${FILESDIR}"/README.Gentoo . || die
- cp "${FILESDIR}"/build.xml . || die
- epatch "${FILESDIR}"/01-Use-getResource-to-access-CompressTest-data-for-unit.patch
- epatch "${FILESDIR}"/02-Update-ArrayFuncsTest.java-to-JUnit-4.patch
- #rm -rf lib
-}
-
-src_test() {
- ANT_TASKS="ant-junit4" eant test || die
-}
-
-src_install() {
- java-pkg_newjar "build/${PN}.jar" "${PN}.jar"
- use doc && java-pkg_dojavadoc doc/api
- use source && java-pkg_dosrc src/*
- #use examples && java-pkg_doexamples src/java/examples
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd></herd>
- <maintainer>
- <email>wking@drexel.edu</email>
- <name>W. Trevor King</name>
- </maintainer>
-</pkgmetadata>
+++ /dev/null
-# ChangeLog for dev-java/hdf-java
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-*hdf-java-2.7 (07 Jun 2011)
-
- 07 Jun 2011; Kacper Kowalik <xarthisius@gentoo.org> -hdf-java-2.6.1.ebuild,
- -files/hdf-java-2.6.1-shared.patch, +hdf-java-2.7.ebuild,
- +files/hdf-java-2.7-shared.patch:
- Version bump wrt #301049 by Guillaume Horel <guillaume.horel@gmail.com>
-
- 14 Mar 2011; Justin Lecher <jlec@gentoo.org> hdf-java-2.6.1.ebuild:
- Moved media-libs/jpeg -> virtual/jpeg
-
-*hdf-java-2.6.1 (24 Mar 2010)
-
- 24 Mar 2010; Sébastien Fabbro <bicatali@gentoo.org> -hdf-java-2.6.ebuild,
- +hdf-java-2.6.1.ebuild, +files/hdf-java-2.6.1-shared.patch,
- -files/hdf-java-2.6-shared.patch:
- Version bump
-
- 12 Feb 2010; Sébastien Fabbro <bicatali@gentoo.org> hdf-java-2.6.ebuild:
- Removed mpi use flag in favor of checking if hdf5 was built with mpi, see
- bug #302621
-
- 04 Feb 2010; Sébastien Fabbro <bicatali@gentoo.org> hdf-java-2.6.ebuild:
- Added mpi support
-
-*hdf-java-2.6 (22 Jan 2010)
-
- 22 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> +hdf-java-2.6.ebuild,
- +files/hdf-java-2.6-shared.patch, +metadata.xml:
- Initial import. Ebuild initially submitted by Guillaume Horel, bug #301049
-
+++ /dev/null
-AUX 2.7-hdfview.sh 234 RMD160 f6640b9a799b257c71602450bb242a3a2465e93e SHA1 9eb3103dc3cbe9e371e277fedf3a22edaf1f3e8c SHA256 8ac80c7a060230f731e87602dbadb3429b11391ae9b19e36cca926d023c89f65
-AUX 2.7-shared.patch 3399 RMD160 ef3f3ed007d981bc9b364984f6b7b0acb245fcc9 SHA1 69ae21acaa761d884a947a139a3c6548f846ae21 SHA256 a7ab3aac334602eb18cb2d5f21d020727d4ba5452ce121e8c1bac550c816ce3b
-DIST hdf-java-2.7-src.tar 13209600 RMD160 1f0957d6f9e57a6e2e237fab68753d214d60e177 SHA1 d85fc993b8631b1b8da80e3f217e2baa58e78add SHA256 091c999cf53266ba113bef45a83912b12444624cfe0253d5eb565b95e0832706
-EBUILD hdf-java-2.7-r1.ebuild 2787 RMD160 b73d1931464c8ba754d0c4c50cacf714b56c1a41 SHA1 254d67d286b0c644e9f1ed1a5a1f28f263a26119 SHA256 daa79183c59d16d9d2fb3590ec846f3f3a9935bdd71cf65c4152dbacb9b804e1
-MISC ChangeLog 1228 RMD160 6de27fb7bf57b95c298422c9cb0e707d4d81cadf SHA1 579a25bba7cf2dc73c0009cbd76b372d1fb1d753 SHA256 e40f7488a5738e794d7499ca04533d61c2f83a43a10d50ca59064d55b886830e
-MISC metadata.xml 695 RMD160 ba84297087b26c64b36a4a5c269187ddbfe0563f SHA1 bc11c02484fab4059dd22881d4714d7b77caed37 SHA256 97a459b5696f58666686ad9722dd445459352350eef1d568097ac420de4a4954
+++ /dev/null
-#!/bin/sh
-
-JAVA=$(java-config --java)
-LIBRARY=$(java-config --library hdf-java)
-HDFJAVA=/
-export CLASSPATH=$(java-config --classpath hdf-java)
-"$JAVA" -Xmx1000m "-Djava.library.path=$LIBRARY" ncsa.hdf.view.HDFView -root "$HDFJAVA" $*
+++ /dev/null
-Respect LDFLAGS, properly use shared libraries
-
-http://bugs.gentoo.org/show_bug.cgi?id=301049
-
-Patch written by Guillaume Horel <guillaume.horel@gmail.com>
---- a/configure.in
-+++ b/configure.in
-@@ -177,7 +177,7 @@
- *)
- if test -n "$withval" ; then
- z_lib="`echo $withval |cut -f2 -d, -s`"
-- ZLIB=$z_lib"/libz."$LLEXT
-+ ZLIB="-L$z_lib -lz"
- HAVE_ZLIB="yes"
- else
- ZLIB=""
-@@ -211,7 +211,7 @@
- *)
- if test -n "$withval" ; then
- jpeg_lib="`echo $withval |cut -f2 -d, -s`"
-- JPEGLIB=$jpeg_lib"/libjpeg."$LLEXT
-+ JPEGLIB="-L$jpeg_lib -ljpeg"
- dnl AC_MSG_RESULT([jpeg found: $JPEGLIB]);
- HAVE_JPEG="yes"
- else
-@@ -246,7 +246,7 @@
- *)
- if test -n "$withval" ; then
- sz_lib="`echo $withval |cut -f2 -d, -s`"
-- SZLIB=$sz_lib"/libsz."$LLEXT
-+ SZLIB="-L$sz_lib -lsz"
- dnl AC_MSG_RESULT([szlib found: $SZLIB]);
- HAVE_SZIP="yes"
- else
-@@ -302,7 +302,7 @@
- ;;
- esac
- if test -n "$HDF4LIB"; then
-- LIBS="$HDF4LIB/libdf.$LLEXT $HDF4LIB/libmfhdf.$LLEXT $LIBS"
-+ LIBS="-L$HDF4LIB -ldf -lmhdf $LIBS"
- HAVE_HDF4="yes"
- fi
- AC_MSG_RESULT([$HAVE_HDF4])
-@@ -363,7 +363,7 @@
- *)
- if test -n "$withval" ; then
- hdf5_lib="`echo $withval |cut -f2 -d, -s`"
-- HDF5LIB=$hdf5_lib"/libhdf.$LLEXT"
-+ HDF5LIB="-L$hdf5_lib -lhdf"
- hdf5_inc="`echo $withval |cut -f1 -d,`"
- if test -n "$hdf5_inc"; then
- HDF5INC="$hdf5_inc"
-@@ -380,7 +380,7 @@
- ;;
- esac
- if test -n "$HDF5LIB"; then
-- LIBS="$HDF5LIB/libhdf5.$LLEXT $LIBS"
-+ LIBS="-L$HDF5LIB -lhdf5 $LIBS"
- HAVE_HDF5="yes"
- fi
- AC_MSG_RESULT([$HAVE_HDF5])
-@@ -628,10 +628,6 @@
- if test \( ! -d "$JH45INST" \); then
- JH45INST_FOUND=0
- fi
-- if test \( ! -w "$JH45INST" \); then
-- AC_MSG_ERROR( [ $JAVINST : not writable ])
-- JH45INST_FOUND=0
-- fi
- fi
- until test $JH45INST_FOUND -eq 1; do
- echo "Please type the directory in which to install the JH45"
---- a/native/hdf5lib/Makefile.in
-+++ b/native/hdf5lib/Makefile.in
-@@ -35,7 +35,7 @@
-
- CFLAGS = -D_FILE_OFFSET_BITS=64 $(DEFS) -I. -I$(HDF5INC) -I$(JAVAINC1) -I$(JAVAINC2)
-
--LIBS = $(HDF5LIB)/libhdf5.$(LLEXT) $(ZLIB) $(SZLIB) -lm
-+LIBS = -L$(HDF5LIB) -lhdf5 $(ZLIB) $(SZLIB) -lm
-
- # Macro def: object filename used
- OBJECTS = exceptionImp.o h5Constants.o h5Imp.o h5aImp.o h5dImp.o h5eImp.o h5fImp.o h5gImp.o h5iImp.o h5lImp.o h5oImp.o h5pImp.o h5rImp.o h5sImp.o h5tImp.o nativeData.o h5util.o h5zImp.o
-@@ -47,7 +47,7 @@
-
- libjhdf5: $(OBJECTS)
- -mkdir -p $(LIBDIR);
-- $(LD) $(LDOPT) -o $(LIBDIR)/libjhdf5.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
-+ $(LD) $(LDOPT) $(LDFLAGS) -o $(LIBDIR)/libjhdf5.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
-
- clean:
- $(RM) -f *.o so_locations $(LIBDIR)/libjhdf5.$(JSLEXT)
---- a/native/hdflib/Makefile.in
-+++ b/native/hdflib/Makefile.in
-@@ -41,7 +41,7 @@
- CFLAGS = $(DEFS) -I. -I$(JAVAINC1) -I$(JAVAINC2) -I$(HDFINC)
-
- # Be sure to add -lbsd if compiling in a SYSV environment
--LIBS = $(HDFLIB)/libmfhdf.$(LLEXT) $(HDFLIB)/libdf.$(LLEXT) $(SZLIB) $(ZLIB) $(JPEGLIB) -lm
-+LIBS = -L$(HDFLIB) -lmfhdf -ldf $(SZLIB) $(ZLIB) $(JPEGLIB) -lm
-
- # Macro def: object filename used
- OBJECTS = hdfstructsutil.o \
-@@ -60,7 +60,7 @@
-
- libjhdf: $(OBJECTS)
- -mkdir -p $(LIBDIR);
-- $(LD) $(LDOPT) -o $(LIBDIR)/libjhdf.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
-+ $(LD) $(LDOPT) $(LDFLAGS) -o $(LIBDIR)/libjhdf.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
-
- clean:
- $(RM) -f *.o so_locations $(LIBDIR)/libjhdf.$(JSLEXT)
+++ /dev/null
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-JAVA_PKG_IUSE="doc examples"
-inherit eutils java-pkg-2 autotools
-
-# We may add a trailing "-rX" to ebuild versions to denote ebuild
-# revisions. This addition, if present, needs to be stripped of to
-# get the upstream version number.
-#MY_PV="${PV%-r[0-9]}" # "2.7-r1" -> "2.7", "2.7" -> "2.7", "3-r1" -> "3"
-#MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="Java interface to the HDF5 library"
-HOMEPAGE="http://www.hdfgroup.org/hdf-java-html/index.html"
-SRC_URI="http://www.hdfgroup.org/ftp/HDF5/hdf-java/src/${P}-src.tar"
-
-LICENSE="NCSA-HDF"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="hdf szip zlib test hdfview"
-
-CDEPEND=">=sci-libs/hdf5-1.8[szip?,zlib?]
- dev-java/fits
- >=dev-java/junit-4
- dev-java/netcdf
- hdf? (
- sci-libs/hdf
- virtual/jpeg
- )"
-
-RDEPEND="${CDEPEND}
- >=virtual/jre-1.5"
-
-DEPEND=">=virtual/jdk-1.5
- ${CDEPEND}"
-
-S=${WORKDIR}/${PN}
-
-src_prepare() {
- epatch "${FILESDIR}/${PV}-shared.patch"
- eautoreconf
- rm lib/*.jar
- java-pkg_jar-from --into lib fits fits.jar
- java-pkg_jar-from --into lib netcdf netcdf.jar
- java-pkg_jar-from --into lib junit-4 junit.jar
- if use hdfview; then
- cp "${FILESDIR}/${PV}-hdfview.sh" bin/hdfview
- fi
-}
-
-src_configure() {
- local stdpath="/usr/include,/usr/$(get_libdir)"
- local myconf="--with-hdf4=no --with-libjpeg=no"
- use hdf && \
- myconf="--with-libjpeg=${stdpath} --with-hdf4=${stdpath}"
- use zlib && myconf="${myconf} --with-libz="${stdpath}""
- use szip && myconf="${myconf} --with-libsz="${stdpath}""
-
- econf \
- ${myconf} \
- --with-hdf5="${stdpath}" \
- --with-jdk="$(java-config -o)/include,$(java-config -o)/jre/lib"
-}
-
-src_compile() {
- # parallel needs work. anyone?
- emake -j1 just-hdf5 || die
-
- if use hdf; then
- sed -i "s/MAX_VAR_DIMS/H4_MAX_VAR_DIMS/" \
- native/hdflib/hdfstructsutil.c || die
- sed -i "s/MAX_NC_NAME/H4_MAX_NC_NAME/" \
- native/hdflib/hdfvdataImp.c || die
- sed -i "s/MAX_NC_NAME/H4_MAX_NC_NAME/" \
- native/hdflib/hdfsdsImp.c || die
- emake -j1 just-hdf4|| die
- fi
-
- if use examples; then
- emake -j1 do-examples || die
- fi
-
- if use doc; then
- emake -j1 javadocs || die
- fi
-
- if use hdfview; then
- #emake -j1 ncsa.hdf.view || die
- emake -j1 || die
- fi
-}
-
-src_install() {
- java-pkg_dojar "lib/jhdf5.jar"
- java-pkg_doso "lib/linux/libjhdf5.so"
-
- if use hdf; then
- java-pkg_dojar "lib/jhdf.jar"
- java-pkg_doso "lib/linux/libjhdf.so"
- fi
- use doc && java-pkg_dojavadoc "docs/javadocs"
- use examples && java-pkg_doexamples "examples"
- if use hdfview; then
- dobin bin/hdfview
- java-pkg_dojar lib/jhdf5.jar
- java-pkg_dojar lib/jhdf5obj.jar
- java-pkg_dojar lib/jhdfobj.jar
- java-pkg_dojar lib/jhdfview.jar
- java-pkg_dojar lib/ext/fitsobj.jar
- java-pkg_dojar lib/ext/nc2obj.jar
- fi
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>sci</herd>
-<longdescription lang="en">
- HDF is a versatile data model that can represent very complex data
- objects and a wide variety of metadata. It is a completely portable
- file format with no limit on the number or size of data objects in
- the collection.
- 1;2202;0c This Java package implements HDF4/HDF5 data objects in an object-oriented
- form. It provides a common Java API for accessing HDF files.
-</longdescription>
-<use>
- <flag name='hdf'>Add support for the Hierarchical Data Format v.4
- (<pkg>sci-libs/hdf</pkg>)</flag>
-</use>
-</pkgmetadata>
+++ /dev/null
-AUX 1.1-build.xml 3819 RMD160 a6be19d47be61f5d2019cfb93d85318b56bcfc61 SHA1 d258b44e22445f77422567e660e04fc3f66f3426 SHA256 57571f3abdd51f9048acf47104a732aa4d6a3bbf7ae74221991dc5b64c335e59
-DIST joda-convert-1.1.tar.gz 24233 RMD160 f343caf5354f03c52e0e63d674db41af689a17ef SHA1 c0175fd89088e50a31e7ab46e6e36b45f9f81dde SHA256 dba2096aeffe59aa9268bddfb5102111f52f30b14a120118b5fd14f338af6657
-EBUILD joda-convert-1.1.ebuild 1402 RMD160 f1fe8912a13b5e6ecf87b0f9ebdb045559772fc7 SHA1 d6d02573474ab5e2744540698d53a5a07f69e124 SHA256 68daf2f92e236f62b99f93c4c51257eb6a7e8ee7a70901e9ed246b4b400af455
-EBUILD joda-convert-9999.ebuild 1402 RMD160 f1fe8912a13b5e6ecf87b0f9ebdb045559772fc7 SHA1 d6d02573474ab5e2744540698d53a5a07f69e124 SHA256 68daf2f92e236f62b99f93c4c51257eb6a7e8ee7a70901e9ed246b4b400af455
+++ /dev/null
-<?xml version="1.0"?>
-<project name="Joda convert" default="all" basedir=".">
- <target name="init" description="Sets build properties">
- <!-- package configuration -->
- <property name="package.version" value="devel"/>
- <!-- directory locations -->
- <property name="src" value="${basedir}/src"/>
- <property name="src.lib" value="${src}/main/java"/>
- <property name="src.test" value="${src}/test/java"/>
- <property name="build" value="${basedir}/build"/>
- <property name="build.lib" value="${build}/lib"/>
- <property name="build.test" value="${build}/test"/>
- <property name="doc" value="${basedir}/doc"/>
- <property name="doc.api" value="${doc}/api"/>
- <!-- external dependencies -->
- <property name="junit.jar" value="junit.jar"/>
- <!-- classpaths -->
- <path id="project.class.path">
- </path>
- <path id="test.class.path">
- <!--pathelement location="${junit.jar}"/--> <!-- handled by Gentoo's ANT_TASKS -->
- </path>
- <path id="build.lib.class.path">
- <pathelement location="${build.lib}"/>
- </path>
- <path id="build.test.class.path">
- <pathelement location="${build.test}"/>
- </path>
- </target>
- <target name="all" depends="jar,javadoc"
- description="Pseudo-target that builds JAR and Javadoc"/>
- <target name="build-lib" depends="init"
- description="Compiles the library classes">
- <mkdir dir="${build.lib}"/>
- <javac destdir="${build.lib}" srcdir="${src.lib}" debug="true"
- deprecation="true" includeantruntime="false">
- <classpath refid="project.class.path"/>
- <classpath refid="build.lib.class.path"/>
- <!--compilerarg line="-Xlint:unchecked"/-->
- </javac>
- <!--copy todir="${build}">
- <mappedresources>
- <fileset dir="${src}" includes="**/test/test.fits*"/>
- <globmapper from="*" to="*"/>
- </mappedresources>
- </copy-->
- </target>
- <target name="build-tests" depends="build-lib"
- description="Compiles the test classes">
- <mkdir dir="${build.test}"/>
- <javac destdir="${build.test}" srcdir="${src.test}" debug="true"
- deprecation="true" includeantruntime="false">
- <classpath refid="project.class.path"/>
- <classpath refid="test.class.path"/>
- <classpath refid="build.lib.class.path"/>
- </javac>
- </target>
- <target name="build" depends="build-lib"
- description="Alias for build-lib"/>
- <target name="test" depends="build-tests">
- <junit>
- <classpath refid="project.class.path"/>
- <classpath refid="test.class.path"/>
- <classpath refid="build.lib.class.path"/>
- <classpath refid="build.test.class.path"/>
- <formatter type="brief" usefile="false" />
- <batchtest>
- <fileset dir="${build.test}">
- <include name="**/*.class" />
- <exclude name="**/*$*.class" />
- </fileset>
- </batchtest>
- </junit>
- </target>
- <target name="javadoc" depends="init"
- description="Generates Javadoc API documentation">
- <mkdir dir="${doc.api}"/>
- <javadoc packagenames="*"
- sourcepath="${src.lib}" destdir="${doc.api}"
- author="true" version="true"
- use="true" private="true"/>
- </target>
- <target name="jar" depends="build-lib"
- description="Builds a project JAR file">
- <jar basedir="${build.lib}" jarfile="${build}/joda-convert.jar">
- <manifest>
- <attribute name="Version" value="${package.version}"/>
- </manifest>
- </jar>
- </target>
- <target name="clean" depends="init"
- description="Erase all generated files and dirs">
- <delete dir="${build}" verbose="true"/>
- <delete dir="${doc}" verbose="true"/>
- <delete verbose="true">
- <fileset dir="${basedir}" includes="*.jar"/>
- </delete>
- </target>
-</project>
+++ /dev/null
-joda-convert-9999.ebuild
\ No newline at end of file
+++ /dev/null
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-JAVA_PKG_IUSE="doc source test"
-
-inherit java-pkg-2 java-ant-2
-
-if [[ "${PV}" == "9999" ]]; then
- inherit git-2
- EGIT_REPO_URI="git://github.com/JodaOrg/${PN}.git"
- SRC_URI=""
- MY_P="${P}"
-else
- #MY_P="${P}-src"
- #SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
- #S="${WORKDIR}/${MY_P}"
- SRC_URI="http://github.com/JodaOrg/${PN}/tarball/v${PV} -> ${P}.tar.gz"
-fi
-
-DESCRIPTION="A Java library for Object <-> String conversion."
-HOMEPAGE="http://${PN}.sourceforge.net/"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~x86"
-IUSE=""
-
-DEPEND="
- >=virtual/jdk-1.5
- test? (
- dev-java/ant-junit4
- dev-java/hamcrest-core
- )"
-RDEPEND=">=virtual/jre-1.5"
-
-JAVA_PKG_WANT_SOURCE="5"
-EANT_EXTRA_ARGS="-Dpacakge.version=${PV}"
-EANT_GENTOO_CLASSPATH="junit-4"
-JAVA_ANT_REWRITE_CLASSPATH="true"
-
-src_unpack() {
- # Work around GitHub's "${PN}-<SHA1>" directory name
- if [[ "${PV}" == "9999" ]]; then
- git-2_src_unpack
- else
- unpack "${A}"
- mv *-"${PN}"-*/* "${S}"
- fi
-}
-
-src_prepare() {
- cp "${FILESDIR}/1.1-build.xml" build.xml
-}
-
-src_test() {
- ANT_TASKS="ant-junit4" eant test
-}
-
-src_install() {
- java-pkg_newjar "build/${PN}.jar" "${PN}.jar"
-
- dodoc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt || die
- use doc && java-pkg_dojavadoc doc/api
- use source && java-pkg_dosrc src/main/java/*
-}
+++ /dev/null
-DIST joda-time-2.0.tar.gz 888688 RMD160 c0a54698dbf505e3f11fba736da460d0f1b184e9 SHA1 ad3694b9797368f6aff3234bbfd0e7f69dcf9f71 SHA256 ae80c4cb3bcd86885739ec066ef16b0fe98668dceac61c5093bc5497fcfed1f0
-EBUILD joda-time-2.0.ebuild 1962 RMD160 13f2a1f4b9d80ad51e09ab62454b79fac789c89a SHA1 abfb87f5066e2e9937e932518c88f13125c506f3 SHA256 d2d4ba34f023c64c6db29f5a47fb1a0a5e83dc49b2bf3ae30356d778bc806c3e
-EBUILD joda-time-9999.ebuild 1962 RMD160 13f2a1f4b9d80ad51e09ab62454b79fac789c89a SHA1 abfb87f5066e2e9937e932518c88f13125c506f3 SHA256 d2d4ba34f023c64c6db29f5a47fb1a0a5e83dc49b2bf3ae30356d778bc806c3e
+++ /dev/null
-joda-time-9999.ebuild
\ No newline at end of file
+++ /dev/null
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-JAVA_PKG_IUSE="doc examples source test"
-
-inherit java-pkg-2 java-ant-2
-
-if [[ "${PV}" == "9999" ]]; then
- inherit git-2
- EGIT_REPO_URI="git://github.com/JodaOrg/${PN}.git"
- SRC_URI=""
- MY_P="${P}"
-else
- #MY_P="${P}-src"
- #SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
- #S="${WORKDIR}/${MY_P}"
- SRC_URI="http://github.com/JodaOrg/${PN}/tarball/v${PV} -> ${P}.tar.gz"
-fi
-
-DESCRIPTION="A quality open-source replacement for the Java Date and Time classes."
-HOMEPAGE="http://joda-time.sourceforge.net/"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
-IUSE=""
-
-COMMON_DEP="dev-java/joda-convert"
-DEPEND="
- >=virtual/jdk-1.5
- test? ( dev-java/ant-junit4 )
- ${COMMON_DEP}"
-RDEPEND="
- >=virtual/jre-1.5
- ${COMMON_DEP}"
-
-JAVA_PKG_WANT_SOURCE="5"
-# chokes on static inner class making instance of non-static inner class
-EANT_FILTER_COMPILER="jikes"
-# Keep ant from trying to use maven internally
-EANT_EXTRA_ARGS="-Djunit.ant=1 -Djunit.present=1 -Djodaconvert.present=1"
-EANT_GENTOO_CLASSPATH="joda-convert"
-JAVA_ANT_REWRITE_CLASSPATH="true"
-
-src_unpack() {
- # Work around GitHub's "${PN}-<SHA1>" directory name
- if [[ "${PV}" == "9999" ]]; then
- git-2_src_unpack
- else
- unpack "${A}"
- mv *-"${PN}"-* "${S}"
- fi
-}
-
-src_test() {
- ANT_TASKS="ant-junit" eant \
- -Djunit.jar="$(java-pkg_getjar junit-4 junit.jar)" \
- -Djodaconvert.jar="$(java-pkg_getjar joda-convert joda-convert.jar)" \
- test
-}
-
-src_install() {
- if [[ "${PV}" == "9999" ]]; then
- java-pkg_newjar build/${PN}-*.jar ${PN}.jar
- else
- java-pkg_newjar build/${P}.jar ${PN}.jar
- fi
-
- dodoc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ToDo.txt || die
- use doc && java-pkg_dojavadoc build/docs
- use examples && java-pkg_doexamples src/example
- use source && java-pkg_dosrc src/java/org
-}
+++ /dev/null
-# ChangeLog for dev-java/netcdf
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-*netcdf-9999 (27 Feb 2012)
- 27 Feb 2012; W. Trevor King <wking@drexel.edu>
- netcdf-9999.ebuild, -netcdf-4.3.ebuild, -4.3-build.xml.patch:
- Fix bug #405923, reported by Darek, about the build-xml patch no
- longer applying to the source and the source zip no longer being
- available. Darek suggests using `netcdfAll-${PV}.zip`, but that
- contains pre-compiled jars, not the source code.
-
- I removed the 4.3 ebuild, because Unidata no longer distributes the
- source code bundles:
- http://www.unidata.ucar.edu/software/netcdf-java/documentation.htm
- "CDM/TDS source is now hosted on GitHub, and the source jar is no
- longer available. To build version 4.3 from source with maven: git
- clone ..."
- I would use Git for 4.3, but there are no tags in the Git repository
- to show which commit is considered "4.3". I suppose 4.3 is just
- their name for the development branch, so it doesn't make sense to
- maintain a 4.3 ebuild alongside 9999.
-
-*netcdf-9999 (07 Oct 2011)
- 07 Oct 2011; W. Trevor King <wking@drexel.edu> +netcdf-4.3.ebuild,
- +netcdf-9999.ebuild, +files/9999-build-xml.patch, +files/4.3-build.xml.patch,
- +metadata.xml:
- I originally (07 Oct 2011) listed this ebuild as submitted by
- Guillaume Horel for bug #301049, but now (27 Feb 2012) I don't see
- any mention of such an email in that bug. This ebuild also doesn't
- look much like `netcdf-4.1.3.ebuild` in the main Portage tree, so I
- imagine I wrote it myself from browsing other Java ebuilds.
+++ /dev/null
-AUX 9999-build-xml.patch 4380 RMD160 8fbd4330a7f73a7b8c0c1c9ffece806f2807b748 SHA1 57c47820e8bfa28a37d38daac5a94b86a1083b0c SHA256 ce91c07400232d4555d06e2f91bb7a21c2f4ca617a9b168d0fa8ba7933d29887
-EBUILD netcdf-9999.ebuild 2854 RMD160 b2dab8a813d6d41dab207c0d3be1971094dff937 SHA1 e50216b557a565e99ea8704fb9241653165cac9a SHA256 752af7962a053dbcf4e6619b035ad17d93f18988f04ca7459b94feb99e543fcc
-MISC ChangeLog 1605 RMD160 b0de198456e534547d5348864726242a2729f7b0 SHA1 7efd33a6bfd788106b7dc50c46f75ba6eebd4d96 SHA256 7b4564db6d89d829c2dfce47cf487513bebd35d5ec5ad3334db20299608e8b11
-MISC metadata.xml 247 RMD160 6735f3a5dd2d7a2b70589d1693f35d54291b7147 SHA1 c015969fe50967340dd050a44cb9f8a30b5e34a5 SHA256 9e65060e5f9d0a50d28c7a69d9c27fed6c3037fdd3e420cc276627fde2794f72
+++ /dev/null
-diff --git a/cdm/build.xml b/cdm/build.xml
-index 149ea21..1c28eb8 100644
---- a/cdm/build.xml
-+++ b/cdm/build.xml
-@@ -49,26 +49,27 @@
- <property name="bdb.jar" value="je-4.0.71.jar"/>\r
- <property name="bounce.jar" value="bounce-0.14.jar"/>\r
- <property name="bufr.jar" value="bufr-4.3.jar"/>\r
-- <property name="ehcache.jar" value="ehcache-1.6.0.jar"/>\r
-+ <property name="ehcache.jar" value="ehcache.jar"/>\r
- <property name="grib.jar" value="grib-4.3.jar"/>\r
-- <property name="httpclient3.jar" value="commons-httpclient-3.1.jar"/>\r
-- <property name="commons-logging.jar" value="jcl-over-slf4j-1.6.4.jar"/>\r
-- <property name="http-codec.jar" value="commons-codec-1.3.jar"/>\r
-- <property name="joda.jar" value="joda-time-2.0.jar"/>\r
-+ <property name="httpclient3.jar" value="commons-httpclient.jar"/>\r
-+ <property name="commons-logging.jar" value="commons-logging.jar"/>\r
-+ <property name="http-codec.jar" value="commons-codec.jar"/>\r
-+ <property name="joda-time.jar" value="joda-time.jar"/>\r
-+ <property name="joda-convert.jar" value="joda-convert.jar"/>\r
- <property name="jdom.jar" value="jdom.jar"/>\r
-- <property name="jfreechart.jar" value="jfreechart-1.0.12.jar"/>\r
-- <property name="jcommon.jar" value="jcommon-1.0.15.jar"/>\r
-+ <property name="jfreechart.jar" value="jfreechart.jar"/>\r
-+ <property name="jcommon.jar" value="jcommon.jar"/>\r
- <property name="guiBuilder.jar" value="forms_rt.jar"/>\r
-- <property name="jgoodies.jar" value="forms-1.0.7.jar"/>\r
-- <property name="junit.jar" value="junit-4.5.jar"/>\r
-+ <property name="jgoodies.jar" value="jgoodies-forms.jar"/>\r
-+ <property name="junit.jar" value="junit.jar"/>\r
- <property name="easymock.jar" value="easymock-2.5.2.jar"/>\r
-- <property name="loggingAPI.jar" value="slf4j-api-1.6.4.jar"/>\r
-+ <property name="loggingAPI.jar" value="slf4j-api.jar"/>\r
- <property name="logging-minimal.jar" value="slf4j-jdk14-1.6.4.jar"/>\r
- <property name="logging-maximal.jar" value="slf4j-log4j12-1.6.4.jar"/>\r
-- <property name="log4j.jar" value="log4j-1.2.16.jar"/>\r
-+ <property name="log4j.jar" value="log4j.jar"/>\r
- <!-- property name="lucene.jar" value="lucene.jar"/ -->\r
- <property name="opendap.jar" value="opendap-4.3.jar"/>\r
-- <property name="protobuf.jar" value="protobuf-java-2.4.1.jar"/>\r
-+ <property name="protobuf.jar" value="protobuf.jar"/>\r
- <property name="quartz.jar" value="quartz-2.1.1.jar"/>\r
- <property name="resourcesOptional.jar" value="resourcesOptional.jar"/>\r
- <property name="spring-aop.jar" value="org.springframework.aop-3.0.5.RELEASE.jar"/>\r
-@@ -91,8 +92,10 @@
- <include name="external/${bdb.jar}"/>\r
- <include name="external/${ehcache.jar}"/>\r
- <include name="external/${httpclient3.jar}"/>\r
-+ <include name="external/${commons-logging.jar}"/>\r
- <include name="external/${jdom.jar}"/>\r
-- <include name="external/${joda.jar}"/>\r
-+ <include name="external/${joda-time.jar}"/>\r
-+ <include name="external/${joda-convert.jar}"/>\r
- <include name="external/${loggingAPI.jar}"/>\r
- <include name="external/${protobuf.jar}"/>\r
- <include name="external/${quartz.jar}"/>\r
-diff --git a/grib/build.xml b/grib/build.xml
-index 2094669..6a5084e 100644
---- a/grib/build.xml
-+++ b/grib/build.xml
-@@ -30,10 +30,11 @@
- \r
- <property name="cdm.jar" value="netcdf-4.3.jar"/>\r
- <property name="jdom.jar" value="jdom.jar"/>\r
-- <property name="joda.jar" value="joda-time-2.0.jar"/>\r
-+ <property name="joda-time.jar" value="joda-time.jar"/>\r
-+ <property name="joda-convert.jar" value="joda-convert.jar"/>\r
- <property name="jsoup.jar" value="jsoup-1.6.1.jar"/>\r
-- <property name="loggingAPI.jar" value="slf4j-api-1.6.4.jar"/>\r
-- <property name="protobuf.jar" value="protobuf-java-2.4.1.jar"/>\r
-+ <property name="loggingAPI.jar" value="slf4j-api.jar"/>\r
-+ <property name="protobuf.jar" value="protobuf.jar"/>\r
- \r
- <!-- source -->\r
- <path id="sourcepath">\r
-@@ -45,7 +46,8 @@
- <fileset id="compile.libraries" dir="${lib.dir}">\r
- <include name="release/${cdm.jar}"/>\r
- <include name="external/${jdom.jar}"/>\r
-- <include name="external/${joda.jar}"/>\r
-+ <include name="external/${joda-time.jar}"/>\r
-+ <include name="external/${joda-convert.jar}"/>\r
- <include name="external/${jsoup.jar}"/>\r
- <include name="external/${loggingAPI.jar}"/>\r
- <include name="external/${protobuf.jar}"/>\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd></herd>
- <maintainer>
- <email>wking@drexel.edu</email>
- <name>W. Trevor King</name>
- </maintainer>
-</pkgmetadata>
+++ /dev/null
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-JAVA_PKG_IUSE="doc examples source test"
-inherit eutils java-pkg-2 java-ant-2 git-2
-
-if [[ "${PV}" == "9999" ]]; then
- inherit git-2
- EGIT_REPO_URI="git://github.com/Unidata/thredds.git"
- SRC_URI=""
-else
- die "Unidata no longer publishes 4.3 source bundles."
- SRC_URI="ftp://ftp.unidata.ucar.edu/pub/${PN}-java/v${PV}/ncSrc-${PV}.zip"
-fi
-
-DESCRIPTION="Java Common Data Model (CDM) interface to to netCDF files"
-HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf-java/"
-LICENSE="netCDF"
-SLOT="0"
-KEYWORDS="~x86"
-IUSE=""
-
-COMMON_DEP="dev-java/commons-codec
- dev-java/commons-httpclient
- dev-java/commons-logging
- dev-java/ehcache
- dev-java/jcommon
- dev-java/jdom
- dev-java/jfreechart
- dev-java/jgoodies-forms
- >=dev-java/joda-time-2.0
- dev-java/log4j
- dev-java/slf4j-api
- dev-libs/protobuf[java]"
-
-RDEPEND=">=virtual/jre-1.5
- ${COMMON_DEP}"
-
-DEPEND=">=virtual/jdk-1.5
- test? (
- dev-java/ant-junit4
- dev-java/hamcrest-core
- )
- ${COMMON_DEP}"
-# There is a from-source maven package in java-overlay, but it hasn't
-# been merged into the Portage trunk yet.
-
-S="${WORKDIR}/${PN}"
-
-src_unpack() {
- if [[ "${PV}" == "9999" ]]; then
- git-2_src_unpack
- else
- # The zipped source doesn't fall in a single directory
- mkdir "${S}"
- cd "${S}"
- unpack "${A}"
- fi
-}
-
-src_prepare() {
- cd "${S}"
- #rm -v lib/*/*.jar || die
-
- epatch "${FILESDIR}/${PV}-build-xml.patch"
-
- java-pkg_jar-from --into lib/external commons-codec commons-codec.jar
- java-pkg_jar-from --into lib/external commons-httpclient-3 commons-httpclient.jar
- java-pkg_jar-from --into lib/external commons-logging commons-logging.jar
- java-pkg_jar-from --into lib/external ehcache-1.2 ehcache.jar
- java-pkg_jar-from --into lib/external jcommon-1.0 jcommon.jar
- rm -f lib/external/jdom.jar || die
- java-pkg_jar-from --into lib/external jdom-1.0 jdom.jar
- java-pkg_jar-from --into lib/external jfreechart-1.0 jfreechart.jar
- java-pkg_jar-from --into lib/external jgoodies-forms forms.jar jgoodies-forms.jar
- java-pkg_jar-from --into lib/external joda-time joda-time.jar
- java-pkg_jar-from --into lib/external junit-4 junit.jar
- java-pkg_jar-from --into lib/external log4j log4j.jar
- java-pkg_jar-from --into lib/external protobuf protobuf.jar
- java-pkg_jar-from --into lib/external slf4j-api slf4j-api.jar
-}
-
-src_compile() {
- if [[ "${PV}" == "9999" ]]; then
- cd "${S}/grib"
- eant
- fi
- cd "${S}/cdm"
- eant
- use doc && eant javadoc
-}
-
-src_install() {
- if [[ "${PV}" == "9999" ]]; then
- java-pkg_newjar "cdm/target/${PN}"-*.jar "${PN}.jar"
- else
- java-pkg_newjar "cdm/target/${P}.jar" "${PN}.jar"
- fi
- use doc && java-pkg_dojavadoc cdm/target/javadoc
- use source && java-pkg_dosrc cdm/src/main/java/*
- use examples && java-pkg_doexamples cdm/src/test/java/examples
-}