--- janino-2.5.15.orig/debian/rules
+++ janino-2.5.15/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+
+DEB_ANT_BUILDFILE := build.xml
+DEB_ANT_BUILD_TARGET := jar
+JAVA_HOME := /usr/lib/jvm/java-gcj
+
+# Package name (exclusively) for get-orig-source. ${DEB_SOURCE_PACKAGE} can't be used as it does not work when calling get-orig-source from any directory as
+# http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules defines.
+PACKAGE_NAME := janino
+
+# Path to the debian directory, exclusively for get-orig-source
+DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )
+
+common-post-build-indep::
+ mv build/lib/janino.jar build/lib/${DEB_SOURCE_PACKAGE}-${DEB_VERSION}.jar
+
+common-install-prehook-indep::
+ # Create versionless symlink
+ cd debian/${DEB_SOURCE_PACKAGE}/usr/share/java/ && \
+ ln -s ${DEB_SOURCE_PACKAGE}-${DEB_VERSION}.jar ${DEB_SOURCE_PACKAGE}.jar
+
+get-orig-source::
+ cd ${DEBIAN_DIR}/.. && \
+ version=$$(uscan --force-download --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p') && \
+ tmpDir=$$(mktemp -d) && \
+ unzip -q ../janino-$${version}.zip -d $${tmpDir} -x "janino-$${version}/javadoc/*" "janino-$${version}/lib/*" && \
+ rm ../janino-$${version}.zip && \
+ mkdir -p $${tmpDir}/zipdir && \
+ mv $${tmpDir}/janino-$${version} $${tmpDir}/zipdir/${PACKAGE_NAME}-$${version} && \
+ tar cfz ${CURDIR}/${PACKAGE_NAME}_$${version}.orig.tar.gz -C $${tmpDir}/zipdir ${PACKAGE_NAME}-$${version} ; \
+ rm -rf $${tmpDir}
+
--- janino-2.5.15.orig/debian/janinoc.1
+++ janino-2.5.15/debian/janinoc.1
@@ -0,0 +1,46 @@
+.TH JANINOC "1" "July 2007" "Janino"
+.SH NAME
+Janino \- a runtime Java Compiler.
+.SH SYNOPSIS
+.BI "janinoc [" options "] " source-file " ..."
+.SH DESCRIPTION
+.TP
+Janino is a compiler that reads a Java expression, block, class body, source file or a set of source files, and generates Java bytecode that is loaded and executed directly. Janino is not intended to be a development tool, but an embedded compiler for run-time compilation purposes, e.g. expression evaluators or "server pages" engines like JSP.
+.TP
+janinoc is a front-end that compiles all specified input files.
+.SH OPTIONS
+.HP
+\fB\-d\fR output-dir
+Where to save class files
+.TP
+\fB\-sourcepath\fR dirlist, \fB\-extdirs\fR dirlist, \fB\-bootclasspath\fR dirlist
+Where to look for other source files
+.TP
+\fB\-encoding\fR encoding
+Encoding of source files, e.g. "UTF-8" or "ISO-8859-1"
+.TP
+\fB\-verbose\fR
+More output.
+.TP
+\fB\-g\fR [none|{lines,vars,source}]
+Generate all, no, or only some debugging info.
+.TP
+\fB\-warn:\fRpattern-list
+Issue certain warnings, examples:
+.nf
+ \-warn:* All warnings
+ \-warn:IASF Only warn against implicit access to static fields
+ \-warn:*\-IASF Enables all warnings, except those against implicit access to static fields
+ \-warn:*\-IA*+IASF Enables all warnings, except those against implicit accesses, but do warn against implicit access to static fields
+.fi
+.TP
+\fB\-rebuild\fR
+Compile all source files, even if the class files seems up-to-date
+.TP
+\fB\-help\fR
+Prints a help message
+.SH "AUTHORS"
+.nf
+The Janino Team http://janino.net/
+Arno Unkrig <aunkrig@codehaus.org>
+.fi
--- janino-2.5.15.orig/debian/install
+++ janino-2.5.15/debian/install
@@ -0,0 +1,2 @@
+build/lib/janino-*.jar usr/share/java/
+debian/janinoc usr/bin
--- janino-2.5.15.orig/debian/README.Debian-source
+++ janino-2.5.15/debian/README.Debian-source
@@ -0,0 +1,8 @@
+Repackaging consists of the following steps:
+
+1. Unzip the source file (creates a directory janino-$version)
+2. tar janino-$version > .orig.tar.gz
+
+The get-orig-source automates these. Just invoke
+ debian/rules get-orig-source
+and the tarball will be created in the cwd.
--- janino-2.5.15.orig/debian/control
+++ janino-2.5.15/debian/control
@@ -0,0 +1,18 @@
+Source: janino
+Section: libs
+Priority: optional
+Maintainer: Philipp Hagemeister <ubuntu@phihag.de>
+Standards-Version: 3.8.0
+Build-Depends: cdbs, debhelper (>= 5), dpatch
+Build-Depends-Indep: ant, java-gcj-compat-dev, unzip
+Homepage: http://janino.net
+
+Package: janino
+Architecture: all
+Depends: java-gcj-compat | java1-runtime | java2-runtime
+Description: Runtime Java compiler
+ Janino is a compiler that reads a Java expression, block, class body,
+ source file or a set of source files, and generates Java bytecode that is
+ loaded and executed directly. Janino is not intended to be a development tool,
+ but an embedded compiler for run-time compilation purposes, e.g. expression
+ evaluators or embedded code as with JSP.
--- janino-2.5.15.orig/debian/compat
+++ janino-2.5.15/debian/compat
@@ -0,0 +1 @@
+5
--- janino-2.5.15.orig/debian/changelog
+++ janino-2.5.15/debian/changelog
@@ -0,0 +1,53 @@
+janino (2.5.15-1) unstable; urgency=low
+
+ * New upstream version
+ * Fix janinoc script to handle arguments containing white space correctly
+ * Updated Standards-Version to 3.8.0
+ * Removed unnecessary DOS-Unix line ending conversions
+
+ -- Philipp Hagemeister <ubuntu@phihag.de> Fri, 20 Jun 2008 12:48:56 +0200
+
+janino (2.5.13-1) unstable; urgency=low
+
+ * New upstream version
+ * Corrected additional incorrect hyphens in manpage
+
+ -- Philipp Hagemeister <ubuntu@phihag.de> Sat, 22 Mar 2008 19:12:37 +0100
+
+janino (2.5.12-1) unstable; urgency=low
+
+ * New upstream version
+ * Removed a typo in debian/README.Debian
+ * Updated Standards-Version to 3.7.3
+ * Moved homepage from description to its own field
+ * Corrected minus signs in manpage
+
+ -- Philipp Hagemeister <ubuntu@phihag.de> Tue, 29 Jan 2008 15:30:42 +0100
+
+janino (2.5.11-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Philipp Hagemeister <ubuntu@phihag.de> Thu, 09 Nov 2007 23:58:47 +0200
+
+janino (2.5.10-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Philipp Hagemeister <ubuntu@phihag.de> Thu, 13 Sep 2007 21:21:46 +0200
+
+janino (2.5.9-1) unstable; urgency=low
+
+ * New upstream version
+ * Better description
+
+ -- Philipp Hagemeister <ubuntu@phihag.de> Tue, 08 Aug 2007 21:07:02 +0200
+
+janino (2.5.8-1) unstable; urgency=low
+
+ * Initial Debian packaging (Bug #432254)
+ * Patched to remove static buildpaths from build.xml
+ * Added a wrapper script for org.codehaus.janino.Compiler, called janinoc
+ * Added a manpage
+
+ -- Philipp Hagemeister <ubuntu@phihag.de> Sun, 17 Jun 2007 21:42:23 +0200
--- janino-2.5.15.orig/debian/README.Debian
+++ janino-2.5.15/debian/README.Debian
@@ -0,0 +1,11 @@
+Janino enables your application to compile Java code at runtime. It's useful
+where parts of code change often (i.e. business logic) or as a scripting engine
+that integrates seamlessly with your (Java) application. These and other use
+cases are discussed at http://janino.net/use.html .
+You may want to examine some examples, installed to
+/usr/share/doc/janino/samples/ .
+
+Janino can also act as a drop-in for javac, although this is mainly useful if
+you want to test if Janino compiles your code without any problems instead of
+using it as a replacement for a "real" Java compiler. For more information on
+janinoc, the command line interface, type "man janinoc" or run "janinoc -help".
--- janino-2.5.15.orig/debian/dirs
+++ janino-2.5.15/debian/dirs
@@ -0,0 +1,2 @@
+usr/share/java
+usr/bin
--- janino-2.5.15.orig/debian/watch
+++ janino-2.5.15/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://janino.net/download/janino-(.*)\.zip
--- janino-2.5.15.orig/debian/docs
+++ janino-2.5.15/debian/docs
@@ -0,0 +1 @@
+src/org/codehaus/janino/samples
--- janino-2.5.15.orig/debian/manpages
+++ janino-2.5.15/debian/manpages
@@ -0,0 +1 @@
+debian/janinoc.1
--- janino-2.5.15.orig/debian/janinoc
+++ janino-2.5.15/debian/janinoc
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec java -jar /usr/share/java/janino.jar "$@"
--- janino-2.5.15.orig/debian/copyright
+++ janino-2.5.15/debian/copyright
@@ -0,0 +1,40 @@
+This package was debianized by Philipp Hagemeister <ubuntu@phihag.de> on
+Sun, 17 Jun 2007 21:42:23 +0200
+
+It was downloaded from: http://janino.net
+
+Upstream Author: Arno Unkrig <aunkrig@codehaus.org>
+
+Copyright (c) 2001-2007, Arno Unkrig
+<aunkrig@codehaus.org>
+
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+ 3. The name of the author may not be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The Debian packaging is (C) 2007, Philipp Hagemeister <ubuntu@phihag.de> and
+is licensed under the New BSD license, see above.
--- janino-2.5.15.orig/debian/patches/00list
+++ janino-2.5.15/debian/patches/00list
@@ -0,0 +1,2 @@
+build-remove-hardcoded.patch
+
--- janino-2.5.15.orig/debian/patches/build-remove-hardcoded.patch
+++ janino-2.5.15/debian/patches/build-remove-hardcoded.patch
@@ -0,0 +1,82 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## build-remove-hardcoded.patch by <ubuntu@phihag.de>
+##
+## DP: Remove hardcoded paths from build.xml.
+## DP: Create a manifest in the resulting jar file to set the Compiler class as main class.
+## DP: Correct indenting
+@DPATCH@
+--- /build.xml 2007-06-03 14:15:03.000000000 +0200
++++ /build.xml 2007-05-18 23:14:10.000000000 +0200
+@@ -35,23 +35,23 @@
+ <project name="Janino" default="compile" basedir=".">
+ <description>
+ Build file for the Janino project
+- </description>
+-
++ </description>
++
+ <property file="build.properties"/>
++ <property name="janino.manifest" value="janino.manifest"/>
+-
++
+ <target name="compile" description="Compile the source">
+ <mkdir dir="build/classes"/>
+-
++
+ <javac
+ fork="yes"
+- executable="${jdk_1_2_2_home}/bin/javac"
+ srcdir="src" excludes="org/codehaus/janino/AstGeneratorVisitor.java"
+ destdir="build/classes"
+ debug="true"
+ debuglevel="source"
+ />
+ </target>
+-
++
+ <target name="javadoc" description="Build JAVADOC" depends="compile">
+ <mkdir dir="build/javadoc"/>
+ <javadoc
+@@ -64,15 +64,16 @@
+ classpath="build/classes;${ant_jar}"
+ destdir="build/javadoc"
+ packagenames="${javadoc_packages}"
+- >
+- <link offline="true" href="${jdk_javadoc_remote}" packagelistloc="${jdk_javadoc_local}"/>
+- <link offline="true" href="${ant_javadoc_remote}" packagelistloc="${ant_javadoc_local}"/>
+- </javadoc>
++ />
++ </target>
++
++ <target name="createManifest" description="Create a manifest file for the resulting jar">
++ <echo file="${janino.manifest}" append="false" message="Manifest-Version: 1.0${line.separator}Main-Class: org.codehaus.janino.Compiler${line.separator}"/>
+ </target>
+-
+- <target name="jar" description="Create the janino jar." depends="compile">
++
++ <target name="jar" description="Create the janino jar." depends="compile, createManifest">
+ <mkdir dir="build/lib"/>
+- <jar jarfile="build/lib/janino.jar" basedir="build/classes"/>
++ <jar jarfile="build/lib/janino.jar" basedir="build/classes" manifest="${janino.manifest}"/>
+ </target>
+
+ <target name="dist" description="Generate the distribution" depends="jar, javadoc">
+@@ -84,7 +85,7 @@
+ <arg value="build/lib/janino.jar"/>
+ <arg value="dummy"/>
+ </exec>
+-
++
+ <zip destfile="${janino_zip}">
+ <zipfileset file="build/lib/janino.jar" prefix="janino-${version}/lib"/>
+ <zipfileset dir="build/javadoc" prefix="janino-${version}/javadoc"/>
+@@ -92,7 +93,8 @@
+ <zipfileset file="build.*" prefix="janino-${version}"/>
+ </zip>
+ </target>
+-
++
+ <target name="clean" description="Clean built files.">
+ <delete dir="build"/>
++ <delete file="${janino.manifest}"/>
+ </target>