[pkg-java] r7625 - in trunk: . plexus-cdc plexus-cdc/debian

twerner at alioth.debian.org twerner at alioth.debian.org
Wed Dec 10 14:45:00 UTC 2008


Author: twerner
Date: 2008-12-10 14:44:42 +0000 (Wed, 10 Dec 2008)
New Revision: 7625

Added:
   trunk/plexus-cdc/
   trunk/plexus-cdc/debian/
   trunk/plexus-cdc/debian/changelog
   trunk/plexus-cdc/debian/compat
   trunk/plexus-cdc/debian/control
   trunk/plexus-cdc/debian/copyright
   trunk/plexus-cdc/debian/maven-settings.xml
   trunk/plexus-cdc/debian/maven-vars.mk
   trunk/plexus-cdc/debian/maven.mk
   trunk/plexus-cdc/debian/orig-tar.sh
   trunk/plexus-cdc/debian/rules
Log:
new package plexus-cdc


Added: trunk/plexus-cdc/debian/changelog
===================================================================
--- trunk/plexus-cdc/debian/changelog	                        (rev 0)
+++ trunk/plexus-cdc/debian/changelog	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,5 @@
+plexus-cdc (1.0~alpha14-1) unstable; urgency=low
+
+  * Initial release. (Closes: #xxxxxx)
+
+ -- Torsten Werner <twerner at debian.org>  Tue, 09 Dec 2008 20:13:45 +0100

Added: trunk/plexus-cdc/debian/compat
===================================================================
--- trunk/plexus-cdc/debian/compat	                        (rev 0)
+++ trunk/plexus-cdc/debian/compat	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1 @@
+5

Added: trunk/plexus-cdc/debian/control
===================================================================
--- trunk/plexus-cdc/debian/control	                        (rev 0)
+++ trunk/plexus-cdc/debian/control	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,23 @@
+Source: plexus-cdc
+Section: libs
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Torsten Werner <twerner at debian.org>
+Build-Depends: ant, debhelper (>= 5), cdbs, default-jdk, quilt
+Standards-Version: 3.8.0
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/plexus-cdc
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/plexus-cdc/
+Homepage: http://plexus.codehaus.org/guides/quick-start/component-descriptor-creator.html
+
+Package: libplexus-cdc-java
+Architecture: all
+Depends: ${misc:Depends}, default-java | java2-runtime
+Description: Plexus Component Descriptor Creator
+ The Plexus project provides a full software stack for creating and
+ executing software projects. Based on the Plexus container, the applications
+ can utilise component-oriented programming to build modular, reusable
+ components that can easily be assembled and reused.
+ .
+ The Component Descriptor Creator (or CDC for short) is a tool that will create
+ the components.xml file from your Java code. It uses JavaDoc tags to gather the
+ information it needs to create the component descriptor.

Added: trunk/plexus-cdc/debian/copyright
===================================================================
--- trunk/plexus-cdc/debian/copyright	                        (rev 0)
+++ trunk/plexus-cdc/debian/copyright	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,27 @@
+This package was debianized by Torsten Werner<twerner at debian.org>
+Sat Nov 29 17:33:45 CET 2008
+
+plexus-io was downloaded from
+http://plexus.codehaus.org
+
+FIXME
+
+Copyright: 2007-2008 The Codehaus Foundation
+
+License:
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+  
+	http://www.apache.org/licenses/LICENSE-2.0
+  
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+The full text of the license can be found in
+'/usr/share/common-licenses/Apache-2.0'.
+

Added: trunk/plexus-cdc/debian/maven-settings.xml
===================================================================
--- trunk/plexus-cdc/debian/maven-settings.xml	                        (rev 0)
+++ trunk/plexus-cdc/debian/maven-settings.xml	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,9 @@
+<!--
+  This is a minimal settings.xml that switches maven to offline mode
+  and uses the Debian repo as the local repo.
+-->
+
+<settings>
+  <localRepository>/usr/share/maven-repo</localRepository>
+  <offline>true</offline>
+</settings>

Added: trunk/plexus-cdc/debian/maven-vars.mk
===================================================================
--- trunk/plexus-cdc/debian/maven-vars.mk	                        (rev 0)
+++ trunk/plexus-cdc/debian/maven-vars.mk	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,89 @@
+# This file is based on ant-vars.mk
+
+# Copyright © 2003 Stefan Gybas <sgybas at debian.org>
+# Copyright © 2008 Torsten Werner <twerner at debian.org>
+# Description: Defines useful variables for packages which use Maven
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program 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
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_class_maven_vars
+_cdbs_class_maven_vars = 1
+
+# Maven home directory.  Doesn't need to be changed except when using
+# nonstandard Maven installations.
+MAVEN_HOME = /usr/share/maven2
+
+# The home directory of the Java Runtime Environment (JRE) or Java Development
+# Kit (JDK). You can either directly set JAVA_HOME in debian/rules or set
+# JAVA_HOME_DIRS to multiple possible home directories. The first existing
+# directory from this list is used for JAVA_HOME. You can also override
+# JAVACMD in case you don't want to use the default JAVA_HOME/bin/java.
+JAVA_HOME = $(shell for jh in $(JAVA_HOME_DIRS); do if [ -x "$$jh/bin/java" ]; then \
+	    echo $${jh}; exit 0; fi; done)
+JAVACMD   = $(JAVA_HOME)/bin/java
+
+# You can list all Java ARchives (JARs) to be added to the class path in
+# DEB_JARS, either with their full path or just the basename if the JAR is
+# in /usr/share/java. You may also ommit the ".jar" extension. Non-existing
+# files will silently be ignored. tools.jar is automatically added to the
+# end of the class path if it exists in the JDK's lib directory.
+# You can override the complete class path using DEB_CLASSPATH.
+DEB_JARS_BASE = /usr/share/java
+DEB_CLASSPATH = $(MAVEN_HOME)/boot/classworlds.jar:$(shell for jar in $(DEB_JARS); do \
+		if [ -f "$$jar" ]; then echo -n "$${jar}:"; fi; \
+		if [ -f "$$jar".jar ]; then echo -n "$${jar}.jar:"; fi; \
+		if [ -f $(DEB_JARS_BASE)/"$$jar" ]; then echo -n "$(DEB_JARS_BASE)/$${jar}:"; fi; \
+		if [ -f $(DEB_JARS_BASE)/"$$jar".jar ]; then echo -n "$(DEB_JARS_BASE)/$${jar}.jar:"; fi; \
+		done; \
+		if [ -f "$(JAVA_HOME)/lib/tools.jar" ]; then echo -n "$(JAVA_HOME)/lib/tools.jar"; fi)
+
+# Extra arguments for the Maven command line.
+# TODO: DOES NOT WORK YET BECAUSE IT NEEDS PATCHING MAVEN!!!
+DEB_MAVEN_ARGS = 
+
+# Property file for Maven, defaults to debian/maven.properties if it exists.
+# You may define additional properties. Please note that command-line
+# arguments in MAVEN_ARGS (see below) override the settings in pom.xml and
+# the property file.
+DEB_MAVEN_PROPERTYFILE = $(shell test -f $(CURDIR)/debian/maven.properties && echo $(CURDIR)/debian/maven.properties)
+
+# You can specify additional JVM arguments in MAVEN_OPTS and Maven
+# command-line arguments in MAVEN_ARGS. You can additionally define
+# MAVEN_ARGS_<package> for each individual package.
+DEB_MAVEN_INVOKE = cd $(DEB_BUILDDIR) && $(JAVACMD) -classpath $(DEB_CLASSPATH) \
+		 $(MAVEN_OPTS) -Dclassworlds.conf=${MAVEN_HOME}/conf/m2.conf \
+		 -Dmaven.home=$(MAVEN_HOME) \
+		 org.codehaus.classworlds.Launcher $(DEB_MAVEN_ARGS) \
+		 -s$(CURDIR)/debian/maven-settings.xml \
+		 $(if $(MAVEN_ARGS_$(cdbs_curpkg)),$(MAVEN_ARGS_$(cdbs_curpkg)),$(MAVEN_ARGS))
+
+# TODO: DOES NOT WORK YET
+#		 $(if $(DEB_MAVEN_PROPERTYFILE),-propertyfile $(DEB_MAVEN_PROPERTYFILE),)
+
+# Targets to invoke for building, installing, testing and cleaning up.
+# Building uses the default target from build.xml, installing and testing is
+# only called if the corresponding variable is set. You can also specify
+# multiple targets for each step.
+DEB_MAVEN_BUILD_TARGET = compile jar:jar   # TODO: should be 'package'
+DEB_MAVEN_INSTALL_TARGET =
+DEB_MAVEN_CHECK_TARGET =
+DEB_MAVEN_CLEAN_TARGET = clean
+
+endif

Added: trunk/plexus-cdc/debian/maven.mk
===================================================================
--- trunk/plexus-cdc/debian/maven.mk	                        (rev 0)
+++ trunk/plexus-cdc/debian/maven.mk	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,71 @@
+# This file is based on ant.mk
+# revision: 1
+
+# Copyright © 2003 Stefan Gybas <sgybas at debian.org>
+# Copyright © 2008 Torsten Werner <twerner at debian.org>
+# Description: Builds and cleans packages which have an Maven pom.xml file
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program 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
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_class_maven
+_cdbs_class_maven = 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+# temporary workaround:
+#include $(_cdbs_class_path)/maven-vars.mk$(_cdbs_makefile_suffix)
+include $(CURDIR)/debian/maven-vars.mk$(_cdbs_makefile_suffix)
+
+DEB_PHONY_RULES += maven-sanity-check
+
+maven-sanity-check:
+	@if ! test -x "$(JAVACMD)"; then \
+		echo "You must specify a valid JAVA_HOME or JAVACMD!"; \
+		exit 1; \
+	fi
+	@if ! test -r "$(MAVEN_HOME)/boot/classworlds.jar"; then \
+		echo "You must specify a valid MAVEN_HOME directory!"; \
+		exit 1; \
+	fi
+
+
+common-build-arch common-build-indep:: debian/stamp-maven-build maven-sanity-check
+debian/stamp-maven-build:
+	$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_BUILD_TARGET)
+	touch $@
+
+clean:: maven-sanity-check
+	-$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_CLEAN_TARGET)
+	$(RM) debian/stamp-maven-build
+
+common-install-arch common-install-indep:: common-install-impl
+common-install-impl::
+	$(if $(DEB_MAVEN_INSTALL_TARGET),$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_INSTALL_TARGET), at echo "DEB_MAVEN_INSTALL_TARGET unset, skipping default maven.mk common-install target")
+
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+common-build-arch common-build-indep:: debian/stamp-maven-check
+debian/stamp-maven-check: debian/stamp-maven-build
+	$(if $(DEB_MAVEN_CHECK_TARGET),$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_CHECK_TARGET), at echo "DEB_MAVEN_CHECK_TARGET unset, not running checks")
+	$(if $(DEB_MAVEN_CHECK_TARGET),touch $@)
+
+clean::
+	$(if $(DEB_MAVEN_CHECK_TARGET),$(RM) debian/stamp-maven-check)
+endif
+
+endif

Added: trunk/plexus-cdc/debian/orig-tar.sh
===================================================================
--- trunk/plexus-cdc/debian/orig-tar.sh	                        (rev 0)
+++ trunk/plexus-cdc/debian/orig-tar.sh	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+# There is no svn tag for plexus-cdc! :-(
+
+VERSION=1.0-alpha-14
+REVISION=7576
+
+DEBVERSION=$(echo $VERSION | sed -e's,-alpha-,~alpha,')
+
+TAR=../plexus-cdc_$DEBVERSION.orig.tar.gz
+DIR=plexus-cdc-$VERSION
+
+svn export -r$REVISION http://svn.codehaus.org/plexus/archive/plexus-cdc $DIR
+tar -c -z -f $TAR $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi


Property changes on: trunk/plexus-cdc/debian/orig-tar.sh
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/plexus-cdc/debian/rules
===================================================================
--- trunk/plexus-cdc/debian/rules	                        (rev 0)
+++ trunk/plexus-cdc/debian/rules	2008-12-10 14:44:42 UTC (rev 7625)
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include debian/maven.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+PACKAGE              := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
+VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | sed "s,Version: \(.*\)-.*,\1,g" | sed 's,~alpha,-alpha-,')
+JAVA_HOME            := /usr/lib/jvm/java-6-openjdk
+DEB_JARS             := plexus-utils plexus-interpolation
+#DEB_ANT_BUILD_TARGET := package #javadoc
+#DEB_ANT_BUILDFILE    := debian/build.xml
+#DEB_ANT_ARGS         := -Dversion=$(VERSION)
+API_DOCS             := build/api
+
+get-orig-source:
+	sh -e debian/orig-tar.sh
+
+REPO := /usr/share/maven-repo
+DEST := $(REPO)/org/codehaus/plexus
+
+binary-post-install/lib$(PACKAGE)-java::
+	dh_install build/*.jar $(DEST)/$(PACKAGE)/$(VERSION)/
+	install -m644 pom.xml $(DEB_DESTDIR)$(DEST)/$(PACKAGE)/$(VERSION)/$(PACKAGE)-$(VERSION).pom
+	dh_link $(DEST)/$(PACKAGE)/$(VERSION)/$(PACKAGE)-$(VERSION).jar /usr/share/java/$(PACKAGE).jar


Property changes on: trunk/plexus-cdc/debian/rules
___________________________________________________________________
Name: svn:executable
   + 




More information about the pkg-java-commits mailing list