summaryrefslogtreecommitdiff
path: root/devel/jiic
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2010-06-29 07:40:56 +0000
committerAlex Dupre <ale@FreeBSD.org>2010-06-29 07:40:56 +0000
commitce3102326cb8658005e5d97c57fc4d3811672bc5 (patch)
treee510a11c7d73dd77d8b4dbc07e19ffb49dd84e99 /devel/jiic
parentbba1caba897cf33d9cc13507e891f1562099b1fb (diff)
downloadfreebsd-ports-ce3102326cb8658005e5d97c57fc4d3811672bc5.zip
JIIC is a Java-based implementation for creating CD-ROM filesystem
images according to ISO 9660, also known as ECMA-119. It provides support for the El Torito, Joliet and Rock Ridge extensions. WWW: http://jiic.berlios.de/ Feature safe: yes
Diffstat (limited to 'devel/jiic')
-rw-r--r--devel/jiic/Makefile40
-rw-r--r--devel/jiic/distinfo3
-rw-r--r--devel/jiic/files/build.xml28
-rw-r--r--devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660File.java22
-rw-r--r--devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660HierarchyObject.java11
-rw-r--r--devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_impl_ISOImageFileHandler.java20
-rw-r--r--devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_joliet_impl_JolietNamingConventions.java15
-rw-r--r--devel/jiic/pkg-descr8
8 files changed, 147 insertions, 0 deletions
diff --git a/devel/jiic/Makefile b/devel/jiic/Makefile
new file mode 100644
index 000000000000..6591c07336a0
--- /dev/null
+++ b/devel/jiic/Makefile
@@ -0,0 +1,40 @@
+# Ports collection makefile for: jiic
+# Date created: 28 Jun 2010
+# Whom: Alex Dupre <ale@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jiic
+PORTVERSION= 20100629
+CATEGORIES= devel multimedia java
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= ale
+
+MAINTAINER= ale@FreeBSD.org
+COMMENT= A streaming-based Java implementation of ISO 9660
+
+BUILD_DEPENDS= ${JAVALIBDIR}/sabre.jar:${PORTSDIR}/devel/sabre
+RUN_DEPENDS= ${JAVALIBDIR}/sabre.jar:${PORTSDIR}/devel/sabre
+
+LICENSE= LGPL21
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_ZIP= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.5+
+USE_ANT= yes
+MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
+ALL_TARGET= jar
+
+PLIST_FILES= %%JAVAJARDIR%%/iso9660.jar
+
+post-extract:
+ @${CP} ${FILESDIR}/build.xml ${WRKSRC}
+
+do-install:
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/iso9660.jar..."
+ @${INSTALL_DATA} ${WRKSRC}/dist/iso9660.jar ${JAVAJARDIR}/
+ @${ECHO_MSG} " [ DONE ]"
+
+.include <bsd.port.mk>
diff --git a/devel/jiic/distinfo b/devel/jiic/distinfo
new file mode 100644
index 000000000000..59ffcb6f995f
--- /dev/null
+++ b/devel/jiic/distinfo
@@ -0,0 +1,3 @@
+MD5 (jiic-20100629.zip) = c4de00ac56b6de73ab5fa938b9098f21
+SHA256 (jiic-20100629.zip) = ad95f56f1bd60c99dda64344ead10d0dcf234f54820ac2f4018eadbf02d45a76
+SIZE (jiic-20100629.zip) = 125274
diff --git a/devel/jiic/files/build.xml b/devel/jiic/files/build.xml
new file mode 100644
index 000000000000..2de5512ed21f
--- /dev/null
+++ b/devel/jiic/files/build.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<project name="JIIC" default="dist">
+ <property name="src" location="." />
+ <property name="build" location="build" />
+ <property name="dist" location="dist" />
+
+ <target name="clean">
+ <delete dir="${dist}" />
+ <delete dir="${build}" />
+ </target>
+
+ <target name="prepare" depends="clean">
+ <mkdir dir="${dist}"/>
+ <mkdir dir="${build}/classes"/>
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac destdir="${build}/classes" debug="on">
+ <src path="${src}"/>
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar destfile="${dist}/iso9660.jar" basedir="${build}/classes">
+ <include name="de/tu_darmstadt/informatik/rbg/**/*.class"/>
+ </jar>
+ </target>
+</project>
diff --git a/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660File.java b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660File.java
new file mode 100644
index 000000000000..48c12acfaa22
--- /dev/null
+++ b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660File.java
@@ -0,0 +1,22 @@
+--- de/tu_darmstadt/informatik/rbg/hatlak/iso9660/ISO9660File.java 2007-03-30 17:06:58.000000000 +0200
++++ de/tu_darmstadt/informatik/rbg/hatlak/iso9660/ISO9660File.java 2010-06-29 09:23:34.000000000 +0200
+@@ -265,7 +265,7 @@
+ this.enforceDotDelimiter = force;
+ }
+
+- public int compareTo(Object object) throws ClassCastException, NullPointerException {
++ public int compareTo(File object) throws ClassCastException, NullPointerException {
+ // Alphanumerical case-insensitive sort (according to ISO9660 needs)
+ if (object==null) {
+ throw new NullPointerException();
+@@ -292,10 +292,6 @@
+ } // else: Compare extensions
+
+ return getExtension().toUpperCase().compareTo(file.getExtension().toUpperCase());
+- } else
+- if (object instanceof ISO9660Directory) {
+- ISO9660Directory dir = (ISO9660Directory) object;
+- return getFullName().toUpperCase().compareTo(dir.getName().toUpperCase());
+ } else {
+ throw new ClassCastException();
+ }
diff --git a/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660HierarchyObject.java b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660HierarchyObject.java
new file mode 100644
index 000000000000..852d17b15672
--- /dev/null
+++ b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_ISO9660HierarchyObject.java
@@ -0,0 +1,11 @@
+--- de/tu_darmstadt/informatik/rbg/hatlak/iso9660/ISO9660HierarchyObject.java 2007-03-30 17:06:58.000000000 +0200
++++ de/tu_darmstadt/informatik/rbg/hatlak/iso9660/ISO9660HierarchyObject.java 2010-06-29 09:24:25.000000000 +0200
+@@ -19,7 +19,7 @@
+
+ package de.tu_darmstadt.informatik.rbg.hatlak.iso9660;
+
+-public interface ISO9660HierarchyObject extends Cloneable, Comparable {
++public interface ISO9660HierarchyObject extends Cloneable {
+ /**
+ * Returns the name of the hierarchy object
+ *
diff --git a/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_impl_ISOImageFileHandler.java b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_impl_ISOImageFileHandler.java
new file mode 100644
index 000000000000..46141163ae3f
--- /dev/null
+++ b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_iso9660_impl_ISOImageFileHandler.java
@@ -0,0 +1,20 @@
+--- de/tu_darmstadt/informatik/rbg/hatlak/iso9660/impl/ISOImageFileHandler.java 2007-03-30 17:06:58.000000000 +0200
++++ de/tu_darmstadt/informatik/rbg/hatlak/iso9660/impl/ISOImageFileHandler.java 2010-06-28 17:26:15.000000000 +0200
+@@ -93,10 +93,13 @@
+ }
+
+ public Fixup fixup(DataReference reference) throws HandlerException {
+- Fixup fixup = null;
+- fixup = new FileFixup(file, position, reference.getLength());
+- data(reference);
+- return fixup;
++ try {
++ Fixup fixup = new FileFixup(new RandomAccessFile(file, "rw"), position, reference.getLength());
++ data(reference);
++ return fixup;
++ } catch (FileNotFoundException e) {
++ throw new HandlerException(e);
++ }
+ }
+
+ public long mark() throws HandlerException {
diff --git a/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_joliet_impl_JolietNamingConventions.java b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_joliet_impl_JolietNamingConventions.java
new file mode 100644
index 000000000000..04b0f81962c0
--- /dev/null
+++ b/devel/jiic/files/patch-de_tu_darmstadt_informatik_rbg_hatlak_joliet_impl_JolietNamingConventions.java
@@ -0,0 +1,15 @@
+--- de/tu_darmstadt/informatik/rbg/hatlak/joliet/impl/JolietNamingConventions.java 2007-03-30 17:06:58.000000000 +0200
++++ de/tu_darmstadt/informatik/rbg/hatlak/joliet/impl/JolietNamingConventions.java 2010-06-29 09:23:15.000000000 +0200
+@@ -82,10 +82,10 @@
+ if (filename.length() + extension.length() + (file.getVersion()+"").length() + 2 > 64) {
+ if (filename.length() >= extension.length()) {
+ // Shorten filename
+- filename = filename.substring(0, 64-extension.length());
++ filename = filename.substring(0, 64-extension.length()-(file.getVersion()+"").length()-2);
+ } else {
+ // Shorten extension
+- extension = extension.substring(0, 64-filename.length());
++ extension = extension.substring(0, 64-filename.length()-(file.getVersion()+"").length()-2);
+ }
+ }
+
diff --git a/devel/jiic/pkg-descr b/devel/jiic/pkg-descr
new file mode 100644
index 000000000000..7bbe7097d9d4
--- /dev/null
+++ b/devel/jiic/pkg-descr
@@ -0,0 +1,8 @@
+JIIC is a Java-based implementation for creating CD-ROM filesystem
+images according to ISO 9660, also known as ECMA-119. It provides
+support for the El Torito, Joliet and Rock Ridge extensions.
+
+WWW: http://jiic.berlios.de/
+
+- Alex Dupre
+ale@FreeBSD.org