Package: libjna-posix-java
Version: 1.0.1-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch



*** /tmp/tmpp9A9J

It would be great if this library could install Maven artifacts to 
/usr/share/maven-repo. Attached patch should do the job.

  * Enabled maven artifact deployment:
    - debian/control: Build-Depends added maven-repo-helper
    - debian/rules: install maven artifacts
    - debian/libjna-posix-java.poms: pom locations.

Thanks for considering the patch.

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-28-generic (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/control'
--- debian/control      2010-01-10 15:24:40 +0000
+++ debian/control      2011-03-29 12:21:44 +0000
@@ -2,7 +2,7 @@
 Section: java
 Priority: optional
 Maintainer: Nicolas Duboc <[email protected]>
-Build-Depends: debhelper (>> 7.0.0), ant
+Build-Depends: debhelper (>> 7.0.0), ant, maven-repo-helper
 Build-Depends-Indep: default-jdk, libjna-java, junit4
 Standards-Version: 3.8.3
 Homepage: http://kenai.com/projects/jna-posix

=== added file 'debian/libjna-posix-java.poms'
--- debian/libjna-posix-java.poms       1970-01-01 00:00:00 +0000
+++ debian/libjna-posix-java.poms       2011-03-29 12:20:54 +0000
@@ -0,0 +1 @@
+pom.xml

=== modified file 'debian/rules'
--- debian/rules        2010-01-10 15:24:40 +0000
+++ debian/rules        2011-03-29 12:20:54 +0000
@@ -40,6 +40,9 @@
        mv $(PKG_BUILDDIR)/$(JAVA_DIR)/jna-posix.jar 
$(PKG_BUILDDIR)/$(JAVA_DIR)/$(jarname)-$(jarversion).jar
        dh_link -p libjna-posix-java $(JAVA_DIR)/$(jarname)-$(jarversion).jar 
$(JAVA_DIR)/$(jarname).jar
 
+       mh_installpoms -plib$(jarname)-java
+       mh_installjar -plib$(jarname)-java -l pom.xml dist/$(jarname).jar 
+
        dh_installdirs -p libjna-posix-java-doc $(DOC_DIR)
        mv dist/javadoc $(PKG_DOC_BUILDDIR)/$(DOC_DIR)
 

Reply via email to