[SCM] eclipse-emf - Plug-in for eclipse - Debian package. branch, master, updated. 06c26054871083536e99cd9797ef27690774e908

Niels Thykier nthykier-guest at alioth.debian.org
Mon Feb 15 22:34:38 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "eclipse-emf - Plug-in for eclipse - Debian package.".

The branch, master has been updated
       via  06c26054871083536e99cd9797ef27690774e908 (commit)
      from  7a4fd22fcd21798bbe28ab19bf5176242a4a3d77 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 06c26054871083536e99cd9797ef27690774e908
Author: Niels Thykier <niels at thykier.net>
Date:   Mon Feb 15 23:33:51 2010 +0100

    Added the last rules to build the package and
    fixed some errors in debian/control

-----------------------------------------------------------------------

Summary of changes:
 debian/control |   18 +++++++++++-------
 debian/rules   |   33 ++++++++++++++++++++++++++++++---
 2 files changed, 41 insertions(+), 10 deletions(-)

diff --git a/debian/control b/debian/control
index d16d094..bd498fc 100644
--- a/debian/control
+++ b/debian/control
@@ -1,5 +1,4 @@
 Source: eclipse-emf
-Architecture: all
 Section: java
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
@@ -17,6 +16,7 @@ Vcs-Browser: http://git.debian.org/?p=pkg-java/eclipse-emf.git
 Homepage: http://www.eclipse.org/emf
 
 Package: eclipse-emf
+Architecture: all
 Depends: default-jre | java1-runtime | java2-runtime |
          java5-runtime | java6-runtime,
          eclipse-platform (>= 3.5.0)
@@ -29,9 +29,10 @@ Description: Eclipse Modeling Framework (EMF)
  basic editor.
 
 Package: eclipse-emf-sdk
+Architecture: all
 Depends: default-jre | java1-runtime | java2-runtime |
          java5-runtime | java6-runtime,
-         eclipse-emf (= ${Source:Version}),
+         eclipse-emf (= ${source:Version}),
          eclipse-pde (>= 3.5.1)
 Description: Eclipse Modeling Framework (EMF)
  The Eclipse Modeling Framework (EMF) allows developers to build tools and
@@ -44,9 +45,10 @@ Description: Eclipse Modeling Framework (EMF)
  Documentation and source for the Eclipse Modeling Framework (EMF).
 
 Package: eclipse-xsd
+Architecture: all
 Depends: default-jre | java1-runtime | java2-runtime |
          java5-runtime | java6-runtime,
-         eclipse-emf (= ${Source:Version})
+         eclipse-emf (= ${source:Version})
 Description: XML Schema Definition (XSD) for Eclipse
  The XML Schema Definition (XSD) plugin is a library that provides an API for
  manipulating the components of an XML Schema as described by the W3C XML
@@ -54,11 +56,12 @@ Description: XML Schema Definition (XSD) for Eclipse
  representation of XML Schema as a series of XML documents.
 
 Package: eclipse-xsd-sdk
+Architecture: all
 Depends: default-jre | java1-runtime | java2-runtime |
          java5-runtime | java6-runtime,
-         eclipse-emf-sdk (= ${Source:Version}),
+         eclipse-emf-sdk (= ${source:Version}),
          eclipse-pde (>= 3.5.1),
-         eclipse-xsd (= ${Source:Version})
+         eclipse-xsd (= ${source:Version})
 Description: XML Schema Definition (XSD) for Eclipse
  The XML Schema Definition (XSD) plugin is a library that provides an API for
  manipulating the components of an XML Schema as described by the W3C XML
@@ -68,10 +71,11 @@ Description: XML Schema Definition (XSD) for Eclipse
  Documentation and source for the Eclipse XML Schema Definition (XSD) plugin.
 
 Package: eclipse-emf-examples
+Architecture: all
 Depends: default-jre | java1-runtime | java2-runtime |
          java5-runtime | java6-runtime,
-         eclipse-emf (= ${Source:Version}),
-         eclipse-xsd (= ${Source:Version})
+         eclipse-emf (= ${source:Version}),
+         eclipse-xsd (= ${source:Version})
 Description: Eclipse EMF/XSD examples
  Installable versions of the example projects from the SDKs that demonstrate how
  to use the Eclipse Modeling Framework (EMF) and XML Schema Definition (XSD)
diff --git a/debian/rules b/debian/rules
index 02983b6..16b5d94 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,9 @@ PDEBUILD ?= /usr/lib/eclipse/buildscripts/pdebuild
 #       scripts and don't work otherwise.
 PDEBUILD_OPTIONS:="-DjavacTarget=1.5 -DjavacSource=1.5 -DforceContextQualifier=v200906151043"
 
+BUILD_DIR:= debian/.eclipse-build
+DROPINS:=usr/share/eclipse/dropins/
+
 TOBUILD=org.eclipse.emf \
 	org.eclipse.emf.sdk \
 	org.eclipse.xsd \
@@ -20,15 +23,39 @@ build: build-stamp
 
 build-stamp:
 	dh_testdir
-	mkdir -p debian/.eclipse-build/
-	cp -a org.eclipse.* debian/.eclipse-build/
+	mkdir -p $(BUILD_DIR)
+	cp -a org.eclipse.* $(BUILD_DIR)
 	for FILE in $(TOBUILD) ; do \
-		cd debian/.eclipse-build/ ;\
+		cd $(BUILD_DIR) ;\
 		$(PDEBUILD) -f $$FILE -a $(PDEBUILD_OPTIONS) ;\
 		cd $(CURDIR) ;\
 	done
 	touch $@
 
+binary binary-arch binary-indep:
+	dh $@
+
+override_dh_install:
+	dh_install
+	for P in `dh_listpackages` ; do \
+		mkdir -p debian/$$P/usr/share/eclipse/dropins/ ; \
+	done
+	unzip -q -n -d debian/eclipse-emf/$(DROPINS)/emf $(BUILD_DIR)/build/rpmBuild/org.eclipse.emf.zip
+	unzip -q -n -d debian/eclipse-emf-sdk/$(DROPINS)/emf-sdk $(BUILD_DIR)/build/rpmBuild/org.eclipse.emf.sdk.zip
+	unzip -q -n -d debian/eclipse-xsd/$(DROPINS)/xsd $(BUILD_DIR)/build/rpmBuild/org.eclipse.xsd.zip
+	unzip -q -n -d debian/eclipse-xsd/$(DROPINS)/xsd $(BUILD_DIR)/build/rpmBuild/org.eclipse.xsd.edit.zip
+	unzip -q -n -d debian/eclipse-xsd/$(DROPINS)/xsd $(BUILD_DIR)/build/rpmBuild/org.eclipse.xsd.editor.zip
+	unzip -q -n -d debian/eclipse-xsd/$(DROPINS)/xsd $(BUILD_DIR)/build/rpmBuild/org.eclipse.xsd.mapping.zip
+	unzip -q -n -d debian/eclipse-xsd/$(DROPINS)/xsd $(BUILD_DIR)/build/rpmBuild/org.eclipse.xsd.mapping.editor.zip
+	unzip -q -n -d debian/eclipse-xsd/$(DROPINS)/xsd $(BUILD_DIR)/build/rpmBuild/org.eclipse.xsd.ecore.converter.zip
+	unzip -q -n -d debian/eclipse-xsd-sdk/$(DROPINS)/xsd-sdk $(BUILD_DIR)/build/rpmBuild/org.eclipse.xsd.sdk.zip
+	unzip -q -n -d debian/eclipse-emf-examples/$(DROPINS)/emf-examples $(BUILD_DIR)/build/rpmBuild/org.eclipse.emf.examples.zip
+
+	(cd debian/eclipse-emf-sdk/$(DROPINS)/emf-sdk/eclipse/features && ls $(CURDIR)/debian/eclipse-emf/$(DROPINS)/emf/eclipse/features | xargs rm -rf)
+	(cd debian/eclipse-emf-sdk/$(DROPINS)/emf-sdk/eclipse/plugins  && ls $(CURDIR)/debian/eclipse-emf/$(DROPINS)/emf/eclipse/plugins  | xargs rm -rf)
+	(cd debian/eclipse-xsd-sdk/$(DROPINS)/xsd-sdk/eclipse/features && ls $(CURDIR)/debian/eclipse-xsd/$(DROPINS)/xsd/eclipse/features | xargs rm -rf)
+	(cd debian/eclipse-xsd-sdk/$(DROPINS)/xsd-sdk/eclipse/plugins  && ls $(CURDIR)/debian/eclipse-xsd/$(DROPINS)/xsd/eclipse/plugins  | xargs rm -rf)
+
 clean:
 	dh_testdir
 	dh_testroot


hooks/post-receive
-- 
eclipse-emf - Plug-in for eclipse - Debian package.



More information about the pkg-java-commits mailing list