[med-svn] [surankco] 03/03: Try to build jar

Andreas Tille tille at debian.org
Thu Mar 24 13:58:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository surankco.

commit 5d8a3e55ef25427a6660d4bc88c723bf32b24c48
Author: Andreas Tille <tille at debian.org>
Date:   Thu Mar 24 14:53:06 2016 +0100

    Try to build jar
---
 debian/control  |  6 ++++--
 debian/manifest |  6 ++++++
 debian/rules    | 19 +++++--------------
 3 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/debian/control b/debian/control
index e359b8d..7caf09b 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,9 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
 Uploaders: Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9),
+               javahelper,
+               default-jdk
 Standards-Version: 3.9.7
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/surankco.git
 Vcs-Git: https://anonscm.debian.org/debian-med/surankco.git
@@ -11,7 +13,7 @@ Homepage: https://sourceforge.net/projects/surankco/
 
 Package: surankco
 Architecture: any
-Depends: ${shlibs:Depends},
+Depends: ${java:Depends},
          ${misc:Depends}
 Description: Supervised Ranking of Contigs in de novo Assemblies
  SuRankCo is a machine learning based software to score and rank
diff --git a/debian/manifest b/debian/manifest
new file mode 100644
index 0000000..c315f1b
--- /dev/null
+++ b/debian/manifest
@@ -0,0 +1,6 @@
+/usr/share/java/surankco.jar:
+ Main-Class: current/align2/BBMap
+ Class-Path: /usr/share/java/mpi.jar
+
+
+
diff --git a/debian/rules b/debian/rules
index 1d11ebc..16e3199 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,21 +2,12 @@
 
 # DH_VERBOSE := 1
 
-# some helpful variables - uncomment them if needed
-# shamelessly stolen from http://jmtd.net/log/awk/
-#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
-#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
-#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
-#GIT_TAG        := $(subst ~,_,$(VERSION))
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 
-# alternatively to manually set those variables, you can
-#  include /usr/share/dpkg/default.mk
-# and use what is set there.
+export JAVA_HOME  := /usr/lib/jvm/default-java
 
 %:
-	dh $@
+	dh $@ --with javahelper
 
-#get-orig-source:
-#	. debian/get-orig-source
+override_dh_auto_build:
+	jh_build $(DEBPKGNAME).jar src

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/surankco.git



More information about the debian-med-commit mailing list