[statsvn] 26/37: [statsvn] Now using javahelper + the new features of java-wrappers
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Apr 19 22:55:44 BST 2018
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository statsvn.
commit 7dfdcd7b9510d817d66d92ca601e4a899f02e4fa
Author: Vincent Fourmond <fourmond at debian.org>
Date: Mon Apr 4 15:19:44 2011 +0000
[statsvn] Now using javahelper + the new features of java-wrappers
---
debian/changelog | 9 ++++++++
debian/control | 9 ++++----
debian/patches/15-build-xml-build-jar-only.diff | 30 +++++++++++++------------
debian/rules | 25 ++++++---------------
debian/statsvn.classpath | 1 +
debian/statsvn.install | 1 +
debian/statsvn.jlibs | 1 +
debian/wrappers/statsvn | 3 +--
8 files changed, 40 insertions(+), 39 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 51860af..6d8757a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+statsvn (0.7.0.dfsg-4) experimental; urgency=low
+
+ * Now using javahelper, thanks to mjj29 !
+ * Now specifying a real classpath
+ * Letting java-wrappers find the classpath itself.
+ * Now almost using upstream target for building the jar
+
+ -- Vincent Fourmond <fourmond at debian.org> Mon, 04 Apr 2011 17:12:20 +0200
+
statsvn (0.7.0.dfsg-3) unstable; urgency=low
* Add libjdom1-java to dependencies + add jdom1 in the classpath
diff --git a/debian/control b/debian/control
index 54202c8..7e1bf63 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.or
Uploaders: Vincent Fourmond <fourmond at debian.org>
Build-Depends: cdbs, debhelper (>= 5), ant, libbackport-util-concurrent-java,
libjcommon-java, libjfreechart-java, statcvs (>= 1:0.5.0), default-jdk,
- libsvnkit-java, libjdom1-java
+ libsvnkit-java, libjdom1-java, javahelper (>= 0.19)
Standards-Version: 3.9.1
Homepage: http://www.statsvn.org/
Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/statsvn
@@ -14,10 +14,9 @@ Vcs-Browser: http://svn.debian.org/viewsvn/pkg-java/trunk/statsvn
Package: statsvn
Architecture: all
-Depends: java-gcj-compat | java-runtime, libjcommon-java,
- libjfreechart-java, libbackport-util-concurrent-java, statcvs (>= 1:0.7.0),
- subversion, java-wrappers (>= 0.1.16), ${misc:Depends},
- libsvnkit-java, libjdom1-java
+Depends: java-gcj-compat | java-runtime, ${java:Depends},
+ statcvs (>= 1:0.7.0), subversion, java-wrappers (>= 0.1.20),
+ ${misc:Depends}
Description: SVN repository statistics
StatSVN retrieves information from a Subversion repository and generates
various tables and charts describing the project evolution, e.g.
diff --git a/debian/patches/15-build-xml-build-jar-only.diff b/debian/patches/15-build-xml-build-jar-only.diff
index 2a55dd1..0ad37b2 100755
--- a/debian/patches/15-build-xml-build-jar-only.diff
+++ b/debian/patches/15-build-xml-build-jar-only.diff
@@ -6,8 +6,8 @@
@DPATCH@
Index: statsvn-0.7.0.dfsg/build.xml
===================================================================
---- statsvn-0.7.0.dfsg.orig/build.xml 2010-03-08 20:25:30.347534255 +0100
-+++ statsvn-0.7.0.dfsg/build.xml 2010-03-08 20:25:34.015528882 +0100
+--- statsvn-0.7.0.dfsg.orig/build.xml 2011-04-04 17:02:57.269898047 +0200
++++ statsvn-0.7.0.dfsg/build.xml 2011-04-04 17:04:41.013898105 +0200
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
@@ -16,17 +16,19 @@ Index: statsvn-0.7.0.dfsg/build.xml
<property file="project.properties" />
<property name="project" value="statsvn" />
-@@ -93,6 +93,13 @@
- </java>
+@@ -132,15 +132,6 @@
</target>
-+ <target name="jar" depends="compile,copyfiles">
-+ <!-- Creates an executable jar file for the project -->
-+ <mkdir dir="${dist}" />
-+ <jar jarfile="${dist}/${project.jar}" basedir="${build}" />
-+ </target>
-+
-+
- <target name="init.tests">
- <!-- Create the build directory structure used by compile.tests -->
- <mkdir dir="${build.tests}" />
+ <target name="dist" depends="compile,copyfiles">
+- <!-- Creates an executable jar file for the project -->
+- <unjar src="${lib}/${statcvs.jar}" dest="${build}" />
+- <!-- Expand and use the concurrent JAR -->
+- <unjar src="${lib}/${concurrent.jar}" dest="${build}" />
+-
+- <!-- Now included in statcvs.jar -->
+- <!--<unjar src="${lib}/${jfreechart.jar}" dest="${build}" />
+- <unjar src="${lib}/${jcommon.jar}" dest="${build}" />-->
+-
+ <mkdir dir="${dist}" />
+ <jar jarfile="${dist}/${project.jar}" basedir="${build}">
+ <manifest>
diff --git a/debian/rules b/debian/rules
index ae7aca0..3d85902 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,35 +1,24 @@
#!/usr/bin/make -f
# debian/rules for statsvn, based on the one from Batik (uses CDBS)
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-VERSION = $(shell dpkg-parsechangelog | egrep '^Version' | \
- sed -r 's/Version:\s*//' | sed -r 's/^[0-9]+://' | \
- sed -r 's/(\.dfsg)?-[0-9.]+//')
-
-# export JITC_PROCESSOR_TYPE=6
-
include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/javahelper.mk
include /usr/share/cdbs/1/class/ant.mk
-# include /usr/share/cdbs/1/rules/dpatch.mk
+
+VERSION=$(subst .dfsg,,$(DEB_UPSTREAM_VERSION))
JAVA_HOME_DIRS := /usr/lib/jvm/default-java
ANT_HOME := /usr/share/ant
DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar \
- junit jcommon jfreechart svnkit
+ junit jcommon jfreechart svnkit statcvs
DEB_ANT_COMPILER := modern
-# DEB_ANT_BUILD_TARGET := all-jar libs-jar ext-jar transcoder
DEB_BUILDDIR := .
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_CLEAN_TARGET := clean
+DEB_ANT_BUILD_TARGET := dist
print-version:
echo $(VERSION)
+ echo $(DEB_UPSTREAM_VERSION)
-install/statsvn::
- install -m 644 dist/statsvn.jar debian/statsvn/usr/share/java/statsvn-$(VERSION).jar
- ln -s statsvn-$(VERSION).jar debian/statsvn/usr/share/java/statsvn.jar
- install -m 755 -t debian/statsvn/usr/bin debian/wrappers/statsvn
-
-
+JH_INSTALLLIBS_ARGS = --upstream-version=$(VERSION)
diff --git a/debian/statsvn.classpath b/debian/statsvn.classpath
new file mode 100644
index 0000000..af765ad
--- /dev/null
+++ b/debian/statsvn.classpath
@@ -0,0 +1 @@
+dist/statsvn.jar /usr/share/java/backport-util-concurrent.jar /usr/share/java/statcvs.jar /usr/share/java/svnkit.jar
diff --git a/debian/statsvn.install b/debian/statsvn.install
new file mode 100644
index 0000000..0e39ba1
--- /dev/null
+++ b/debian/statsvn.install
@@ -0,0 +1 @@
+debian/wrappers/statsvn usr/bin
\ No newline at end of file
diff --git a/debian/statsvn.jlibs b/debian/statsvn.jlibs
new file mode 100644
index 0000000..f6577a1
--- /dev/null
+++ b/debian/statsvn.jlibs
@@ -0,0 +1 @@
+dist/statsvn.jar
\ No newline at end of file
diff --git a/debian/wrappers/statsvn b/debian/wrappers/statsvn
index 0d73154..933e43b 100755
--- a/debian/wrappers/statsvn
+++ b/debian/wrappers/statsvn
@@ -5,7 +5,6 @@
# We first look for sun's runtime, and then for all the rest
find_java_runtime sun || find_java_runtime
-find_jars jfreechart jcommon statcvs backport-util-concurrent statsvn \
- jdom1
+find_jar_classpath statsvn
run_java net.sf.statsvn.Main "$@"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/statsvn.git
More information about the pkg-java-commits
mailing list