[Git][java-team/eclipse-debian-helper][master] 2 commits: Support bundledir/bundle in d/bundles

Emmanuel Bourg gitlab at salsa.debian.org
Fri Oct 19 12:23:22 BST 2018


Emmanuel Bourg pushed to branch master at Debian Java Maintainers / eclipse-debian-helper


Commits:
164e5958 by Jochen Sprickerhof at 2018-10-03T11:29:12Z
Support bundledir/bundle in d/bundles

- - - - -
4313d829 by Emmanuel Bourg at 2018-10-19T11:13:57Z
Upload to unstable

- - - - -


3 changed files:

- debian/changelog
- src/ant/build-eclipse-bundle.xml
- src/perl/eclipse_bundles.pm


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+eclipse-debian-helper (1.4) unstable; urgency=medium
+
+  * Team upload.
+  * Support other bundle dirrectories than 'bundles' and the base directory
+
+ -- Jochen Sprickerhof <jspricke at debian.org>  Fri, 19 Oct 2018 13:13:21 +0200
+
 eclipse-debian-helper (1.3) unstable; urgency=medium
 
   * Add a symlink in /usr/lib/eclipse/plugins/ when installing a plugin


=====================================
src/ant/build-eclipse-bundle.xml
=====================================
@@ -97,7 +97,7 @@
             <not><equals arg1="@{shortname}" arg2="" /></not>
             <then><var name="shortname.@{name}" value="@{shortname}"/></then>
           </if>
-          <concat destfile="debian/bundles.properties" append="true">@{name}	${bundle.version.@{name}}	${shortname.@{name}}	lib${shortname.@{name}}-java	${bundle.depends.@{name}}${line.separator}</concat>
+          <concat destfile="debian/bundles.properties" append="true">@{name}	${bundle.version.@{name}}	${shortname.@{name}}	lib${shortname.@{name}}-java	${bundle.depends.@{name}}	@{basedir}${line.separator}</concat>
 
           <!-- Prepare the pom to be installed in the package -->
           <copy file="${bundle.dir.@{name}}/pom.xml" todir="${bundle.dir.@{name}}/target"/>


=====================================
src/perl/eclipse_bundles.pm
=====================================
@@ -7,6 +7,7 @@ package Debian::Debhelper::Buildsystem::eclipse_bundles;
 
 use strict;
 use warnings;
+use File::Basename;
 use parent qw(Debian::Debhelper::Buildsystem);
 use Debian::Debhelper::Dh_Lib qw(%dh addsubstvar);
 
@@ -50,7 +51,9 @@ sub build {
 	push(@args, "-Dbasedir", ".");
 	push(@args, "-Dbundledir", $this->{bundledir});
 	push(@args, "-f", "debian/build.xml");
-	push(@args, @{$this->{bundles}});
+	for my $bundle (@{$this->{bundles}}) {
+		push(@args, basename($bundle));
+	}
 
 	# Set the username to improve the reproducibility
 	push(@args, "-Duser.name", "debian");
@@ -72,16 +75,17 @@ sub install {
 		my $shortname    = $fields[2];
 		my $package      = $fields[3];
 		my $dependencies = $fields[4];
+		my $basedir      = $fields[5];
 
 		# Install the Maven artifacts
-		$this->doit_in_builddir("mh_installpom", "-p$package", "--no-parent", "-e$version", "$this->{bundledir}/$bundle/target/pom.xml");
-		$this->doit_in_builddir("mh_installjar", "-p$package", "--java-lib", "-e$version", "--usj-name=$shortname", "$this->{bundledir}/$bundle/target/pom.xml", "$this->{bundledir}/$bundle/target/$bundle.jar");
+		$this->doit_in_builddir("mh_installpom", "-p$package", "--no-parent", "-e$version", "$basedir/$bundle/target/pom.xml");
+		$this->doit_in_builddir("mh_installjar", "-p$package", "--java-lib", "-e$version", "--usj-name=$shortname", "$basedir/$bundle/target/pom.xml", "$basedir/$bundle/target/$bundle.jar");
 
 		# Specify the bundle dependencies in the substvars file
 		addsubstvar($package, "bundle:Depends", $dependencies);
 
 		# Add a symlink in /usr/lib/eclipse/plugins/ for plugins
-		open(PROJECT_FILE, "$this->{bundledir}/$bundle/.project");
+		open(PROJECT_FILE, "$basedir/$bundle/.project");
 		if (grep{/org.eclipse.pde.PluginNature/} <PROJECT_FILE>) {
 			$this->doit_in_builddir("dh_link", "-p$package", "/usr/share/java/$shortname.jar", "/usr/lib/eclipse/plugins/${bundle}_${version}.jar");
 		}



View it on GitLab: https://salsa.debian.org/java-team/eclipse-debian-helper/compare/476f3990487784212b1d90677fb246e5f9fb5701...4313d829817b40e5581b7ca55830a45787745cd8

-- 
View it on GitLab: https://salsa.debian.org/java-team/eclipse-debian-helper/compare/476f3990487784212b1d90677fb246e5f9fb5701...4313d829817b40e5581b7ca55830a45787745cd8
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20181019/2900c7dc/attachment.html>


More information about the pkg-java-commits mailing list