[pkg-java] r11141 - trunk/rhino/debian

Damien Raude-Morvan drazzib at alioth.debian.org
Thu Nov 26 23:18:34 UTC 2009


Author: drazzib
Date: 2009-11-26 23:18:33 +0000 (Thu, 26 Nov 2009)
New Revision: 11141

Added:
   trunk/rhino/debian/pom.xml
   trunk/rhino/debian/rhino.poms
Modified:
   trunk/rhino/debian/changelog
   trunk/rhino/debian/compat
   trunk/rhino/debian/control
   trunk/rhino/debian/rules
Log:
* Maven POMs:
  - debian/control: add a Build-Depends on maven-repo-helper
  - debian/rules: use mh_installpoms and mh_installjar
    to install the POM and the jar to the Maven repository
  - debian/pom.xml: Debian pom.xml file as upstream doesn't provide one
  - debian/rules: new get-orig-pom to update debian/pom.xml at new upstream
    release.
* Bump debhelper version to >= 7

Modified: trunk/rhino/debian/changelog
===================================================================
--- trunk/rhino/debian/changelog	2009-11-26 23:14:35 UTC (rev 11140)
+++ trunk/rhino/debian/changelog	2009-11-26 23:18:33 UTC (rev 11141)
@@ -1,3 +1,16 @@
+rhino (1.7R2-3) UNRELEASED; urgency=low
+
+  * Maven POMs:
+    - debian/control: add a Build-Depends on maven-repo-helper
+    - debian/rules: use mh_installpoms and mh_installjar
+      to install the POM and the jar to the Maven repository
+    - debian/pom.xml: Debian pom.xml file as upstream doesn't provide one
+    - debian/rules: new get-orig-pom to update debian/pom.xml at new upstream
+      release.
+  * Bump debhelper version to >= 7
+
+ -- Damien Raude-Morvan <drazzib at debian.org>  Fri, 27 Nov 2009 00:18:04 +0100
+
 rhino (1.7R2-2) unstable; urgency=low
 
   * Switch to Quilt patch system:

Modified: trunk/rhino/debian/compat
===================================================================
--- trunk/rhino/debian/compat	2009-11-26 23:14:35 UTC (rev 11140)
+++ trunk/rhino/debian/compat	2009-11-26 23:18:33 UTC (rev 11141)
@@ -1 +1 @@
-5
+7

Modified: trunk/rhino/debian/control
===================================================================
--- trunk/rhino/debian/control	2009-11-26 23:14:35 UTC (rev 11140)
+++ trunk/rhino/debian/control	2009-11-26 23:18:33 UTC (rev 11141)
@@ -4,7 +4,7 @@
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Arnaud Vandyck <avdyk at debian.org>, Paul Cager <paul-debian at home.paulcager.org>,
   Marcus Better <marcus at better.se>, Michael Koch <konqueror at gmx.de>, Damien Raude-Morvan <drazzib at debian.org>
-Build-Depends: debhelper (>= 5), cdbs, ant, default-jdk, quilt
+Build-Depends: debhelper (>= 7), cdbs, ant, default-jdk, quilt, maven-repo-helper
 Standards-Version: 3.8.3
 Homepage: http://www.mozilla.org/rhino/
 Vcs-Svn: svn://svn.debian.org/pkg-java/trunk/rhino/

Added: trunk/rhino/debian/pom.xml
===================================================================
--- trunk/rhino/debian/pom.xml	                        (rev 0)
+++ trunk/rhino/debian/pom.xml	2009-11-26 23:18:33 UTC (rev 11141)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>rhino</groupId>
+	<artifactId>js</artifactId>
+	<version>1.7R2</version>
+	<packaging>jar</packaging>
+	<name>Rhino</name>
+	<description>Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users.</description>
+	<url>http://www.mozilla.org/rhino/</url>
+
+	<licenses>
+		<license>
+			<name>Mozilla Public License</name>
+			<url>http://www.mozilla.org/MPL/MPL-1.1.html</url>
+			<distribution>repo</distribution>
+		</license>
+	</licenses>
+
+</project>

Added: trunk/rhino/debian/rhino.poms
===================================================================
--- trunk/rhino/debian/rhino.poms	                        (rev 0)
+++ trunk/rhino/debian/rhino.poms	2009-11-26 23:18:33 UTC (rev 11141)
@@ -0,0 +1 @@
+debian/pom.xml

Modified: trunk/rhino/debian/rules
===================================================================
--- trunk/rhino/debian/rules	2009-11-26 23:14:35 UTC (rev 11140)
+++ trunk/rhino/debian/rules	2009-11-26 23:18:33 UTC (rev 11141)
@@ -5,7 +5,6 @@
 include /usr/share/cdbs/1/class/ant.mk
 
 JAVA_HOME := /usr/lib/jvm/default-java
-
 DEB_ANT_BUILD_TARGET := jar javadoc 
 
 UVERSION	:= $(shell echo $(DEB_UPSTREAM_VERSION) | sed "s/~RC.//" | sed "s/~pre//")
@@ -13,9 +12,13 @@
 
 BUILDDIR=build/rhino$(BUILDDIRVERSION)
 
+POM_VERSION          := $(UVERSION)
+MAVEN_REPO           := http://repository.sonatype.org/service/local/repositories/central/content
+
 clean::
 	rm -rf toolsrc/org/mozilla/javascript/tools/debugger/downloaded/*
 	rm -rf build
+	-rm -rf debian/tmp
 
 # The upstream build file (toolsrc/org/mozilla/javascript/tools/debugger/build.xml) downloads
 # a ZIP file containing some sample swing code, which is then modified and used as part of the
@@ -31,8 +34,8 @@
 	cp debian/src_from_treetable_article_see_bug409629/TreeTableModelAdapter.java toolsrc/org/mozilla/javascript/tools/debugger/downloaded/
 
 install/rhino::
-	install -m 644 -D $(BUILDDIR)/js.jar debian/rhino/usr/share/java/js-$(UVERSION).jar
-	dh_link -prhino usr/share/java/js-$(UVERSION).jar usr/share/java/js.jar
+	mh_installpoms -prhino
+	mh_installjar -prhino -l debian/pom.xml $(BUILDDIR)/js.jar
 
 install/rhino-doc::
 	mv $(BUILDDIR)/javadoc $(BUILDDIR)/api
@@ -40,3 +43,7 @@
 
 get-orig-source:
 	uscan --force-download --repack
+
+get-orig-pom:
+	wget -O debian/pom.xml $(MAVEN_REPO)/rhino/js/$(POM_VERSION)/js-$(POM_VERSION).pom
+




More information about the pkg-java-commits mailing list