[med-svn] [cgview] 01/02: Weak try to create a jar file without having a build system

Andreas Tille tille at debian.org
Fri Nov 27 09:14:21 UTC 2015


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

tille pushed a commit to branch master
in repository cgview.

commit be63864bb2fa9f0726fc1a38bcd0ea9f73e14990
Author: Andreas Tille <tille at debian.org>
Date:   Fri Nov 27 10:00:06 2015 +0100

    Weak try to create a jar file without having a build system
---
 debian/rules | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index 1d11ebc..32f7260 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,16 +7,20 @@
 #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}')
+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))
 
-# alternatively to manually set those variables, you can
-#  include /usr/share/dpkg/default.mk
-# and use what is set there.
+JAVA_HOME  := /usr/lib/jvm/default-java
+DEBJAR    := /usr/share/java
+CLASS_PATH := $(DEBJAR)/batik-awt-util.jar:$(DEBJAR)/batik-dom.jar:$(DEBJAR)/batik-svggen.jar:$(DEBJAR)/batik-util.jar:$(DEBJAR)/batik-xml.jar:$(DEBJAR)/commons-lang.jar:$(DEBJAR)/jargs.jar:$(DEBJAR)/xercesImpl.jar
 
 %:
 	dh $@
 
-#get-orig-source:
-#	. debian/get-orig-source
+override_dh_auto_build:
+	cd src && \
+	cp -a ca/ualberta/stothard/cgview/includes . && \
+	javac -classpath $(CLASS_PATH) ca/ualberta/stothard/cgview/*.java && \
+	jar -cmf ../manifestinfo $(DEBPKGNAME).jar ca/ualberta/stothard/cgview/*.class includes && \
+	rm -rf includes

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



More information about the debian-med-commit mailing list