This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to branch master in repository plexus-cdc.
commit 111a0ccb6fdaedb6f69d7104d7f0783efe295aaf Author: Torsten Werner <[email protected]> Date: Wed Dec 10 14:44:42 2008 +0000 new package plexus-cdc --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 23 ++++++++++++ debian/copyright | 27 ++++++++++++++ debian/maven-settings.xml | 9 +++++ debian/maven-vars.mk | 89 +++++++++++++++++++++++++++++++++++++++++++++++ debian/maven.mk | 71 +++++++++++++++++++++++++++++++++++++ debian/orig-tar.sh | 22 ++++++++++++ debian/rules | 25 +++++++++++++ 9 files changed, 272 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a730325 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +plexus-cdc (1.0~alpha14-1) unstable; urgency=low + + * Initial release. (Closes: #xxxxxx) + + -- Torsten Werner <[email protected]> Tue, 09 Dec 2008 20:13:45 +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..48487c1 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: plexus-cdc +Section: libs +Priority: optional +Maintainer: Debian Java Maintainers <[email protected]> +Uploaders: Torsten Werner <[email protected]> +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..88d7251 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Torsten Werner<[email protected]> +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'. + diff --git a/debian/maven-settings.xml b/debian/maven-settings.xml new file mode 100644 index 0000000..01f8769 --- /dev/null +++ b/debian/maven-settings.xml @@ -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> diff --git a/debian/maven-vars.mk b/debian/maven-vars.mk new file mode 100644 index 0000000..786740f --- /dev/null +++ b/debian/maven-vars.mk @@ -0,0 +1,89 @@ +# This file is based on ant-vars.mk + +# Copyright © 2003 Stefan Gybas <[email protected]> +# Copyright © 2008 Torsten Werner <[email protected]> +# 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 diff --git a/debian/maven.mk b/debian/maven.mk new file mode 100644 index 0000000..712c9e7 --- /dev/null +++ b/debian/maven.mk @@ -0,0 +1,71 @@ +# This file is based on ant.mk +# revision: 1 + +# Copyright © 2003 Stefan Gybas <[email protected]> +# Copyright © 2008 Torsten Werner <[email protected]> +# 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),@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),@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 diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh new file mode 100755 index 0000000..7b7ceda --- /dev/null +++ b/debian/orig-tar.sh @@ -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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7280c82 --- /dev/null +++ b/debian/rules @@ -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 -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/plexus-cdc.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

