This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to branch master in repository maven2.
commit 269b22df055492265e19d48d1ecd0b6dab1af6a6 Author: Paul Cager <[email protected]> Date: Sat May 26 22:20:42 2007 +0000 Initial import of prototype packaging for maven. There is still much to do before it could be uploaded, but at least this gives us a feel for how much work is left to do! --- debian/build.xml | 78 +++++++++++++++++++++++++++++ debian/changelog | 7 +++ debian/compat | 1 + debian/control | 31 ++++++++++++ debian/copyright | 10 ++++ debian/libcommons-openpgp-java-doc.doc-base | 9 ++++ debian/rules | 50 ++++++++++++++++++ 7 files changed, 186 insertions(+) diff --git a/debian/build.xml b/debian/build.xml new file mode 100644 index 0000000..32e4983 --- /dev/null +++ b/debian/build.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?> + +<!-- + This build.xml file was written for the Debian project. + This file copyright (c) Paul Cager <[email protected]> + + This software and documentation is provided "as is," and + the copyright holders and contributing author(s) make no + representations or warranties, express or implied, including + but not limited to, warranties of merchantability or fitness + for any particular purpose or that the use of the software or + documentation will not infringe any third party patents, + copyrights, trademarks or other rights. + + The copyright holders and contributing author(s) will not be + liable for any direct, indirect, special or consequential damages + arising out of any use of the software or documentation, even if + advised of the possibility of such damage. + + Permission is hereby granted to use, copy, modify, and distribute + this source code, or portions hereof, documentation and executables, + for any purpose, without fee, subject to the following restrictions: + + 1. The origin of this source code must not be misrepresented. + 2. Altered versions must be plainly marked as such and must + not be misrepresented as being the original source. + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. +--> + +<project name="pkg-java" default="package" basedir=".."> + +<target name="package" depends="jar,javadoc"/> + +<target name="init"> + <property name="src.dir" value="."/> + <property name="build.dir" value="build"/> + <property name="jar.suffix" value="-${version}.jar"/> + <property name="jar" value="${build.dir}/${package}-${version}.jar"/> + <property name="javadoc.dir" value="${build.dir}/doc/api"/> + <echo message="Classpath: ${java.class.path}" /> +</target> + +<target name="compile" depends="init"> + <mkdir dir="${build.dir}"/> + <javac srcdir="${src.dir}" + destdir="${build.dir}" + debug="on"> + <include name="**/*.java"/> + </javac> +</target> + +<target name="jar" depends="compile"> + <delete file="${jar}"/> + + <jar jarfile="${build.dir}/${package}${jar.suffix}" + basedir="${build.dir}" + includes="**/*.class,**/*.properties" /> +</target> + +<target name="javadoc" depends="init"> + <mkdir dir="${javadoc.dir}"/> + <javadoc + packagenames="org.apache.commons.openpgp,org.apache.commons.openpgp.ant" + sourcepath="src/main/java" + destdir="${javadoc.dir}" + author="true" + version="true" + windowtitle="${package} API" + doctitle="${package} - ${version}" + classpath="${java.class.path}" > + </javadoc> +</target> + +<target name="clean" depends="init"> + <delete dir="${build.dir}"/> +</target> +</project> diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9f9bb76 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,7 @@ +maven (2.0.6-0.1) unstable; urgency=low + + * Initial release. (Closes: XXXXXXX) + + PROTOTYPE ONLY - not for upload. + + -- Paul Cager <[email protected]> Sat, 26 May 2007 23:18:25 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..8986fde --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: maven +Section: devel +Priority: optional +Maintainer: Debian Java Maintainers <[email protected]> +Uploaders: Paul Cager <[email protected]> +Build-Depends-Indep: java-gcj-compat-dev (>=1.0.65), ant-optional, libxalan2-java, + libbcpg-java, libbcpg-java-doc, + libbcprov-java, libbcprov-java-doc, + classpath-doc, + libcommons-cli-java +Build-Depends: ant, debhelper (>= 5), cdbs (>= 0.4.5.3) +Standards-Version: 3.7.2 + +Package: maven +Architecture: all +Section: devel +Suggests: maven-doc +Description: Java software project management and comprehension tool + . + Homepage: http://maven.apache.org/ + +Package: maven-doc +Architecture: all +Section: doc +Depends: classpath-doc +Suggests: maven +Description: Java software project management and comprehension tool + . + This package contains the documentation for maven + . + Homepage: http://maven.apache.org/ diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..645a9a3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Paul Cager <[email protected]> +Sun, 29 Apr 2007 18:27:29 +0100 + +The Debian packaging is Copyright (c) 2007 Paul Cager and is licensed under +the GNU General Public License version 2. On Debian systems, the complete text +of the GNU General Public License version 2 can be found in +'/usr/share/common-licenses/GPL-2'. + + +TO BE SUPPLIED diff --git a/debian/libcommons-openpgp-java-doc.doc-base b/debian/libcommons-openpgp-java-doc.doc-base new file mode 100644 index 0000000..7852434 --- /dev/null +++ b/debian/libcommons-openpgp-java-doc.doc-base @@ -0,0 +1,9 @@ +Document: maven +Title: Documentation for Maven, a software project management and comprehension tool +Author: Maven developers +Abstract: Maven is a software project management and comprehension tool. +Section: Programming + +Format: HTML +Index: /usr/share/doc/maven/index.html +Files: /usr/share/doc/maven/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7da8b49 --- /dev/null +++ b/debian/rules @@ -0,0 +1,50 @@ +#!/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/simple-patchsys.mk + +PACKAGE := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ') +VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ' | sed 's/-[0-9]*$$//') +JAVA_HOME := /usr/lib/jvm/java-gcj +ANT_HOME := /usr/share/ant +#DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar xalan2 +DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar xalan2 \ + /usr/share/java/junit.jar \ + $(shell find /usr/share/java -type f -name 'wagon*' -print) \ + $(shell find /usr/share/java -type f -name 'plexus*' -print) \ + /usr/share/java/libplexus-utils.jar \ + /usr/share/java/commons-lang.jar \ + /usr/share/java/commons-cli.jar \ + /usr/share/java/ant-launcher.jar \ + /usr/share/java/ant.jar \ + /usr/share/java/bsh.jar + +# TODO - all of the build-depends above must be copied into control + +DEB_ANT_BUILD_TARGET := package +DEB_ANT_BUILDFILE := ./debian/build.xml +DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -Dversion=$(VERSION) +#DEB_ANT_INVOKE := ant -verbose -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -f $(BUILD_FILE) +API_DOCS := build/doc/api +SVN := http://svn.apache.org/repos/asf/maven/components/tags/maven-$(VERSION) + + +test22: + echo $(DEB_JARS) + +get-orig-source: + echo "Getting version $(VERSION) from $(SVN)" + mkdir orig_tmp + cd orig_tmp && \ + svn export -q $(SVN) $(PACKAGE) && \ + tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE) + rm -rf orig_tmp + + +binary-post-install/$(PACKAGE):: + dh_install -p$(PACKAGE) build/$(PACKAGE)-$(VERSION).jar usr/share/java && \ + dh_link -p$(PACKAGE) usr/share/java/$(PACKAGE)-$(VERSION).jar usr/share/java/$(PACKAGE).jar; \ + +binary-post-install/$(PACKAGE)-doc:: + #dh_install -p$(PACKAGE)-doc $(API_DOCS) usr/share/doc/$(PACKAGE) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven2.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

