[jtharness] 16/24: Replaced the jars with symlinks when possible in the -doc package

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Jun 18 15:54:46 UTC 2015


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

ebourg-guest pushed a commit to branch master
in repository jtharness.

commit bd01a02921541d1a89d7b6e182404d5eda6c70e7
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Sep 29 22:28:53 2014 +0000

    Replaced the jars with symlinks when possible in the -doc package
---
 debian/changelog |  1 +
 debian/control   |  3 +--
 debian/rules     | 11 +++++++++++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 517d2ca..f27714c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ jtharness (4.4.1-1) UNRELEASED; urgency=medium
   * New upstream relase
     - Refreshed the patches
   * No longer compress the examples in the -doc package
+  * Replaced the jars with symlinks when possible in the -doc package
   * debian/control:
     - Depend on libservlet3.1-java instead of libservlet3.0-java
     - Fixed the Vcs-Svn URL and added Vcs-Browser
diff --git a/debian/control b/debian/control
index 0eef3fa..c55f8ae 100644
--- a/debian/control
+++ b/debian/control
@@ -34,8 +34,7 @@ Description: General purpose test harness for Java
 Package: libjtharness-java-doc
 Section: doc
 Architecture: all
-Depends: ${java:Depends}, ${misc:Depends}
-Suggests: libjtharness-java
+Depends: ${java:Depends}, ${misc:Depends}, libjtharness-java, javahelp2
 Description: JT harness (documentation)
  This is the javadoc for the libjtharness-java package.
  .
diff --git a/debian/rules b/debian/rules
index 2151691..5d4b3cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,17 @@ JAVA_HOME = /usr/lib/jvm/default-java
 override_dh_auto_build:
 	ant -f build/build.xml
 
+	# Remove jh.jar and javatest.jar in the tutorial...
+	rm jar-build/binaries/examples/tutorial/demots/lib/jh.jar
+	rm jar-build/binaries/examples/tutorial/demots/lib/javatest.jar
+
+override_dh_auto_install:
+	dh_auto_install
+
+	# ...and replace them with links
+	dh_link -plibjtharness-java-doc /usr/share/java/jh.jar usr/share/doc/libjtharness-java/examples/tutorial/demots/lib/jh.jar
+	dh_link -plibjtharness-java-doc /usr/share/java/javatest.jar usr/share/doc/libjtharness-java/examples/tutorial/demots/lib/javatest.jar
+
 override_dh_compress:
 	dh_compress -X.java
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jtharness.git



More information about the pkg-java-commits mailing list