[med-svn] [mhap] 02/02: Update packaging to build with maven
Afif Elghraoui
afif at moszumanska.debian.org
Tue Jul 12 08:41:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
afif pushed a commit to branch master
in repository mhap.
commit 0841450cb94fad9c74cc70bc28ce1dc037d5548f
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Sat Jul 9 15:15:22 2016 -0700
Update packaging to build with maven
Thanks: Tony Mancill for patches and advice
---
debian/control | 4 +++-
debian/maven.rules | 2 ++
debian/mhap.poms | 28 ++++++++++++++++++++++++++++
debian/rules | 2 +-
4 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 9433787..051ece3 100644
--- a/debian/control
+++ b/debian/control
@@ -6,12 +6,14 @@ Uploaders: Afif Elghraoui <afif at debian.org>
Build-Depends:
debhelper (>= 9),
javahelper,
+ maven-debian-helper,
+ libmaven-dependency-plugin-java,
openjdk-8-jdk,
- ant,
libcommons-compress-java,
libfastutil-java,
libguava-java,
jaligner,
+ libssw-java,
Standards-Version: 3.9.7
Homepage: http://mhap.readthedocs.org/en/stable/
Vcs-Git: https://anonscm.debian.org/git/debian-med/mhap.git
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..49d8b72
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,2 @@
+s/com.jaligner/jaligner/ jaligner * * * *
+s/com.ssw/ssw/ ssw * * * *
diff --git a/debian/mhap.poms b/debian/mhap.poms
new file mode 100644
index 0000000..0417132
--- /dev/null
+++ b/debian/mhap.poms
@@ -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]
+#
+pom.xml --has-package-version
diff --git a/debian/rules b/debian/rules
index 3e684df..1d84e02 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ export LC_ALL=C.UTF-8
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$(DEB_HOST_ARCH)
%:
- dh $@ --with javahelper
+ dh $@ --with javahelper --buildsystem=maven
override_dh_link:
dh_link usr/share/java/mhap-2.0.jar usr/bin/mhap
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mhap.git
More information about the debian-med-commit
mailing list