[med-svn] [libjung-java] 01/01: First attempt to update the package with maven
Dylan Aïssi
bob.dybian-guest at moszumanska.debian.org
Fri Jan 26 21:36:37 UTC 2018
This is an automated email from the git hooks/post-receive script.
bob.dybian-guest pushed a commit to branch master
in repository libjung-java.
commit 890dbec23b68873bdc5805f1a73e57e97ddcb39c
Author: Dylan Aïssi <bob.dybian at gmail.com>
Date: Fri Jan 26 22:25:43 2018 +0100
First attempt to update the package with maven
---
debian/control | 12 ++++++++++--
debian/rules | 35 +++--------------------------------
2 files changed, 13 insertions(+), 34 deletions(-)
diff --git a/debian/control b/debian/control
index 13e881b..6e39471 100644
--- a/debian/control
+++ b/debian/control
@@ -5,8 +5,16 @@ Uploaders: Michael R. Crusoe <crusoe at ucdavis.edu>,
Section: java
Priority: optional
Build-Depends: debhelper (>= 11~),
- javahelper,
- unzip
+ maven-debian-helper,
+ libmaven-javadoc-plugin-java,
+ libmaven-jar-plugin-java,
+ libmaven-install-plugin-java,
+ libmaven-deploy-plugin-java,
+ libmaven-site-plugin-java,
+ libmaven-antrun-plugin-java,
+ libmaven-assembly-plugin-java,
+ libmaven-dependency-plugin-java,
+ libmaven-compiler-plugin-java
Build-Depends-Indep: default-jdk,
libcolt-free-java,
libcommons-collections4-java,
diff --git a/debian/rules b/debian/rules
index 0c29793..ca12093 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,37 +1,8 @@
#!/usr/bin/make -f
-DH_VERBOSE := 1
-
-export JAVA_HOME=/usr/lib/jvm/default-java
-export CLASSPATH=/usr/share/java/commons-collections4.jar:/usr/share/java/colt.jar:/usr/share/java/vecmath.jar:./jung-api-2.0.1.jar:./jung-algorithms-2.0.1.jar:./jung-visualization-2.0.1.jar:./jung-graph-impl-2.0.1.jar:./jung-io-2.0.1.jar
-
%:
- dh $@ --with javahelper
-
-override_dh_clean:
- rm -rf jung-3d-2.0.1-sources jung-3d-demos-2.0.1-sources jung-algorithms-2.0.1-sources
- rm -rf jung-api-2.0.1-sources jung-graph-impl-2.0.1-sources jung-io-2.0.1-sources
- rm -rf jung-samples-2.0.1-sources jung-visualization-2.0.1-sources
- dh_clean
+ dh $@ --buildsystem=maven
-override_dh_auto_build: unzip
- for jar in *.jar; do cd $${jar%%.jar}; find . -type f | xargs sed -i -e \
- 's/org.apache.commons.collections15/org.apache.commons.collections4/' \
- -e 's/org.apache.commons.collections4.Buffer/java.util.Queue/' \
- -e 's/org.apache.commons.collections4.buffer.UnboundedFifoBuffer/java.util.LinkedList/' \
- -e 's/UnboundedFifoBuffer/LinkedList/' \
- -e 's/Buffer</Queue</' \
- -e 's/LazyMap.decorate/LazyMap.lazyMap/' \
- -e 's/MapTransformer.getInstance/MapTransformer.mapTransformer/' \
- -e 's/ChainedTransformer.getInstance/ChainedTransformer.chainedTransformer/' \
- -e 's/CloneTransformer.getInstance/CloneTransformer.cloneTransformer/' \
- -e 's/CloneTransformer.<Point2D>getInstance/CloneTransformer.cloneTransformer/' \
- -e 's/OrPredicate.getInstance/OrPredicate.orPredicate/' \
- -e 's/TruePredicate.getInstance/TruePredicate.truePredicate/' ; \
- cd ..; done;
- patch -p1 < debian/patches/use-apache-commons-collections
- dh_auto_build
+override_dh_auto_clean:
+ echo "dh_auto_clean is broken here..."
-unzip:
- for jar in *.jar; do mkdir $${jar%%.jar}; cd $${jar%%.jar}; \
- unzip ../$${jar}; cd ..; done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libjung-java.git
More information about the debian-med-commit
mailing list