--- janino-2.5.15.orig/debian/copyright +++ janino-2.5.15/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by Philipp Hagemeister on +Sun, 17 Jun 2007 21:42:23 +0200 + +It was downloaded from: http://janino.net + +Upstream Author: Arno Unkrig + +Copyright (c) 2001-2007, Arno Unkrig + + + 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 and +is licensed under the New BSD license, see above. --- janino-2.5.15.orig/debian/ant.properties +++ janino-2.5.15/debian/ant.properties @@ -0,0 +1,2 @@ +ant.build.javac.target=1.4 +ant.build.javac.source=1.4 --- 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/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/changelog +++ janino-2.5.15/debian/changelog @@ -0,0 +1,67 @@ +janino (2.5.15-1ubuntu2) karmic; urgency=low + + * Added debian/ant.properties to build java2-compatible code + + -- Thierry Carrez Fri, 21 Aug 2009 11:45:36 +0200 + +janino (2.5.15-1ubuntu1) karmic; urgency=low + + * debian/control: Set janino runtime dependency on + "default-jre-headless | java2-runtime-headless" (LP: #387884) + * debian/control, debian/rules: Build-depend on default-jdk + + -- Thierry Carrez Thu, 18 Jun 2009 14:02:18 +0200 + +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 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 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 Tue, 29 Jan 2008 15:30:42 +0100 + +janino (2.5.11-1) unstable; urgency=low + + * New upstream version + + -- Philipp Hagemeister Thu, 09 Nov 2007 23:58:47 +0200 + +janino (2.5.10-1) unstable; urgency=low + + * New upstream version + + -- Philipp Hagemeister Thu, 13 Sep 2007 21:21:46 +0200 + +janino (2.5.9-1) unstable; urgency=low + + * New upstream version + * Better description + + -- Philipp Hagemeister 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 Sun, 17 Jun 2007 21:42:23 +0200 --- janino-2.5.15.orig/debian/compat +++ janino-2.5.15/debian/compat @@ -0,0 +1 @@ +5 --- 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/default-java + +# 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>.*/\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 +++ 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/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/control +++ janino-2.5.15/debian/control @@ -0,0 +1,19 @@ +Source: janino +Section: libs +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Philipp Hagemeister +Standards-Version: 3.8.0 +Build-Depends: cdbs, debhelper (>= 5), dpatch +Build-Depends-Indep: ant, default-jdk, unzip +Homepage: http://janino.net + +Package: janino +Architecture: all +Depends: default-jre-headless | java2-runtime-headless +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/docs +++ janino-2.5.15/debian/docs @@ -0,0 +1 @@ +src/org/codehaus/janino/samples --- 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/manpages +++ janino-2.5.15/debian/manpages @@ -0,0 +1 @@ +debian/janinoc.1 --- 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 +.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/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 +## +## 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 @@ + + + Build file for the Janino project +- +- ++ ++ + ++ +- ++ + + +- ++ + + +- ++ + + + +- +- +- ++ /> ++ ++ ++ ++ + +- +- ++ ++ + +- ++ + + + +@@ -84,7 +85,7 @@ + + + +- ++ + + + +@@ -92,7 +93,8 @@ + + + +- ++ + + ++ + --- janino-2.5.15.orig/debian/patches/00list +++ janino-2.5.15/debian/patches/00list @@ -0,0 +1,2 @@ +build-remove-hardcoded.patch +