Author: tashiro-guest Date: 2006-04-17 19:06:43 +0000 (Mon, 17 Apr 2006) New Revision: 2051
Added: trunk/eclipse-gef/debian/eclipse-pdebuild.mk Removed: trunk/eclipse-gef/debian/eclipse-gef.install Modified: trunk/eclipse-gef/debian/control trunk/eclipse-gef/debian/patches/eclipse-gef-bidi.patch trunk/eclipse-gef/debian/patches/eclipse-gef-introspector.patch trunk/eclipse-gef/debian/rules Log: Using a modified cdbs script from the eclipse-pdebuild project Modified: trunk/eclipse-gef/debian/control =================================================================== --- trunk/eclipse-gef/debian/control 2006-04-17 17:31:10 UTC (rev 2050) +++ trunk/eclipse-gef/debian/control 2006-04-17 19:06:43 UTC (rev 2051) @@ -3,7 +3,7 @@ Priority: optional Maintainer: Debian Java Maintainers <[email protected]> Uploaders: Stephan Michels <[EMAIL PROTECTED]> -Build-Depends: debhelper (>> 4.2), eclipse (>= 3.1.1-5) +Build-Depends: debhelper (>> 4.2), eclipse (>= 3.1.1-5), cdbs Build-Conflicts: eclipse-gef Standards-Version: 3.6.2 Deleted: trunk/eclipse-gef/debian/eclipse-gef.install =================================================================== --- trunk/eclipse-gef/debian/eclipse-gef.install 2006-04-17 17:31:10 UTC (rev 2050) +++ trunk/eclipse-gef/debian/eclipse-gef.install 2006-04-17 19:06:43 UTC (rev 2051) @@ -1,2 +0,0 @@ -debian/tmp/usr/lib/eclipse/features usr/lib/eclipse -debian/tmp/usr/lib/eclipse/plugins usr/lib/eclipse Added: trunk/eclipse-gef/debian/eclipse-pdebuild.mk =================================================================== --- trunk/eclipse-gef/debian/eclipse-pdebuild.mk 2006-04-17 17:31:10 UTC (rev 2050) +++ trunk/eclipse-gef/debian/eclipse-pdebuild.mk 2006-04-17 19:06:43 UTC (rev 2051) @@ -0,0 +1,313 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2005 Ivan Dubrov <[EMAIL PROTECTED]> +# Description: Builds and cleans packages which use an Eclipse PDE Build +# +# 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. +# +# The file is modified by Stephan Michels<[EMAIL PROTECTED]> + + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_class_eclipse_pde +_cdbs_class_eclipse_pde := 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) +include $(_cdbs_rules_path)/debhelper.mk$(_cdbs_makefile_suffix) + +# Version of the upstream package +DEB_UPSTREAM_VERSION=$(shell echo $(DEB_NOEPOCH_VERSION) | grep -o '^[^\-]*') + + +# 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 [ -d "$$jh" ]; then \ + echo $${jh}; exit 0; fi; done) +JAVACMD = $(JAVA_HOME)/bin/java + + +# Directory that contains additional plugins to be used during the build +PDEBUILD_BASELOCATION ?= /usr/share/eclipse + +# Component of the package, which should be builded (required) +PDEBUILD_COMPONENT ?= + +# PDE Build release engineering directory, with build.properties and +# customTargets.xml +PDEBUILD_BUILDER ?= $(PDEBUILD_COMPONENT) + +# Determine the most recent PDE Build scripts plugin version +ifndef PDE_VERSION +PDEBUILD_VERSION := $(shell ls $(PDEBUILD_BASELOCATION)/plugins/ | \ + grep "^org\.eclipse\.pde\.build_[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*$$" | \ + sed "s%org\.eclipse\.pde\.build_\(.*\)%\1%" | \ + sort -t. -k1,1 -k2,2 -k3,3 -n -r | head -n 1) +endif + +# PDE Build scrips +PDEBUILD_SCRIPTS ?= $(PDEBUILD_BASELOCATION)/plugins/org.eclipse.pde.build_$(PDEBUILD_VERSION)/scripts + +# PDE Build Ant script +PDEBUILD_BUILDFILE ?= $(PDEBUILD_SCRIPTS)/build.xml + +# Eclipse temporary configuration store +PDEBUILD_CONFIG ?= debian/tmp/configure + +# Eclipse temporary workspace +PDEBUILD_DATA ?= debian/tmp/workspace + +# Directory where plugins are built. Should contain two subdirectories, +# plugins and features. Each of these contains plugins and features that +# are built. +PDEBUILD_BUILDDIR ?= src + +# +PDEBUILD_OPTS ?= + +# +PDEBUILD_VMARGS ?= + + +# Current plaform, which should be used to build the plugins +ifeq ($(DEB_HOST_ARCH),i386) + PDEBUILD_PLATFORM ?= x86 +endif +ifeq ($(DEB_HOST_ARCH),ia64) + PDEBUILD_PLATFORM ?= ia64 +endif +ifeq ($(DEB_HOST_ARCH),amd64) + PDEBUILD_PLATFORM ?= x86_64 +endif +ifeq ($(DEB_HOST_ARCH),powerpc) + PDEBUILD_PLATFORM ?= ppc +endif +ifeq ($(DEB_HOST_ARCH),s390) + PDEBUILD_PLATFORM ?= s390 +endif + + +# Protocol for the cvs repository of the releng package +PDEBUILD_BUILDERPROTOCOL ?= pserver + +# Username for the cvs repository of the releng package +PDEBUILD_BUILDERUSER ?= anonymous + +# Host of the cvs repository of the releng package +PDEBUILD_BUILDERHOST ?= dev.eclipse.org + +# Repository path for the cvs repository of the releng package +PDEBUILD_BUILDERREP ?= /cvsroot/tools + +# CVS root for the cvs repository of the releng package +PDEBUILD_BUILDERROOT ?= :$(PDEBUILD_BUILDERPROTOCOL):$(PDEBUILD_BUILDERUSER)@$(PDEBUILD_BUILDERHOST):$(PDEBUILD_BUILDERREP) + +# CVS tag of the releng package +PDEBUILD_BUILDERTAG ?= HEAD + +# Module name of the releng package (required) +PDEBUILD_BUILDERPACKAGE ?= + +# Patch for the builder package +PDEBUILD_BUILDERPATCH ?= + + +# Protocol for the cvs repository of the maps package +PDEBUILD_MAPSPROTOCOL ?= $(PDEBUILD_BUILDERPROTOCOL) + +# Username for the cvs repository of the maps package +PDEBUILD_MAPSUSER ?= $(PDEBUILD_BUILDERUSER) + +# Host of the cvs repository of the maps package +PDEBUILD_MAPSHOST ?= $(PDEBUILD_BUILDERHOST) + +# Repository path for the cvs repository of the maps package +PDEBUILD_MAPSREP ?= $(PDEBUILD_BUILDERREP) + +# CVS root for the cvs repository of the maps package +PDEBUILD_MAPSROOT ?= :$(PDEBUILD_MAPSPROTOCOL):$(PDEBUILD_MAPSUSER)@$(PDEBUILD_MAPSHOST):$(PDEBUILD_MAPSREP) + +# CVS tag of the releng package +PDEBUILD_MAPSTAG ?= $(PDEBUILD_BUILDERTAG) + +# Module name of the maps package +PDEBUILD_MAPSPACKAGE ?= $(PDEBUILD_BUILDERPACKAGE) + + +# Build type of the release +PDEBUILD_BUILDTYPE=R + +# Build identifier of the relase +PDEBUILD_BUILDID=$(DEB_UPSTREAM_VERSION) + +# Build label of the release +PDEBUILD_BUILDLABEL=$(PDEBUILD_BUILDTYPE).$(PDEBUILD_BUILDID) + +# Ant build script, which is used to build the plugins +# Normally it is enough to use the standard build script, which comes +# with the org.eclipse.pde.build plugin +PDEBUILD_BUILDFILE ?= $(PDEBUILD_SCRIPTS)/build.xml + +# Property file for Ant, defaults to debian/ant.properties if it exists. +# You may define additional properties that are referenced from build.xml so +# you don't have to modify upstream's build.xml. Please note that command-line +# arguments in ANT_ARGS (see below) override the settings in build.xml and +# the property file. +PDEBUILD_PROPERTYFILE = $(shell test -f $(CURDIR)/debian/ant.properties && echo $(CURDIR)/debian/ant.properties) + +PDEBUILD_ANT_COMPILER ?= org.eclipse.jdt.core.JDTCompilerAdapter + +# You can specify additional JVM arguments in ANT_OPTS and Ant command-line +# arguments in ANT_ARGS, like for the Ant wrapper script and sepcified in +# Ant's documentation ("Running Ant"). You can additionally define +# ANT_ARGS_<package> for each individual package, e.g. to override the default +# settings for compile.optimize. +PDEBUILD_ECLIPSE_INVOKE = cd $(DEB_BUILDDIR) && \ + $(JAVACMD) $(PDEBUILD_VMARGS) \ + -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.0/classmap.db \ + -jar $(PDEBUILD_BASELOCATION)/startup.jar \ + -launcher $(PDEBUILD_BASELOCATION)/eclipse \ + -install $(PDEBUILD_BASELOCATION) \ + -consoleLog \ + -data $(CURDIR)/$(PDEBUILD_DATA) \ + -configuration $(CURDIR)/$(PDEBUILD_CONFIG) \ + -application org.eclipse.ant.core.antRunner \ + -buildfile $(PDEBUILD_BUILDFILE) \ + -Dpde.build.scripts=$(PDEBUILD_SCRIPTS) \ + -Dcomponent=$(PDEBUILD_COMPONENT) \ + -Dbuilder=$(CURDIR)/$(PDEBUILD_BUILDER) \ + -DbuildDirectory=$(CURDIR)/$(PDEBUILD_BUILDDIR) \ + -DbaseLocation=$(PDEBUILD_BASELOCATION) \ + -DmapCvsRoot=$(PDEBUILD_MAPSROOT) \ + -DmapVersionTag=$(PDEBUILD_MAPSTAG) \ + -DbuildType=$(PDEBUILD_BUILDTYPE) \ + -DbuildId=$(PDEBUILD_BUILDID) \ + -DbuildLabel=$(PDEBUILD_BUILDLABEL) \ + -Dbuild.compiler=$(PDEBUILD_ANT_COMPILER) \ + -Djavacfailonerror=true \ + -DbuildingOSGi=true \ + $(if $(PDEBUILD_PROPERTYFILE),-propertyfile $(PDEBUILD_PROPERTYFILE),) \ + $(PDEBUILD_OPTS) + +# 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. +PDEBUILD_FETCH_TARGET = preBuild fetch generate +PDEBUILD_BUILD_TARGET = process assemble package postBuild +PDEBUILD_CLEAN_TARGET = clean + + + +# Check JAVA_HOME and Eclipe SDK + +DEB_PHONY_RULES += eclipse-sanity-check +eclipse-sanity-check: + @if ! test -r "$(JAVA_HOME)"; then \ + echo "You must specify a valid JAVA_HOME or JAVACMD!"; \ + exit 1; \ + fi + @if ! test -r "$(PDEBUILD_BASELOCATION)/plugins/org.eclipse.pde.build_$(PDEBUILD_VERSION)"; then \ + echo "You must specify a valid Eclipse SDK directory!"; \ + exit 1; \ + fi + + +# Rule to fetch feature and plugins + +get-orig-source-clean:: + # clean source directories + ls -I debian | rm -rf `xargs` + +get-orig-source-fetch:: eclipse-sanity-check get-orig-source-clean + # checkout the builder package + cvs -d $(PDEBUILD_BUILDERROOT) export -r $(PDEBUILD_BUILDERTAG) $(PDEBUILD_BUILDERPACKAGE) + ls -la + mv $(CURDIR)/$(PDEBUILD_BUILDERPACKAGE)/* $(CURDIR) + rm -r $(CURDIR)/$(PDEBUILD_BUILDERPACKAGE) + + # Patch the builder package + @if test -n "$(PDEBUILD_BUILDERPATCH)"; then \ + echo Patching builder with $(PDEBUILD_BUILDERPATCH); \ + patch -p0 -u <$(CURDIR)/$(PDEBUILD_BUILDERPATCH); \ + else \ + echo "PDEBUILD_BUILDERPATCH unset, skipping"; \ + fi + + # fetch plugins and features + $(PDEBUILD_ECLIPSE_INVOKE) $(PDEBUILD_FETCH_TARGET) + rm -r $(CURDIR)/debian/tmp + +get-orig-source:: get-orig-source-fetch + dh_testdir + + # create orig tarball + cd .. && \ + tar cfz $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \ + --exclude=CVS --exclude=.svn --exclude=debian \ + $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) + + +# Invoke PDE Build + +common-build-arch common-build-indep:: debian/stamp-pde-build eclipse-sanity-check + +debian/stamp-pde-build: + dh_testdir + + # build features and plugins + $(PDEBUILD_ECLIPSE_INVOKE) -DskipFetch=true $(PDEBUILD_BUILD_TARGET) + rm -r $(CURDIR)/debian/tmp + + touch $@ + + +#common-install-arch common-install-indep:: debian/stamp-pde-install +# +#debian/stamp-pde-install: debian/stamp-pde-build +# dh_testdir +# dh_testroot +# +# # Install the zip file into our destination directory. +# mkdir -p $(CURDIR)/debian/tmp +# install -d debian/tmp/$(PDEBUILD_BASELOCATION) +# unzip $(CURDIR)/$(PDEBUILD_BUILDDIR)/R*/*.zip -d debian/tmp/$(PDEBUILD_BASELOCATION)/.. +# +# #dh_installdirs +# #dh_install +# +# #rm -r $(CURDIR)/debian/tmp +# +# touch $@ + + +clean:: eclipse-sanity-check + dh_testdir + + # invoke the clean target + $(PDEBUILD_ECLIPSE_INVOKE) -DskipFetch=true $(PDEBUILD_CLEAN_TARGET) + rm -r $(CURDIR)/debian/tmp + + rm -f debian/stamp-pde-build + +endif + Modified: trunk/eclipse-gef/debian/patches/eclipse-gef-bidi.patch =================================================================== --- trunk/eclipse-gef/debian/patches/eclipse-gef-bidi.patch 2006-04-17 17:31:10 UTC (rev 2050) +++ trunk/eclipse-gef/debian/patches/eclipse-gef-bidi.patch 2006-04-17 19:06:43 UTC (rev 2051) @@ -1,5 +1,5 @@ ---- source-tree.orig/org.eclipse.releng.gefbuilder/src/eclipse/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/text/BidiProcessor.java 2005-12-12 16:01:14.000000000 +0100 -+++ source-tree/org.eclipse.releng.gefbuilder/src/eclipse/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/text/BidiProcessor.java 2005-12-12 16:19:02.000000000 +0100 +--- src/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/text/BidiProcessor.java 2005-12-12 16:01:14.000000000 +0100 ++++ src/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/text/BidiProcessor.java 2005-12-12 16:19:02.000000000 +0100 @@ -10,7 +10,7 @@ *******************************************************************************/ package org.eclipse.draw2d.text; Modified: trunk/eclipse-gef/debian/patches/eclipse-gef-introspector.patch =================================================================== --- trunk/eclipse-gef/debian/patches/eclipse-gef-introspector.patch 2006-04-17 17:31:10 UTC (rev 2050) +++ trunk/eclipse-gef/debian/patches/eclipse-gef-introspector.patch 2006-04-17 19:06:43 UTC (rev 2051) @@ -1,5 +1,5 @@ ---- source-tree.orig/org.eclipse.releng.gefbuilder/src/eclipse/plugins/org.eclipse.gef/src/org/eclipse/gef/tools/AbstractTool.java 2005-12-12 16:44:12.000000000 +0100 -+++ source-tree/org.eclipse.releng.gefbuilder/src/eclipse/plugins/org.eclipse.gef/src/org/eclipse/gef/tools/AbstractTool.java 2005-12-12 16:44:29.000000000 +0100 +--- src/plugins/org.eclipse.gef/src/org/eclipse/gef/tools/AbstractTool.java 2005-12-12 16:44:12.000000000 +0100 ++++ src/plugins/org.eclipse.gef/src/org/eclipse/gef/tools/AbstractTool.java 2005-12-12 16:44:29.000000000 +0100 @@ -289,7 +289,7 @@ try { Modified: trunk/eclipse-gef/debian/rules =================================================================== --- trunk/eclipse-gef/debian/rules 2006-04-17 17:31:10 UTC (rev 2050) +++ trunk/eclipse-gef/debian/rules 2006-04-17 19:06:43 UTC (rev 2051) @@ -1,233 +1,44 @@ #!/usr/bin/make -f +# debian/rules file using cdbs -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include debian/eclipse-pdebuild.mk -export LC_ALL=C -CURDIR=$(shell pwd) +#JAVA_HOME := /usr/lib/jvm/java-gcj +#JAVA_HOME := /usr/lib/kaffe +JAVA_HOME := /usr/lib/jvm/cacao +JAVACMD := JAVA_HOME=$(JAVA_HOME) /usr/bin/cacao -Xmx256m +ANT_HOME := /usr/share/ant +DEB_ANT_ARGS := -Dcompiler=javac1.5 -SOURCE_PACKAGE=$(shell head -1 debian/changelog | grep -o '^[^\ ]*') -SOURCE_VERSION=$(shell head -1 debian/changelog | sed -e 's/^.*(\(.*\)).*$$/\1/') -UPSTREAM_VERSION=$(shell echo $(SOURCE_VERSION) | grep -o '^[^\-]*') +PDEBUILD_BUILDERHOST=dev.eclipse.org +PDEBUILD_BUILDERREP=/cvsroot/tools +PDEBUILD_BUILDERTAG=R31_Maintenance +PDEBUILD_BUILDERPACKAGE=org.eclipse.releng.gefbuilder -SOURCE=upstream/$(SOURCE_PACKAGE)-$(UPSTREAM_VERSION).tar.gz -SOURCE_TREE=source-tree -JAVA_HOME=/usr/lib/jvm/java-gcj -JAVA_RUN=$(JAVA_HOME)/bin/java -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.0/classmap.db -ANT_RUN=ant -homedir=$(CURDIR)/home - -ifeq ($(DEB_HOST_ARCH),i386) - PDEBUILD_PLATFORM=x86 -endif -ifeq ($(DEB_HOST_ARCH),ia64) - PDEBUILD_PLATFORM=ia64 -endif -ifeq ($(DEB_HOST_ARCH),amd64) - PDEBUILD_PLATFORM=x86_64 -endif -ifeq ($(DEB_HOST_ARCH),powerpc) - PDEBUILD_PLATFORM=ppc -endif -ifeq ($(DEB_HOST_ARCH),s390) - PDEBUILD_PLATFORM=s390 -endif - -PDEBUILD_CVSREADPROTOCOL=pserver -PDEBUILD_CVSREADUSER=anonymous -PDEBUILD_CVSHOST=dev.eclipse.org -PDEBUILD_CVSREP=/cvsroot/tools -PDEBUILD_CVSROOT=:$(PDEBUILD_CVSREADPROTOCOL):$(PDEBUILD_CVSREADUSER)@$(PDEBUILD_CVSHOST):$(PDEBUILD_CVSREP) -PDEBUILD_CVSTAG=HEAD -PDEBUILD_PACKAGE=org.eclipse.releng.gefbuilder - -PDEBUILD_BASELOCATION=/usr/lib/eclipse PDEBUILD_COMPONENT=sdk -PDEBUILD_BUILDER=$(CURDIR)/$(SOURCE_TREE)/$(PDEBUILD_PACKAGE)/$(PDEBUILD_COMPONENT) -PDEBUILD_CONFIG=../../debian/tmp/configure -PDEBUILD_DATA=../../debian/tmp/workspace -PDEBUILD_BUILDDIR=$(CURDIR)/$(SOURCE_TREE)/$(PDEBUILD_PACKAGE)/src/eclipse +#PDEBUILD_BUILDDIR=$(CURDIR)/$(SOURCE_TREE)/$(PDEBUILD_PACKAGE)/src/eclipse PDEBUILD_OPTS=-DbaseExists=true -PDEBUILD_SCRIPTS=$(PDEBUILD_BASELOCATION)/plugins/org.eclipse.pde.build_3.1.0/scripts - -PDEBUILD_MAPSREADPROTOCOL=$(PDEBUILD_CVSREADPROTOCOL) -PDEBUILD_MAPSREADUSER=$(PDEBUILD_CVSREADUSER) -PDEBUILD_MAPSHOST=$(PDEBUILD_CVSHOST) -PDEBUILD_MAPSREP=$(PDEBUILD_CVSREP) -PDEBUILD_MAPSROOT=:$(PDEBUILD_MAPSREADPROTOCOL):$(PDEBUILD_MAPSREADUSER)@$(PDEBUILD_MAPSHOST):$(PDEBUILD_MAPSREP) +PDEBUILD_MAPSTAG=R31_Maintenance PDEBUILD_MAPSPACKAGE=org.eclipse.gef.releng -PDEBUILD_MAPVERSIONTAG=R31_Maintenance -PDEBUILD_BUILDTYPE=R -PDEBUILD_BUILDID=3.1.1 -PDEBUILD_BUILDLABEL=$(PDEBUILD_BUILDTYPE).$(PDEBUILD_BUILDID) - -PATCHES = \ - eclipse-gef-bidi \ - eclipse-gef-introspector - -get-orig-source: clean - dh_testdir - - # create source directory - mkdir -p $(SOURCE_TREE) - - # checkout releng package - cd $(SOURCE_TREE) && \ - cvs -d $(PDEBUILD_CVSROOT) co -r $(PDEBUILD_CVSTAG) $(PDEBUILD_PACKAGE) - - # Patch releng plugin -# if test -e $(CURDIR)/debian/patches/$(SOURCE_PACKAGE)-releng.patch; then \ -# cd $(SOURCE_TREE)/$(PDEBUILD_PACKAGE); \ -# patch -p0 -u <$(CURDIR)/debian/patches/$(SOURCE_PACKAGE)-releng.patch; \ -# fi; - - # fetch plugins and features - cd $(SOURCE_TREE)/$(PDEBUILD_PACKAGE) && \ - $(JAVA_RUN) -jar $(PDEBUILD_BASELOCATION)/startup.jar \ - -application org.eclipse.ant.core.antRunner \ - -DbaseLocation=$(PDEBUILD_BASELOCATION) \ - -Dpde.build.scripts=$(PDEBUILD_SCRIPTS) \ - -Dcomponent=$(PDEBUILD_COMPONENT) \ - -Dbuilder=$(PDEBUILD_BUILDER) \ - -DbuildDirectory=$(PDEBUILD_BUILDDIR) \ - -DmapCvsRoot=$(PDEBUILD_MAPSROOT) \ - -DmapVersionTag=$(PDEBUILD_MAPVERSIONTAG) \ - -DbuildType=$(PDEBUILD_BUILDTYPE) \ - -DbuildId=$(PDEBUILD_BUILDID) \ - -DbuildLabel=$(PDEBUILD_BUILDLABEL) \ - $(PDEBUILD_OPTS) \ - -f $(PDEBUILD_SCRIPTS)/build.xml \ - preBuild fetch - - # pack sources in upstream - mkdir -p upstream - cd $(SOURCE_TREE) && \ - tar cfz ../$(SOURCE) $(PDEBUILD_PACKAGE) - - # create orig tarball - cd .. && \ - tar cfz $(SOURCE_PACKAGE)_$(UPSTREAM_VERSION).orig.tar.gz $(SOURCE_PACKAGE)-$(UPSTREAM_VERSION)/$(SOURCE) - -clean: - dh_testdir - - rm -rf $(SOURCE_TREE) $(homedir) debian/tmp debian/$(SOURCE_PACKAGE) - rm -f *-stamp - dh_clean - -uncompress: uncompress-stamp -uncompress-stamp: debian/control - dh_testdir - - # The building happens inside the source-tree directory. This makes - # cleanup much easier. - mkdir -p "$(SOURCE_TREE)" - (cd "$(SOURCE_TREE)" && tar xzf ../"$(SOURCE)" > /dev/null) - - touch uncompress-stamp - -patch: patch-stamp -patch-stamp: uncompress-stamp - dh_testdir - - # This patch system was orginally copied off of the one found in cdbs. - @cd $(SOURCE_TREE)/$(PDEBUILD_PACKAGE); \ - test $$(find $(CURDIR)/debian/patches/ -maxdepth 1 -name '*.patch' | wc -l) -eq 0 && exit 0; \ - for patchname in $(PATCHES); do \ - patch=$(CURDIR)/debian/patches/$$patchname.patch; \ - success=""; \ - echo -n "trying patch $$patchname at level "; \ - for level in 0 1 2 3; do \ - if test -z "$$success"; then \ - echo -n "$$level..."; \ - if patch -f -p$$level -E --dry-run < $$patch > /dev/null 2>&1; then \ - if patch -f -p$$level -E -V never < $$patch > /dev/null 2>&1; then \ - success=yes; \ - echo "success."; \ - fi; \ - fi; \ - fi; \ - done; \ - if test -z "$$success"; then \ - echo "failure."; \ - exit 1; \ - fi; \ - done - - touch patch-stamp - - -build: build-stamp -build-stamp: patch-stamp - dh_testdir - - # Create home. - mkdir home - - # Call eclipse headless to process releng build scripts - cd $(SOURCE_TREE)/$(PDEBUILD_PACKAGE) && \ - $(JAVA_RUN) -jar $(PDEBUILD_BASELOCATION)/startup.jar \ - -application org.eclipse.ant.core.antRunner \ - -DbaseLocation=$(PDEBUILD_BASELOCATION) \ - -Dpde.build.scripts=$(PDEBUILD_SCRIPTS) \ - -Dcomponent=$(PDEBUILD_COMPONENT) \ - -Dbuilder=$(PDEBUILD_BUILDER) \ - -DbuildDirectory=$(PDEBUILD_BUILDDIR) \ - -DmapCvsRoot=$(PDEBUILD_MAPSROOT) \ - -DmapVersionTag=$(PDEBUILD_MAPVERSIONTAG) \ - -DbuildType=$(PDEBUILD_BUILDTYPE) \ - -DbuildId=$(PDEBUILD_BUILDID) \ - -DbuildLabel=$(PDEBUILD_BUILDLABEL) \ - $(PDEBUILD_OPTS) \ - -DskipFetch=true \ - -DskipBuildSourceDrop=true \ - -Djavacfailonerror=true - - touch build-stamp - - -install: install-stamp -install-stamp: build - dh_testdir - dh_testroot - +install/eclipse-gef:: # Install the zip file into our destination directory. + mkdir -p debian/tmp install -d debian/tmp/$(PDEBUILD_BASELOCATION) - unzip $(PDEBUILD_BUILDDIR)/R*/*.zip -d debian/tmp/$(PDEBUILD_BASELOCATION)/.. - - dh_installdirs - dh_install + unzip $(CURDIR)/$(PDEBUILD_BUILDDIR)/R*/*.zip -d debian/tmp/$(PDEBUILD_BASELOCATION)/.. - touch install-stamp - + dh_installdirs -p$(cdbs_curpkg) usr/share/eclipse/features usr/share/eclipse/plugins + dh_install -p$(cdbs_curpkg) debian/tmp/usr/share/eclipse/features/* usr/share/eclipse/features + dh_install -p$(cdbs_curpkg) debian/tmp/usr/share/eclipse/plugins/* usr/share/eclipse/plugins -binary-indep: install - # Nothing to do here. - + rm -r $(CURDIR)/debian/tmp -binary-arch: install - dh_testdir -a - dh_testroot -a - - dh_installdocs -a - dh_installexamples -a - dh_installmenu -a - dh_installman -a - dh_installinfo -a - dh_installchangelogs -a - dh_link -a - dh_fixperms -a - - dh_strip -a - dh_compress -a - dh_shlibdeps -a - dh_makeshlibs -a - dh_installdeb -a - dh_gencontrol -a - dh_md5sums -a - dh_builddeb -a - +clean:: + -find src/plugins/* -name "*src.zip" -exec rm {} ";" + #-find src/plugins/* -name "doc.zip" -exec rm {} ";" + #-find src/plugins/* -name "index" -exec rm -rf {} ";" + #-find src/plugins/* -name "doc-files" -exec rm -rf {} ";" + -rm $(CURDIR)/$(PDEBUILD_BUILDDIR)/R*/*.zip -binary: binary-indep binary-arch _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-java-commits

