aboutsummaryrefslogtreecommitdiff
path: root/net/tn5250j
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-06-13 02:37:00 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-06-13 02:37:00 +0000
commitec53678d3aa2283db60b58387a9fdb8037a95ffb (patch)
tree4cebcc88f20e5b6da9cfd2c6dc4553e97738e3c2 /net/tn5250j
parentf5f3051212910d36db29ec42fe8386242cb39f3e (diff)
downloadports-ec53678d3aa2283db60b58387a9fdb8037a95ffb.tar.gz
ports-ec53678d3aa2283db60b58387a9fdb8037a95ffb.zip
Notes
Diffstat (limited to 'net/tn5250j')
-rw-r--r--net/tn5250j/Makefile58
-rw-r--r--net/tn5250j/distinfo3
-rw-r--r--net/tn5250j/files/patch-build.xml100
-rw-r--r--net/tn5250j/files/tn5250j.in3
-rw-r--r--net/tn5250j/pkg-descr3
-rw-r--r--net/tn5250j/pkg-plist12
6 files changed, 179 insertions, 0 deletions
diff --git a/net/tn5250j/Makefile b/net/tn5250j/Makefile
new file mode 100644
index 000000000000..8e5454f25195
--- /dev/null
+++ b/net/tn5250j/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: tn5250j
+# Date created: 2008-06-12
+# Whom: Marcin Cieslak <saper@SYSTEM.PL>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tn5250j
+PORTVERSION= 0.6.0
+CATEGORIES= net java
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= saper@SYSTEM.PL
+COMMENT= A 5250 terminal emulator for the AS/400 written in Java
+
+BUILD_DEPENDS= ${JAVAJARDIR}/mail.jar:${PORTSDIR}/java/javamail \
+ ${JYTHON_JAR}:${PORTSDIR}/lang/jython \
+ ${JAVAJARDIR}/jt400.jar:${PORTSDIR}/sysutils/jtopen
+RUN_DEPENDS= ${JAVAJARDIR}/itext.jar:${PORTSDIR}/devel/itext \
+ ${JAVAJARDIR}/log4j.jar:${PORTSDIR}/devel/log4j
+
+USE_ZIP= yes
+USE_ANT= yes
+USE_JAVA= 1.3+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_DOS2UNIX= build.xml
+
+ALL_TARGET= package
+MAKE_ENV+= CLASSPATH=${JYTHON_PREFIX}
+MAKE_ARGS+= -Dlib.dir=${JAVALIBDIR}
+
+JYTHON_VER?= 22
+JYTHON_PREFIX?= ${LOCALBASE}/lib/jython${JYTHON_VER}
+JYTHON_JAR= ${JYTHON_PREFIX}/jython.jar
+
+DOC_FILES= CHANGELOG.txt applet.txt filetransfers.txt readme.txt antbuild.txt\
+ e-mail.txt macros.txt scripting.txt
+
+SUB_FILES= tn5250j
+SUB_LIST= JYTHON_JAR=${JYTHON_JAR}
+
+.include <bsd.port.pre.mk>
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/tn5250j ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/build/tn5250j.jar ${JAVAJARDIR}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for d in ${DOC_FILES}
+ ${INSTALL_MAN} ${WRKSRC}/src/${d} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/tn5250j/distinfo b/net/tn5250j/distinfo
new file mode 100644
index 000000000000..4424f0f3fac6
--- /dev/null
+++ b/net/tn5250j/distinfo
@@ -0,0 +1,3 @@
+MD5 (tn5250j-0.6.0-src.zip) = 3f85dbf5dd669ab9f6ffc37e2de27c5d
+SHA256 (tn5250j-0.6.0-src.zip) = a24610b7e8fa0dde30f3d001509164e8e51ea8afb68ce741fc6490fdfb081e6b
+SIZE (tn5250j-0.6.0-src.zip) = 634458
diff --git a/net/tn5250j/files/patch-build.xml b/net/tn5250j/files/patch-build.xml
new file mode 100644
index 000000000000..13678b637053
--- /dev/null
+++ b/net/tn5250j/files/patch-build.xml
@@ -0,0 +1,100 @@
+--- build.xml.orig 2008-06-12 17:53:31.850966916 +0200
++++ build.xml 2008-06-12 17:55:27.789182054 +0200
+@@ -345,97 +345,8 @@
+ <delete file="${dist.dir}/${dist.src.name}.tar"/>
+ </target>
+
+- <!-- Creates an installer for tn5250j -->
+- <target name="generate-installer" depends="dist" description="Creates installer using IzPack">
+
+- <!-- Allows us to use the IzPack Ant task -->
+- <taskdef name="izpack" classpath="${basedir}/lib/compiler.jar"
+- classname="com.izforge.izpack.ant.IzPackTask"/>
+
+- <!-- Copies the files to the dist directory -->
+- <echo message="Copies the image of the distribution to ${dist.dir}"/>
+- <delete dir="${dist.dir}/installer"/>
+- <mkdir dir="${dist.dir}/installer"/>
+- <copy todir="${dist.dir}/installer" includeEmptyDirs="yes">
+- <!--fileset dir="${basedir}">
+- <include name="bin/**"/>
+- <include name="lib/*.jar"/>
+- </fileset-->
+- <fileset dir="${build.dir}">
+- <include name="${jarname}" />
+- </fileset>
+- <fileset dir="${dist.dir}/${dist.base.name}/src/installer/">
+- <include name="**"/>
+- </fileset>
+- <fileset dir="${dist.dir}/${dist.base.name}/src/">
+- <include name="readme.txt"/>
+- <include name="COPYING"/>
+- <include name="tn5250jSplash.jpg"/>
+- <include name="tnicon.jpg"/>
+- </fileset>
+- <fileset dir="${lib.dir}">
+- <include name="**"/>
+- </fileset>
+- </copy>
+-
+- <!-- We call IzPack -->
+- <echo message="Makes the installer using IzPack"/>
+- <izpack input="${dist.dir}/installer/install.xml"
+- output="${dist.dir}/tn5250j-install-${version}.jar"
+- installerType="standard"
+- basedir="${dist.dir}"
+- izPackDir="${IzPack.dir}"/>
+-
+- <!--echo message="Makes the web installer using IzPack"/-->
+- <!--izpack input="${dist.dir}/installer/install.xml"
+- output="${dist.dir}/tn5250j-install-web-${version}.jar"
+- installerType="web"
+- basedir="${dist.dir}"
+- izPackDir="${IzPack.dir}"/-->
+-
+- </target>
+-
+-<!-- start jar bundler task -->
+- <taskdef name="jarbundler"
+- classpath="${lib.dir}/jarbundler-1.4.jar"
+- classname="com.loomcom.ant.tasks.jarbundler.JarBundler" />
+-
+- <target name= "dist-bin-jarbundle" depends="dist-bin-prepare" description="Prepares jar bundle binary distribution">
+- <jarbundler dir="${dist.dir}"
+- name="${Name}"
+- mainclass="org.tn5250j.My5250"
+- icon="${source.dir}/tnicon.icns"
+- version="${version}"
+- infostring="${Name} ${version}, (c) ${year}"
+- aboutmenuname="${Name}"
+- bundleid="org.tn5250j"
+- developmentregion="English"
+- signature="????"
+- type="APPL"
+- jvmversion="1.4+"
+- vmoptions="-Xmx256m"
+- smalltabs="true"
+- antialiasedgraphics="true"
+- antialiasedtext="true"
+- liveresize="true"
+- growboxintrudes="false"
+- workingdirectory="$APP_PACKAGE/Contents/Resources/Java"
+- screenmenu="true" >
+- <jarfileset dir="${dist.dir}/${dist.base.name}">
+- <include name="**/*.jar" />
+- <exclude name="**/CVS" />
+- </jarfileset>
+- </jarbundler>
+- </target>
+-
+- <target name= "dist-bin-jarbundle-tgz" depends="dist-bin-jarbundle" description="Create a Tgz-File of the jar bundle distribution">
+- <tar tarfile="${dist.dir}/${dist.bin.name}.app.tar"
+- basedir="${dist.dir}/"
+- includes="${Name}.app/**">
+- </tar>
+- <gzip zipfile="${dist.dir}/${dist.bin.name}.app.tgz" src="${dist.dir}/${dist.bin.name}.app.tar" />
+- <delete file="${dist.dir}/${dist.bin.name}.app.tar"/>
+- </target>
+
+ <!-- start jar bundler task -->
+
diff --git a/net/tn5250j/files/tn5250j.in b/net/tn5250j/files/tn5250j.in
new file mode 100644
index 000000000000..26e38c5f2504
--- /dev/null
+++ b/net/tn5250j/files/tn5250j.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+CLASSPATH=`classpath`:%%JYTHON_JAR%% java org.tn5250j.My5250 "$@"
diff --git a/net/tn5250j/pkg-descr b/net/tn5250j/pkg-descr
new file mode 100644
index 000000000000..6ac1f86c31a1
--- /dev/null
+++ b/net/tn5250j/pkg-descr
@@ -0,0 +1,3 @@
+A feature-rich graphical Telnet 5250 emulator written in Java.
+
+WWW: http://tn5250j.sourceforge.net/
diff --git a/net/tn5250j/pkg-plist b/net/tn5250j/pkg-plist
new file mode 100644
index 000000000000..2275cf01a8c2
--- /dev/null
+++ b/net/tn5250j/pkg-plist
@@ -0,0 +1,12 @@
+@comment $FreeBSD$
+bin/tn5250j
+%%JAVAJARDIR%%/tn5250j.jar
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.txt
+%%PORTDOCS%%%%DOCSDIR%%/applet.txt
+%%PORTDOCS%%%%DOCSDIR%%/filetransfers.txt
+%%PORTDOCS%%%%DOCSDIR%%/readme.txt
+%%PORTDOCS%%%%DOCSDIR%%/antbuild.txt
+%%PORTDOCS%%%%DOCSDIR%%/e-mail.txt
+%%PORTDOCS%%%%DOCSDIR%%/macros.txt
+%%PORTDOCS%%%%DOCSDIR%%/scripting.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%