Package: libjargs-java
Version: 1.0.0-3
Severity: normal
Tags: patch

Hi,

The enclosed patch adds maven support (i.e. it installs relevant
entries into /usr/share/maven-repo/), meaning that other java code
that builds with maven and depends upon this package will build.

Thanks,

Matthew


-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

libjargs-java depends on no packages.

libjargs-java recommends no packages.

Versions of packages libjargs-java suggests:
pn  libjargs-java-doc  <none>

-- no debconf information
diff -ruN jargs-1.0.0/debian/control jargs-1.0.0-new/debian/control
--- jargs-1.0.0/debian/control	2011-02-12 17:03:56.000000000 +0000
+++ jargs-1.0.0-new/debian/control	2014-02-28 17:28:17.889467668 +0000
@@ -4,7 +4,7 @@
 Maintainer: Debian Java Maintainers <[email protected]>
 Uploaders: Dominik Smatana <[email protected]>
 Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant, javahelper (>= 0.32~)
-Build-Depends-Indep: junit, default-jdk-doc
+Build-Depends-Indep: junit, default-jdk-doc, maven-repo-helper
 Standards-Version: 3.9.1
 Homepage: http://jargs.sourceforge.net/
 
diff -ruN jargs-1.0.0/debian/libjargs-java.poms jargs-1.0.0-new/debian/libjargs-java.poms
--- jargs-1.0.0/debian/libjargs-java.poms	1970-01-01 01:00:00.000000000 +0100
+++ jargs-1.0.0-new/debian/libjargs-java.poms	2014-02-28 17:32:47.678996209 +0000
@@ -0,0 +1,28 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+debian/pom.xml --has-package-version
diff -ruN jargs-1.0.0/debian/pom.xml jargs-1.0.0-new/debian/pom.xml
--- jargs-1.0.0/debian/pom.xml	1970-01-01 01:00:00.000000000 +0100
+++ jargs-1.0.0-new/debian/pom.xml	2014-02-28 17:37:08.032334164 +0000
@@ -0,0 +1,11 @@
+<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>jargs</groupId>
+  <artifactId>jargs</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0</version>
+  <name>Command-line argument parsing for Java</name>
+  <url>http://jargs.sourceforge.net/</url>
+  <description>provides a convenient, compact, pre-packaged and comprehensively documented suite of command line option parsers for the use of Java programmers.</description>
+
+</project>
diff -ruN jargs-1.0.0/debian/rules jargs-1.0.0-new/debian/rules
--- jargs-1.0.0/debian/rules	2011-02-12 16:45:36.000000000 +0000
+++ jargs-1.0.0-new/debian/rules	2014-02-28 17:47:11.180699298 +0000
@@ -20,3 +20,10 @@
 
 install/libjargs-java::
 	jh_installlibs -p$(cdbs_curpkg) --upstream-version=$(DEB_UPSTREAM_VERSION) lib/jargs.jar
+
+binary-post-install/libjargs-java::
+	mh_installpoms -plibjargs-java
+	mh_installjar -plibjargs-java -l debian/pom.xml lib/jargs.jar
+
+clean::
+	mh_clean

Reply via email to