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/velocity | |
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/velocity')
-rw-r--r-- | dev-java/velocity/Manifest | 1 | ||||
-rw-r--r-- | dev-java/velocity/files/velocity-1.4-versioned_jar.patch | 48 | ||||
-rw-r--r-- | dev-java/velocity/metadata.xml | 5 | ||||
-rw-r--r-- | dev-java/velocity/velocity-1.7.ebuild | 87 |
4 files changed, 141 insertions, 0 deletions
diff --git a/dev-java/velocity/Manifest b/dev-java/velocity/Manifest new file mode 100644 index 000000000000..ecdc3f9593b1 --- /dev/null +++ b/dev-java/velocity/Manifest @@ -0,0 +1 @@ +DIST velocity-1.7.tar.gz 5882643 SHA256 6cabbc45ead01b32e9833db31b1726f2e34f5ff6a03346df9822e70909d06766 SHA512 542c9cc0efa118693bf1c952ac4b0c7c3d0229ef804afaa4f0f1c01ad40b0112055c21df7f800c302bf173d58461a864b29b9bc4b9174029d9748f88f2fcf9ab WHIRLPOOL 59e44fb361162be0f07917f2a137a01cb26551da64896a8b7f3a747e328e6ec72d7a32d620aefddce160617b36132047d932a253dcf8e2afd40ae6712f462be9 diff --git a/dev-java/velocity/files/velocity-1.4-versioned_jar.patch b/dev-java/velocity/files/velocity-1.4-versioned_jar.patch new file mode 100644 index 000000000000..5b445594058c --- /dev/null +++ b/dev-java/velocity/files/velocity-1.4-versioned_jar.patch @@ -0,0 +1,48 @@ +diff -ru velocity-1.4/build/build.xml velocity-1.4-gentoo/build/build.xml +--- velocity-1.4/build/build.xml 2004-04-14 08:26:40.000000000 -0400 ++++ velocity-1.4-gentoo/build/build.xml 2005-07-14 21:33:37.000000000 -0400 +@@ -287,7 +287,7 @@ + <!-- =================================================================== -->
+ <target name="jar" depends="compile">
+
+- <jar jarfile="${build.dir}/${project}-${version}.jar">
++ <jar jarfile="${build.dir}/${project}.jar">
+
+ <fileset dir="${build.dest}">
+ <exclude name="**/package.html"/>
+@@ -324,7 +324,7 @@ + <!-- =================================================================== -->
+ <target name="jar-J2EE" depends="compile-J2EE" if="J2EE.present">
+
+- <jar jarfile="${build.dir}/${project}-J2EE-${version}.jar"
++ <jar jarfile="${build.dir}/${project}-J2EE.jar"
+ basedir="${build.dest}"
+ excludes="**/package.html"
+ />
+@@ -336,7 +336,7 @@ + <!-- =================================================================== -->
+ <target name="jar-core" depends="compile">
+
+- <jar compress="true" jarfile="${build.dir}/${project}-core-${version}.jar">
++ <jar compress="true" jarfile="${build.dir}/${project}-core.jar">
+ <fileset dir="${build.dest}">
+ <exclude name="**/package.html"/>
+ <exclude name="org/apache/oro/**"/>
+@@ -356,7 +356,7 @@ + <!-- =================================================================== -->
+ <target name="jar-util" depends="compile">
+
+- <jar jarfile="${build.dir}/${project}-util-${version}.jar">
++ <jar jarfile="${build.dir}/${project}-util.jar">
+ <fileset dir="${build.dest}">
+ <exclude name="**/package.html"/>
+ <include name="org/apache/velocity/anakia/**"/>
+@@ -373,7 +373,7 @@ + <!-- =================================================================== -->
+ <target name="jar-servlet" depends="compile">
+
+- <jar jarfile="${build.dir}/${project}-servlet-${version}.jar">
++ <jar jarfile="${build.dir}/${project}-servlet.jar">
+ <fileset dir="${build.dest}">
+ <exclude name="**/package.html"/>
+ <include name="org/apache/velocity/servlet/**"/>
diff --git a/dev-java/velocity/metadata.xml b/dev-java/velocity/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/velocity/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +</pkgmetadata> diff --git a/dev-java/velocity/velocity-1.7.ebuild b/dev-java/velocity/velocity-1.7.ebuild new file mode 100644 index 000000000000..f4ad82edfbe3 --- /dev/null +++ b/dev-java/velocity/velocity-1.7.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +JAVA_PKG_IUSE="examples doc source" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="A Java-based template engine for easy creation/rendering of documents that format and present data" +HOMEPAGE="http://velocity.apache.org" +SRC_URI="mirror://apache/${PN}/engine/${PV}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="test" + +CDEPEND=" + dev-java/commons-collections:0 + dev-java/commons-lang:2.1 + dev-java/commons-logging:0 + dev-java/jdom:1.0 + dev-java/log4j:0 + dev-java/avalon-logkit:2.0 + dev-java/jakarta-oro:2.0 + java-virtuals/servlet-api:2.3 + dev-java/werken-xpath:0 + dev-java/ant-core:0 +" +DEPEND="${CDEPEND} + >=virtual/jdk-1.4 + test? ( + dev-java/ant-junit:0 + dev-java/ant-antlr:0 + dev-db/hsqldb:0 + ) +" +RDEPEND="${CDEPEND} + >=virtual/jre-1.4" + +JAVA_PKG_FILTER_COMPILER="jikes" +JAVA_ANT_REWRITE_CLASSPATH="yes" + +EANT_GENTOO_CLASSPATH=" + commons-collections + commons-lang-2.1 + commons-logging + jdom-1.0 + log4j + avalon-logkit-2.0 + jakarta-oro-2.0 + servlet-api-2.3 + werken-xpath + ant-core +" + +# One test fails. see #219668 +RESTRICT="test" + +java_prepare() { + rm -v *.jar lib/test/*.jar lib/*.jar || die +} + +src_compile () { + cd "${S}"/build + eant jar -Dskip-download=true #prebuilt javadocs +} + +src_test() { + mkdir -p bin/test-lib || die + cd bin/test-lib || die + java-pkg_jar-from junit,hsqldb + java-pkg_jar-from --virtual servlet-api-2.3 + cd "${S}"/build + ANT_TASKS="ant-junit ant-antlr" eant test -Dskip-download=true +} + +src_install () { + java-pkg_newjar bin/*.jar + + dodoc NOTICE README.txt + # has other stuff besides api too + use doc && java-pkg_dohtml -r docs/* + use examples && java-pkg_doexamples examples + use source && java-pkg_dosrc src/java/* +} |