diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/freemarker | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/freemarker')
-rw-r--r-- | dev-java/freemarker/Manifest | 1 | ||||
-rw-r--r-- | dev-java/freemarker/files/freemarker-2.3.10-gentoo.patch | 54 | ||||
-rw-r--r-- | dev-java/freemarker/files/freemarker-2.3.13-PyJavaInstance.patch | 22 | ||||
-rw-r--r-- | dev-java/freemarker/files/freemarker-2.3.13-gentoo.patch | 126 | ||||
-rw-r--r-- | dev-java/freemarker/files/freemarker-jython-2.2.patch | 20 | ||||
-rw-r--r-- | dev-java/freemarker/freemarker-2.3.13-r1.ebuild | 68 | ||||
-rw-r--r-- | dev-java/freemarker/freemarker-2.3.13-r2.ebuild | 81 | ||||
-rw-r--r-- | dev-java/freemarker/freemarker-2.3.13.ebuild | 73 | ||||
-rw-r--r-- | dev-java/freemarker/metadata.xml | 8 |
9 files changed, 453 insertions, 0 deletions
diff --git a/dev-java/freemarker/Manifest b/dev-java/freemarker/Manifest new file mode 100644 index 000000000000..de97f1f22035 --- /dev/null +++ b/dev-java/freemarker/Manifest @@ -0,0 +1 @@ +DIST freemarker-2.3.13.tar.gz 2136791 SHA256 00b43c28bc5b141e53ad9e56c472f40774b5638f96fc29f3d7cfa97048830eb5 SHA512 9216bc97e74779617ec91916842185472c3cfd4c5625168ddd2f4404237767df44c62d8308af8bed0ab10d72c8835c97daab7fbc1efa80c3e01c861dd334ec3b WHIRLPOOL f46ae311feb122e7ce52d2f4b518216c72135e5e6491d02cbef177fd76b798e7b7fa883a22067225e5a4de2163066696fb34f21708a5d821daf0d82c1460d9cc diff --git a/dev-java/freemarker/files/freemarker-2.3.10-gentoo.patch b/dev-java/freemarker/files/freemarker-2.3.10-gentoo.patch new file mode 100644 index 000000000000..2282b04de165 --- /dev/null +++ b/dev-java/freemarker/files/freemarker-2.3.10-gentoo.patch @@ -0,0 +1,54 @@ +diff -Nru freemarker-2.3.10.vanilla/build.xml freemarker-2.3.10/build.xml +--- freemarker-2.3.10.vanilla/build.xml 2007-05-06 11:46:06.000000000 +0200 ++++ freemarker-2.3.10/build.xml 2007-05-06 11:48:55.000000000 +0200 +@@ -55,16 +55,19 @@ + <pathelement path="${lib.log4j}"/>
+ <pathelement path="${lib.rhino}"/>
+ <pathelement path="${java.class.path}"/>
++ <fileset dir="lib" includes="*.jar"/>
+ </path>
+
+ <path id="compile.classpath">
+ <path refid="compile.nojsp.classpath"/>
+ <pathelement path="${lib.servlet23}"/>
++ <fileset dir="lib" includes="*.jar"/>
+ </path>
+
+ <path id="compile.jsp2.classpath">
+ <path refid="compile.nojsp.classpath"/>
+ <pathelement path="${lib.servlet24}"/>
++ <fileset dir="lib" includes="*.jar"/>
+ </path>
+
+ <path id="compile.classpath.testcases">
+@@ -72,6 +75,7 @@ + <pathelement path="${lib.jython}"/>
+ <pathelement path="${lib.jdom}"/>
+ <pathelement path="${lib.servlet23}"/>
++ <fileset dir="lib" includes="*.jar"/>
+ </path>
+
+ <path id="compile.classpath.javadoc">
+@@ -89,12 +93,14 @@ + <pathelement path="${src.dir}"/>
+ <pathelement path="${build.javacc.dir}"/>
+ <pathelement path="${java.class.path}"/>
++ <fileset dir="lib" includes="*.jar"/>
+ </path>
+
+ <path id="compile.classpath.examples">
+ <pathelement path="${lib.servlet23}"/>
+ <pathelement path="${lib.dir}/freemarker.jar"/>
+ <pathelement path="${lib.struts}"/>
++ <fileset dir="lib" includes="*.jar"/>
+ </path>
+
+ <path id="full.classpath">
+@@ -110,6 +116,7 @@ + <pathelement path="${lib.logkit}"/>
+ <pathelement path="${lib.log4j}"/>
+ <pathelement path="${java.class.path}"/>
++ <fileset dir="lib" includes="*.jar"/>
+ </path>
+
+
diff --git a/dev-java/freemarker/files/freemarker-2.3.13-PyJavaInstance.patch b/dev-java/freemarker/files/freemarker-2.3.13-PyJavaInstance.patch new file mode 100644 index 000000000000..b0544d170b15 --- /dev/null +++ b/dev-java/freemarker/files/freemarker-2.3.13-PyJavaInstance.patch @@ -0,0 +1,22 @@ +--- src/freemarker/ext/jython/JythonModelCache.java.orig 2015-07-05 08:47:07.035000000 +0000 ++++ src/freemarker/ext/jython/JythonModelCache.java 2015-07-05 08:49:31.157000000 +0000 +@@ -10,7 +10,7 @@ + import org.python.core.PyDictionary;
+ import org.python.core.PyFloat;
+ import org.python.core.PyInteger;
+-import org.python.core.PyJavaInstance;
++import org.python.core.PyJavaType;
+ import org.python.core.PyLong;
+ import org.python.core.PyNone;
+ import org.python.core.PyObject;
+@@ -37,8 +37,8 @@ + protected TemplateModel create(Object obj) {
+ boolean asHash = false;
+ boolean asSequence = false;
+- if(obj instanceof PyJavaInstance) {
+- Object jobj = ((PyJavaInstance)obj).__tojava__(java.lang.Object.class);
++ if(obj instanceof PyJavaType) {
++ Object jobj = PyJavaType.wrapJavaObject(obj).__tojava__(Object.class);
+ // FreeMarker-aware, Jython-wrapped Java objects are left intact
+ if(jobj instanceof TemplateModel) {
+ return (TemplateModel)jobj;
diff --git a/dev-java/freemarker/files/freemarker-2.3.13-gentoo.patch b/dev-java/freemarker/files/freemarker-2.3.13-gentoo.patch new file mode 100644 index 000000000000..9eca29a827ad --- /dev/null +++ b/dev-java/freemarker/files/freemarker-2.3.13-gentoo.patch @@ -0,0 +1,126 @@ +diff -Nru freemarker-2.3.13.vanilla/build.xml freemarker-2.3.13/build.xml +--- freemarker-2.3.13.vanilla/build.xml 2008-06-21 00:46:08.000000000 +0200 ++++ freemarker-2.3.13/build.xml 2008-06-21 00:46:48.000000000 +0200 +@@ -69,21 +69,28 @@ + <pathelement path="${lib.log4j}"/> + <pathelement path="${lib.rhino}"/> + <pathelement path="${java.class.path}"/> ++ <fileset dir="lib" includes="*.jar"/> + </path> + + <path id="compile.classpath"> + <path refid="compile.nojsp.classpath"/> + <pathelement path="${lib.jsp21}"/> ++ <fileset dir="lib" includes="*.jar"/> ++ <fileset dir="lib/jsp-2.1" includes="*.jar"/> + </path> + + <path id="compile.jsp1.classpath"> + <path refid="compile.nojsp.classpath"/> + <pathelement path="${lib.jsp12}"/> ++ <fileset dir="lib" includes="*.jar"/> ++ <fileset dir="lib/jsp-1.2" includes="*.jar"/> + </path> + + <path id="compile.jsp2.classpath"> + <path refid="compile.nojsp.classpath"/> + <pathelement path="${lib.jsp20}"/> ++ <fileset dir="lib" includes="*.jar"/> ++ <fileset dir="lib/jsp-2.0" includes="*.jar"/> + </path> + + <path id="compile.classpath.testcases"> +@@ -92,6 +99,7 @@ + <pathelement path="${lib.jdom}"/> + <pathelement path="${lib.servlet}"/> + <pathelement path="${lib.jsp20}"/> ++ <fileset dir="lib" includes="*.jar"/> + </path> + + <path id="compile.classpath.javadoc"> +@@ -110,12 +118,14 @@ + <pathelement path="${src.dir}"/> + <pathelement path="${build.javacc.dir}"/> + <pathelement path="${java.class.path}"/> ++ <fileset dir="lib" includes="*.jar"/> + </path> + + <path id="compile.classpath.examples"> + <pathelement path="${lib.servlet}"/> + <pathelement path="${lib.dir}/freemarker.jar"/> + <pathelement path="${lib.struts}"/> ++ <fileset dir="lib" includes="*.jar"/> + </path> + + <path id="full.classpath"> +@@ -131,6 +141,7 @@ + <pathelement path="${lib.logkit}"/> + <pathelement path="${lib.log4j}"/> + <pathelement path="${java.class.path}"/> ++ <fileset dir="lib" includes="*.jar"/> + </path> + + +@@ -180,7 +191,6 @@ + + <patternset id="freemarker.compile.jdk15"> + <include name="freemarker/ext/beans/EnumModels.java"/> +- <include name="freemarker/ext/dom/SunInternalXalanXPathSupport.java"/>
+ </patternset> + + <patternset id="freemarker.compile.xalan"> +@@ -311,7 +321,6 @@ + <available file="lib/xalan.jar"/>
+ </and> + </condition> +- <antcall target="fetchlibs"/> + <available + property="log4j.available" + classname="org.apache.log4j.Logger" +diff -Nru freemarker-2.3.13.vanilla/src/freemarker/ext/jsp/FreeMarkerPageContext21.java freemarker-2.3.13/src/freemarker/ext/jsp/FreeMarkerPageContext21.java +--- freemarker-2.3.13.vanilla/src/freemarker/ext/jsp/FreeMarkerPageContext21.java 2008-06-21 00:46:08.000000000 +0200 ++++ freemarker-2.3.13/src/freemarker/ext/jsp/FreeMarkerPageContext21.java 2008-06-21 00:46:12.000000000 +0200 +@@ -2,11 +2,13 @@ + + import java.security.AccessController; + import java.security.PrivilegedAction; ++import java.util.Enumeration; + + import javax.el.ELContext; + import javax.servlet.jsp.JspApplicationContext; + import javax.servlet.jsp.JspContext; + import javax.servlet.jsp.JspFactory; ++import javax.servlet.jsp.ErrorData; + import javax.servlet.jsp.PageContext; + import javax.servlet.jsp.el.ELException; + import javax.servlet.jsp.el.ExpressionEvaluator; +@@ -24,6 +26,9 @@ + class FreeMarkerPageContext21 extends FreeMarkerPageContext { + private static final Logger logger = Logger.getLogger("freemarker.jsp"); + ++ public ErrorData getErrorData() { return null; } ++ public Enumeration getAttributeNames() { return getServletContext().getAttributeNames(); } ++ + static { + if(JspFactory.getDefaultFactory() == null) { + JspFactory.setDefaultFactory(new FreeMarkerJspFactory21()); +diff -Nru freemarker-2.3.13.vanilla/src/freemarker/ext/jython/JythonHashModel.java freemarker-2.3.13/src/freemarker/ext/jython/JythonHashModel.java +--- freemarker-2.3.13.vanilla/src/freemarker/ext/jython/JythonHashModel.java 2008-06-21 00:46:08.000000000 +0200 ++++ freemarker-2.3.13/src/freemarker/ext/jython/JythonHashModel.java 2008-06-21 00:46:12.000000000 +0200 +@@ -137,7 +137,7 @@ + { + throw new TemplateModelException(e); + } +- throw new TemplateModelException("'?keys' is not supported as there is no 'keys' nor 'keySet' attribute on an instance of " + object.__class__.__name__); ++ throw new TemplateModelException("'?keys' is not supported as there is no 'keys' nor 'keySet' attribute on an instance of " + object.getType()); + } + + /** +@@ -157,6 +157,6 @@ + { + throw new TemplateModelException(e); + } +- throw new TemplateModelException("'?values' is not supported as there is no 'values' attribute on an instance of " + object.__class__.__name__); ++ throw new TemplateModelException("'?values' is not supported as there is no 'values' attribute on an instance of " + object.getType()); + } + } diff --git a/dev-java/freemarker/files/freemarker-jython-2.2.patch b/dev-java/freemarker/files/freemarker-jython-2.2.patch new file mode 100644 index 000000000000..0d0d387ee1b4 --- /dev/null +++ b/dev-java/freemarker/files/freemarker-jython-2.2.patch @@ -0,0 +1,20 @@ +diff -Naur src.orig/freemarker/ext/jython/JythonHashModel.java src/freemarker/ext/jython/JythonHashModel.java +--- src.orig/freemarker/ext/jython/JythonHashModel.java 2007-04-21 01:06:15.000000000 +1200 ++++ src/freemarker/ext/jython/JythonHashModel.java 2008-02-29 18:56:57.000000000 +1300 +@@ -137,7 +137,7 @@ + {
+ throw new TemplateModelException(e);
+ }
+- throw new TemplateModelException("'?keys' is not supported as there is no 'keys' nor 'keySet' attribute on an instance of " + object.__class__.__name__);
++ throw new TemplateModelException("'?keys' is not supported as there is no 'keys' nor 'keySet' attribute on an instance of " + object.getType());
+ }
+
+ /**
+@@ -157,6 +157,6 @@ + {
+ throw new TemplateModelException(e);
+ }
+- throw new TemplateModelException("'?values' is not supported as there is no 'values' attribute on an instance of " + object.__class__.__name__);
++ throw new TemplateModelException("'?values' is not supported as there is no 'values' attribute on an instance of " + object.getType());
+ }
+ }
diff --git a/dev-java/freemarker/freemarker-2.3.13-r1.ebuild b/dev-java/freemarker/freemarker-2.3.13-r1.ebuild new file mode 100644 index 000000000000..1921439a5990 --- /dev/null +++ b/dev-java/freemarker/freemarker-2.3.13-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-nodeps" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION=" FreeMarker is a template engine; a generic tool to generate text output based on templates" +HOMEPAGE="http://freemarker.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="freemarker" +SLOT="2.3" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +COMMON_DEP=" + >=dev-java/jython-2.2:0 + java-virtuals/servlet-api:2.3 + java-virtuals/servlet-api:2.4 + java-virtuals/servlet-api:2.5 + dev-java/jaxen:1.1 + dev-java/juel:0" +RDEPEND="${COMMON_DEP} + >=virtual/jre-1.5" +DEPEND="${COMMON_DEP} + >=virtual/jdk-1.5 + dev-java/javacc:0" + +java_prepare() { + find -name '*.jar' -exec rm -v {} + || die + + epatch "${FILESDIR}/${P}-gentoo.patch" + + # for ecj-3.5 + java-ant_rewrite-bootclasspath auto +} + +src_compile() { + # BIG FAT WARNING: + # clean target removes lib/ directory!! + eant clean + + mkdir -p lib/jsp-{1.2,2.0,2.1} || die + pushd lib >/dev/null || die + java-pkg_jar-from --virtual --into jsp-1.2 servlet-api-2.3 + java-pkg_jar-from --virtual --into jsp-2.0 servlet-api-2.4 + java-pkg_jar-from --virtual --into jsp-2.1 servlet-api-2.5 + java-pkg_jar-from jaxen-1.1 + java-pkg_jar-from jython + java-pkg_jar-from --build-only javacc + java-pkg_jar-from juel + popd >/dev/null + + eant jar $(use_doc) -Djavacc.home=/usr/share/javacc/lib +} + +src_install() { + java-pkg_dojar lib/${PN}.jar + dodoc README.txt + + use doc && java-pkg_dojavadoc build/api + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/freemarker/freemarker-2.3.13-r2.ebuild b/dev-java/freemarker/freemarker-2.3.13-r2.ebuild new file mode 100644 index 000000000000..9ece82cd09cc --- /dev/null +++ b/dev-java/freemarker/freemarker-2.3.13-r2.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-nodeps" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION=" FreeMarker is a template engine; a generic tool to generate text output based on templates" +HOMEPAGE="http://freemarker.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="freemarker" +SLOT="2.3" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="dev-java/jython:2.7 + java-virtuals/servlet-api:2.3 + java-virtuals/servlet-api:2.4 + java-virtuals/servlet-api:2.5 + dev-java/jaxen:1.1 + dev-java/juel:0" +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + dev-java/javacc:0" + +# [0]: Patch so that we can compile the package +# against Jython-2.7. +# [1]: Gentoo specific stuff. +PATCHES=( + "${FILESDIR}"/${P}-PyJavaInstance.patch + "${FILESDIR}"/${P}-gentoo.patch +) + +java_prepare() { + # Do away with bundled jar files. + find -name '*.jar' -exec rm -v {} + || die + + # Apply patches. + epatch ${PATCHES[@]} + + # Weed out comments (some contain UTF-8 chars javac cannnot deal with). + sed -i -e '/*/d;' \ + src/freemarker/template/LocalizedString.java + + # For ecj-3.5. + java-ant_rewrite-bootclasspath auto +} + +src_compile() { + # BIG FAT WARNING: + # clean target removes lib/ directory!! + eant clean + + mkdir -p lib/jsp-{1.2,2.0,2.1} || die + pushd lib >/dev/null || die + java-pkg_jar-from --virtual --into jsp-1.2 servlet-api-2.3 + java-pkg_jar-from --virtual --into jsp-2.0 servlet-api-2.4 + java-pkg_jar-from --virtual --into jsp-2.1 servlet-api-2.5 + java-pkg_jar-from jaxen-1.1 + java-pkg_jar-from jython-2.7 + java-pkg_jar-from --build-only javacc + java-pkg_jar-from juel + popd >/dev/null + + eant jar $(use_doc) -Djavacc.home=/usr/share/javacc/lib +} + +src_install() { + java-pkg_dojar lib/${PN}.jar + dodoc README.txt + + use doc && java-pkg_dojavadoc build/api + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/freemarker/freemarker-2.3.13.ebuild b/dev-java/freemarker/freemarker-2.3.13.ebuild new file mode 100644 index 000000000000..34fae4fb5449 --- /dev/null +++ b/dev-java/freemarker/freemarker-2.3.13.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-nodeps" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION=" FreeMarker is a template engine; a generic tool to generate text output based on templates" +HOMEPAGE="http://freemarker.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="freemarker" +SLOT="2.3" +KEYWORDS="amd64 ppc x86" +IUSE="" + +COMMON_DEP="dev-java/javacc + >=dev-java/jython-2.2:0 + java-virtuals/servlet-api:2.3 + java-virtuals/servlet-api:2.4 + java-virtuals/servlet-api:2.5 + dev-java/jaxen:1.1 + dev-java/juel:0" + +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +java_prepare() { + epatch "${FILESDIR}/${P}-gentoo.patch" + + # for ecj-3.5 + java-ant_rewrite-bootclasspath auto + + cd "${S}/lib/" + rm -f *.jar + + rm -f "${S}/src/freemarker/testcase/servlets/WEB-INF/taglib2.jar" + rm -f "${S}/src/freemarker/testcase/servlets/WEB-INF/lib/taglib-foo.jar" +} + +src_compile() { + # BIG FAT WARNING: + # clean target removes lib/ directory!! + eant clean + + mkdir -p lib/jsp-1.2 + mkdir -p lib/jsp-2.0 + mkdir -p lib/jsp-2.1 + cd lib/ + java-pkg_jar-from --virtual --into jsp-1.2 servlet-api-2.3 + java-pkg_jar-from --virtual --into jsp-2.0 servlet-api-2.4 + java-pkg_jar-from --virtual --into jsp-2.1 servlet-api-2.5 + java-pkg_jar-from jaxen-1.1 + java-pkg_jar-from jython + java-pkg_jar-from javacc + java-pkg_jar-from juel + + cd "${S}" + eant jar $(use_doc) -Djavacc.home=/usr/share/javacc/lib +} + +src_install() { + java-pkg_dojar lib/${PN}.jar + dodoc README.txt || die + + use doc && java-pkg_dojavadoc build/api + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/freemarker/metadata.xml b/dev-java/freemarker/metadata.xml new file mode 100644 index 000000000000..5425ccbe2950 --- /dev/null +++ b/dev-java/freemarker/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <upstream> + <remote-id type="sourceforge">freemarker</remote-id> + </upstream> +</pkgmetadata> |