--- libjxp-java-1.6.1.orig/debian/control +++ libjxp-java-1.6.1/debian/control @@ -0,0 +1,40 @@ +Source: libjxp-java +Section: java +Priority: extra +Maintainer: gregor herrmann +Uploaders: tony mancill +Build-Depends: debhelper (>= 5), ant, quilt +Build-Depends-Indep: default-jdk-builddep, junit, libcommons-fileupload-java, + libonemind-commons-java-java, libonemind-commons-invoke-java, junit, ant-optional +Standards-Version: 3.8.3 +Homepage: http://jxp.sourceforge.net/ +Vcs-Svn: http://svn.toastfreeware.priv.at/debian/libjxp-java/trunk/ +Vcs-Browser: http://svn.toastfreeware.priv.at/wsvn/ToastfreewareDebian/libjxp-java + +Package: libjxp-java +Architecture: all +Depends: default-jre-headless | java-runtime-headless +Description: Java template engine/script processor + Jxp (Java scripted page) is a script-processor that process JSP-like files. + It contains a parser to parse the script file into an abstract syntax tree + and a tree processor (JxpProcessor) that will process the syntax tree to + execute the code using reflection API to produce output. The main uses of Jxp + are: + . + * as a script language engine to increase flexibility in the user + application + * as a template engine to produce dynamic text output + . + Some of the main features of Jxp include: + . + * Java as script/template language. Why learn another one? ;) + * Run JSP-like code outside of servlet container + * support common java language 1.4 constructs (partial 1.5 syntax support + on jdk 1.4) + * support common JSP constructs including import directive, declaration, EL + etc (taglib not supported, yet) + * practical template sources management framework + * support caching of parsed syntax tree to eliminate reparse of template + * a servlet implementation to enable web-scripting + * extensible processing context for defining built-in function on the + scripts --- libjxp-java-1.6.1.orig/debian/libjxp-java.docs +++ libjxp-java-1.6.1/debian/libjxp-java.docs @@ -0,0 +1 @@ +dist/docs/api --- libjxp-java-1.6.1.orig/debian/libjxp-java.links +++ libjxp-java-1.6.1/debian/libjxp-java.links @@ -0,0 +1 @@ +usr/share/java/jxp-1.6.1.jar usr/share/java/jxp.jar --- libjxp-java-1.6.1.orig/debian/copyright +++ libjxp-java-1.6.1/debian/copyright @@ -0,0 +1,89 @@ +The code was downloaded from http://sourceforge.net/projects/jxp/ + +Copyright and license: + + Copyright (C) 2004 TiongHiang Lee + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this library; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems the GNU Lesser General Public License, version 2.1 can be +found at /usr/share/common-licenses/LGPL-2.1. + +~~~~~ + +The files: + +src/java/org/onemind/jxp/parser/JxpParser.jjt, and +src/java/org/onemind/jxp/parser/JxpParser.jj as distributed in the +upstream tarball include the following notice: + +* Sun Public License Notice +* +* The contents of this file are subject to the Sun Public License +* Version 1.0 (the "License"). You may not use this file except in +* compliance with the License. A copy of the License is available at +* http://www.sun.com/ +* +* The Original Code is JavaCC. The Initial Developer of the Original +* Code is Sun Microsystems, Inc. Portions Copyright 1996-2002 Sun +* Microsystems, Inc. All Rights Reserved. +*/ +/* +* Altered by Tiong Lee (thlee@onemindsoft.org) extensive to be a JJTree grammar +*/ + +We have contacted the upstream author TiongHiang Lee regarding the source +from which these derived works were created. The original file is Java1.1.jj, +part of the JavaCC software (https://javacc.dev.java.net/) + +Java1.1.jj is also present in the Debian package javacc-doc (source +package javacc: examples/JavaGrammars/Java1.1.jj). The file is no longer +distributed under the SPL, but instead under a BSD-like license. + +The full copyright and license statement is as follows: + +/* Copyright (c) 2006, Sun Microsystems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of the Sun Microsystems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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 copyright 2009, gregor herrmann +and tony mancill , and is licensed under the same terms +as the software itself. --- libjxp-java-1.6.1.orig/debian/watch +++ libjxp-java-1.6.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/jxp/jxp-(.+)-src\.tar\.gz --- libjxp-java-1.6.1.orig/debian/libjxp-java.install +++ libjxp-java-1.6.1/debian/libjxp-java.install @@ -0,0 +1 @@ +target/jxp-1.6.1.jar usr/share/java --- libjxp-java-1.6.1.orig/debian/compat +++ libjxp-java-1.6.1/debian/compat @@ -0,0 +1 @@ +5 --- libjxp-java-1.6.1.orig/debian/README.source +++ libjxp-java-1.6.1/debian/README.source @@ -0,0 +1,6 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +See /usr/share/doc/quilt/README.source for a detailed explanation. + --- libjxp-java-1.6.1.orig/debian/changelog +++ libjxp-java-1.6.1/debian/changelog @@ -0,0 +1,14 @@ +libjxp-java (1.6.1-1) unstable; urgency=low + + [ gregor herrmann ] + * Initial release (Closes: #519122) + + [ tony mancill ] + * Include clarifying statement in debian/copyright regarding SPL + licensed files now distributed under the BSD license. + * debian/rules sets DISPLAY (needed for junit tests) + + [ gregor herrmann ] + * Set Standards-Version to 3.8.3 (no changes). + + -- gregor herrmann Wed, 19 Aug 2009 17:37:16 +0200 --- libjxp-java-1.6.1.orig/debian/rules +++ libjxp-java-1.6.1/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + DISPLAY="" JAVA_HOME=/usr/lib/jvm/default-java ant -Dnoget=true jar javadoc + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + ant clean + dh_clean build-stamp install-stamp + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + touch $@ + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libjxp-java-1.6.1.orig/debian/patches/debian-libs.patch +++ libjxp-java-1.6.1/debian/patches/debian-libs.patch @@ -0,0 +1,32 @@ +Author: gregor herrmann +Description: use Debian libraries + +--- a/build.xml ++++ b/build.xml +@@ -6,7 +6,7 @@ + + + +- ++ + + + +@@ -29,8 +29,10 @@ + + + ++ + + + +@@ -173,4 +175,4 @@ + + + +- +\ No newline at end of file ++ --- libjxp-java-1.6.1.orig/debian/patches/fix-test.patch +++ libjxp-java-1.6.1/debian/patches/fix-test.patch @@ -0,0 +1,14 @@ +Author: tony mancill +Description: fix a failing test + +--- a/src/test/org/onemind/jxp/testJdk15.jxp ++++ b/src/test/org/onemind/jxp/testJdk15.jxp +@@ -6,7 +6,7 @@ + var values[] = { "a", "b", "c" }; + + //test function from math +-assert(abs(-1.3f)==1.3); ++assert(abs(-1.3f).compareTo(Double.valueOf(1.3d)) == 0); + + //test methods from test class + //staticPrivateMethod(); --- libjxp-java-1.6.1.orig/debian/patches/series +++ libjxp-java-1.6.1/debian/patches/series @@ -0,0 +1,3 @@ +debian-libs.patch +fix-test.patch +fix-javadoc.patch --- libjxp-java-1.6.1.orig/debian/patches/fix-javadoc.patch +++ libjxp-java-1.6.1/debian/patches/fix-javadoc.patch @@ -0,0 +1,14 @@ +Author: gregor herrmann +Description: tell javadoc where the sources are actually + +--- a/build.xml ++++ b/build.xml +@@ -144,7 +144,7 @@ + + + +- ++ + + +