pdebuild-0.0.4/0000755000000000000000000000000010346321337012003 5ustar rootrootpdebuild-0.0.4/eclipse-pdebuild.mk0000644000000000000000000001034210345614130015541 0ustar rootroot# -*- mode: makefile; coding: utf-8 -*- # Copyright © 2005 Ivan Dubrov # 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. 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) # Host Eclipse SDK for building PDEBUILD_HOST ?= /usr/lib/eclipse # Directory where local Eclipse SDK instance is created. # Note: must be absolute PDEBUILD_HOSTLOCAL ?= $(CURDIR)/debian/eclipse-local # Directory that contains additional plugins to be used during the build PDEBUILD_BASELOCATION ?= $(PDEBUILD_HOSTLOCAL) # PDE Build release engineering directory, with build.properties and # customTargets.xml PDEBUILD_BUILDER ?= $(CURDIR)/releng # Determine the most recent PDE Build scripts plugin version ifndef PDE_VERSION PDEBUILD_VERSION := $(shell ls $(PDEBUILD_HOST)/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 Ant script PDEBUILD_BUILDFILE ?= $(PDEBUILD_HOSTLOCAL)/plugins/org.eclipse.pde.build_$(PDEBUILD_VERSION)/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 ?= $(CURDIR) # Link names to enable when creating local Eclipse SDK instance. Each name is # name of the file in the $(PDEBUILD_HOST)/links/ directory without the .link # extension PDEBUILD_LINKS ?= # PDEBUILD_OPTS ?= # PDEBUILD_VMARGS ?= # 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_HOST)/plugins/org.eclipse.pde.build_$(PDEBUILD_VERSION)"; then \ echo "You must specify a valid Eclipse SDK directory!"; \ exit 1; \ fi # Configure local Eclipse SDK instance pre-build:: debian/stamp-pde-local debian/stamp-pde-local: mkdir -p $(PDEBUILD_HOSTLOCAL) ln -s $(PDEBUILD_HOST)/configuration $(PDEBUILD_HOSTLOCAL) ln -s $(PDEBUILD_HOST)/eclipse.ini $(PDEBUILD_HOSTLOCAL) ln -s $(PDEBUILD_HOST)/features $(PDEBUILD_HOSTLOCAL) ln -s $(PDEBUILD_HOST)/plugins $(PDEBUILD_HOSTLOCAL) ln -s $(PDEBUILD_HOST)/startup.jar $(PDEBUILD_HOSTLOCAL) ln -s $(PDEBUILD_HOST)/eclipse $(PDEBUILD_HOSTLOCAL) mkdir $(PDEBUILD_HOSTLOCAL)/links for i in $(PDEBUILD_LINKS) ; do \ ln -s $(PDEBUILD_HOST)/links/$$i.link $(PDEBUILD_HOSTLOCAL)/links ; \ done ; touch $@ # Invoke PDE Build common-build-arch common-build-indep:: debian/stamp-pde-build eclipse-sanity-check debian/stamp-pde-build: ${JAVA_HOME}/bin/java $(PDEBUILD_VMARGS) \ -jar $(PDEBUILD_HOSTLOCAL)/startup.jar \ -launcher $(PDEBUILD_HOSTLOCAL)/eclipse \ -install $(PDEBUILD_HOSTLOCAL) \ -consoleLog \ -data $(PDEBUILD_DATA) \ -configuration $(PDEBUILD_CONFIG) \ -application org.eclipse.ant.core.antRunner \ -buildfile $(PDEBUILD_BUILDFILE) \ -Dbuilder=$(PDEBUILD_BUILDER) \ -DbuildDirectory=$(PDEBUILD_BUILDDIR) \ -DbaseLocation=$(PDEBUILD_BASELOCATION) touch $@ clean:: rm -f debian/stamp-pde-build rm -rf $(PDEBUILD_HOSTLOCAL) -rm debian/stamp-pde-local endif pdebuild-0.0.4/debian/0000755000000000000000000000000010346321337013225 5ustar rootrootpdebuild-0.0.4/debian/control0000644000000000000000000000105710346320615014631 0ustar rootrootSource: pdebuild Section: devel Priority: optional Maintainer: Ivan Dubrov Build-Depends: debhelper (>= 5.0.0), cdbs Standards-Version: 3.6.2 Package: pdebuild Architecture: all Depends: make Recommends: eclipse (>= 3.1.1-6) Enhances: cdbs Description: Eclipse PDE Build extension for Common Debian Build System pdebuild provides make scripts to build Eclipse features and plugins using the Eclipse PDE Build system. These scripts extend the Common Debian Build System. . Homepage http://debian-eclipse.wfrag.org/tracpy/wiki/PDEBuild pdebuild-0.0.4/debian/rules0000755000000000000000000000010110340232014014260 0ustar rootroot#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk pdebuild-0.0.4/debian/changelog0000644000000000000000000000135310346320615015077 0ustar rootrootpdebuild (0.0.4) unstable; urgency=low * Recommends changed from eclipse-sdk to eclipse -- Ivan Dubrov Fri, 9 Dec 2005 21:28:22 +0600 pdebuild (0.0.3) unstable; urgency=low * Debhelper compatibility updated to 5 * Eclipse is now invoked directly (startup.jar), without the launcher -- Ivan Dubrov Wed, 7 Dec 2005 22:55:50 +0600 pdebuild (0.0.2) unstable; urgency=low * Changed PDEBUILD_DIR default directory to package root directory * Variables names and default values changed a bit -- Ivan Dubrov Tue, 29 Nov 2005 21:10:35 +0600 pdebuild (0.0.1) unstable; urgency=low * Initial release. -- Ivan Dubrov Mon, 21 Nov 2005 08:13:36 +0600 pdebuild-0.0.4/debian/compat0000644000000000000000000000000210345614130014416 0ustar rootroot5 pdebuild-0.0.4/debian/copyright0000644000000000000000000000173310340351012015147 0ustar rootrootThis package was developed by Ivan Dubrov on Wed, 21 Nov 2005 8:40:06 +0600 Author: Ivan Dubrov Copyright : 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 of the License, 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 package; if not, write to the Free Software Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. pdebuild-0.0.4/debian/install0000644000000000000000000000005310340365500014606 0ustar rootrooteclipse-pdebuild.mk usr/share/cdbs/1/class