[pkg-java] r3542 - in trunk: . maven maven/debian

paulcager-guest at alioth.debian.org paulcager-guest at alioth.debian.org
Sat May 26 22:20:42 UTC 2007


Author: paulcager-guest
Date: 2007-05-26 22:20:42 +0000 (Sat, 26 May 2007)
New Revision: 3542

Added:
   trunk/maven/
   trunk/maven/debian/
   trunk/maven/debian/build.xml
   trunk/maven/debian/changelog
   trunk/maven/debian/compat
   trunk/maven/debian/control
   trunk/maven/debian/copyright
   trunk/maven/debian/libcommons-openpgp-java-doc.doc-base
   trunk/maven/debian/rules
Log:
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!


Added: trunk/maven/debian/build.xml
===================================================================
--- trunk/maven/debian/build.xml	                        (rev 0)
+++ trunk/maven/debian/build.xml	2007-05-26 22:20:42 UTC (rev 3542)
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+
+<!--
+      This build.xml file was written for the Debian project.
+      This file copyright (c) Paul Cager <paul-debian at home.paulcager.org>
+
+        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>

Added: trunk/maven/debian/changelog
===================================================================
--- trunk/maven/debian/changelog	                        (rev 0)
+++ trunk/maven/debian/changelog	2007-05-26 22:20:42 UTC (rev 3542)
@@ -0,0 +1,7 @@
+maven (2.0.6-0.1) unstable; urgency=low
+
+  * Initial release. (Closes: XXXXXXX)
+
+  PROTOTYPE ONLY - not for upload.
+
+ -- Paul Cager <paul-debian at home.paulcager.org>  Sat, 26 May 2007 23:18:25 +0100

Added: trunk/maven/debian/compat
===================================================================
--- trunk/maven/debian/compat	                        (rev 0)
+++ trunk/maven/debian/compat	2007-05-26 22:20:42 UTC (rev 3542)
@@ -0,0 +1 @@
+5

Added: trunk/maven/debian/control
===================================================================
--- trunk/maven/debian/control	                        (rev 0)
+++ trunk/maven/debian/control	2007-05-26 22:20:42 UTC (rev 3542)
@@ -0,0 +1,31 @@
+Source: maven
+Section: devel
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Paul Cager <paul-debian at home.paulcager.org>
+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/

Added: trunk/maven/debian/copyright
===================================================================
--- trunk/maven/debian/copyright	                        (rev 0)
+++ trunk/maven/debian/copyright	2007-05-26 22:20:42 UTC (rev 3542)
@@ -0,0 +1,10 @@
+This package was debianized by Paul Cager <paul-debian at home.paulcager.org>
+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

Added: trunk/maven/debian/libcommons-openpgp-java-doc.doc-base
===================================================================
--- trunk/maven/debian/libcommons-openpgp-java-doc.doc-base	                        (rev 0)
+++ trunk/maven/debian/libcommons-openpgp-java-doc.doc-base	2007-05-26 22:20:42 UTC (rev 3542)
@@ -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/*

Added: trunk/maven/debian/rules
===================================================================
--- trunk/maven/debian/rules	                        (rev 0)
+++ trunk/maven/debian/rules	2007-05-26 22:20:42 UTC (rev 3542)
@@ -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)


Property changes on: trunk/maven/debian/rules
___________________________________________________________________
Name: svn:executable
   + 




More information about the pkg-java-commits mailing list