Add dev-java/fits packaging nom.tam.fits.
authorW. Trevor King <wking@drexel.edu>
Fri, 7 Oct 2011 02:19:27 +0000 (22:19 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 24 Sep 2014 18:43:47 +0000 (11:43 -0700)
dev-java/fits/ChangeLog [new file with mode: 0644]
dev-java/fits/Manifest [new file with mode: 0644]
dev-java/fits/files/README.Gentoo [new file with mode: 0644]
dev-java/fits/files/build.xml [new file with mode: 0644]
dev-java/fits/fits-1.06.0.ebuild [new file with mode: 0644]
dev-java/fits/metadata.xml [new file with mode: 0644]

diff --git a/dev-java/fits/ChangeLog b/dev-java/fits/ChangeLog
new file mode 100644 (file)
index 0000000..833cf8e
--- /dev/null
@@ -0,0 +1,9 @@
+# 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, +metadata.xml:
+  Initial ebuild.
diff --git a/dev-java/fits/Manifest b/dev-java/fits/Manifest
new file mode 100644 (file)
index 0000000..d3784d3
--- /dev/null
@@ -0,0 +1,6 @@
+AUX README.Gentoo 1872 RMD160 d1dd74e452a146eda2a7cbd2a77ebb56a553306e SHA1 a808f13153d79e45312981bdd1b70db9831cfecf SHA256 eff5ce2b235af399f751566aa395ca7b803b7314e3adb652f7ae395653ac8628
+AUX build.xml 1682 RMD160 1ee625d0c100404539c95a5b8969189a86af1ecb SHA1 6aa2e178ff42715fb2106865f1110380b8c9de33 SHA256 d7d8c497145f906165a7ba954c56482fad51b733ef3a2d186544fa3edabf343c
+DIST fits-1.06.0_src.jar 174797 RMD160 af8bfea7039bc5ab9b3ad32be6d67f9145066005 SHA1 763c81042b8586ddba96e44a94fbd0d9e68217e4 SHA256 924c39f98114720917f2914e886d9f87050632a48769c289b0dffbbb646b7fcf
+EBUILD fits-1.06.0.ebuild 1141 RMD160 0db36320be2cab8a537cd1b8b5233037048a170f SHA1 70a8b581d18ba5e2f9eb9d33144aa2a400ffdeb0 SHA256 4edc7d3ccc7b1d3a7482fe1416eddeeba20e72a156af37bc6de7347371fb91e4
+MISC ChangeLog 287 RMD160 e7a8dcb5e8f68f96c07fee8473eed16f6df1cd31 SHA1 314dcbbf441e47feac4bedf7b38000e0d4852e6d SHA256 b15c9d486f5b3ddb5d991e78b1f82a59ca2658b30807e1908a57a6ec72a0eb01
+MISC metadata.xml 247 RMD160 6735f3a5dd2d7a2b70589d1693f35d54291b7147 SHA1 c015969fe50967340dd050a44cb9f8a30b5e34a5 SHA256 9e65060e5f9d0a50d28c7a69d9c27fed6c3037fdd3e420cc276627fde2794f72
diff --git a/dev-java/fits/files/README.Gentoo b/dev-java/fits/files/README.Gentoo
new file mode 100644 (file)
index 0000000..62c238c
--- /dev/null
@@ -0,0 +1,44 @@
+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/
diff --git a/dev-java/fits/files/build.xml b/dev-java/fits/files/build.xml
new file mode 100644 (file)
index 0000000..285e43c
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<project name="fits" default="all" basedir=".">
+  <target name="init" description="Sets build properties">
+    <property name="src" value="${basedir}/src"/>
+    <property name="build" value="${basedir}/build"/>
+    <property name="doc" value="${basedir}/doc"/>
+  </target>
+  <path id="project.class.path">
+    <pathelement location="JUNIT.JAR"/>
+  </path>
+  <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">
+      <classpath refid="project.class.path"/>
+    </javac>
+  </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"/>
+  </target>
+  <target name="jar" depends="build"
+          description="Builds a project JAR file">
+    <jar basedir="${build}" jarfile="${basedir}/fits.jar">
+      <manifest>
+        <attribute name="Version" value="VERSION"/>
+        <attribute name="Main-Class"
+                   value="fits"/>
+      </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 file="fits.jar" verbose="true"/>
+  </target>
+</project>
diff --git a/dev-java/fits/fits-1.06.0.ebuild b/dev-java/fits/fits-1.06.0.ebuild
new file mode 100644 (file)
index 0000000..75763cf
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+JAVA_PKG_IUSE="doc source"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Java library for FITS (image format) input/output library"
+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
+       ${COMMON_DEP}"
+
+src_unpack() {
+       mkdir -p "${P}/src"
+       cd "${P}/src"
+       unpack "${A}"
+}
+
+java_prepare() {
+       local junit="$(java-pkg_getjar junit-4 junit.jar)"
+       cd "${WORKDIR}/${P}" || die
+       cp "${FILESDIR}"/README.Gentoo . || die
+       cp "${FILESDIR}"/build.xml . || die
+       sed -i "s/VERSION/${PV}/" build.xml || die
+       sed -i "s:JUNIT.JAR:${junit}:" build.xml || die
+}
+
+src_install() {
+       java-pkg_newjar ${PN}.jar ${PN}.jar
+       use doc && java-pkg_dojavadoc doc/api
+       use source && java-pkg_dosrc src/nom
+       #use examples && java-pkg_doexamples src/java/examples
+}
diff --git a/dev-java/fits/metadata.xml b/dev-java/fits/metadata.xml
new file mode 100644 (file)
index 0000000..d124928
--- /dev/null
@@ -0,0 +1,9 @@
+<?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>