[icu4j] 02/02: Build Javadoc

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Tue Mar 1 10:57:24 UTC 2016


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

seamlik-guest pushed a commit to branch master
in repository icu4j.

commit ca012d4736c1c57dfa3ed0bdc3a759db32401901
Author: Kai-Chung Yan <seamlikok at gmail.com>
Date:   Tue Mar 1 18:57:11 2016 +0800

    Build Javadoc
---
 debian/.gitignore                      |  1 +
 debian/changelog                       |  2 ++
 debian/control                         | 17 +++++++++++++++++
 debian/libicu4j-java-doc.javadoc       |  1 +
 debian/patches/javadoc_local_link.diff | 14 ++++++++++++++
 debian/patches/series                  |  1 +
 debian/rules                           | 11 +++++++++++
 7 files changed, 47 insertions(+)

diff --git a/debian/.gitignore b/debian/.gitignore
index 3590eae..215ee8b 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -1,3 +1,4 @@
+.javahelper_clean
 .mh/
 *.log
 *.substvars
diff --git a/debian/changelog b/debian/changelog
index 39001af..1ff7f2f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ icu4j (56.1-1) UNRELEASED; urgency=medium
   * Refresh patches
   * Switch from CDBS to DH sequences
   * Drop 01-java8-compatibility.patch
+  * New package: libicu4j-java-doc providing Javadoc
+  * New javadoc_local_link.diff: Patch javadoc to link against default-jdk-doc
 
  -- Kai-Chung Yan <seamlikok at gmail.com>  Mon, 29 Feb 2016 14:48:30 +0800
 
diff --git a/debian/control b/debian/control
index 68ed4a4..57c909b 100644
--- a/debian/control
+++ b/debian/control
@@ -9,6 +9,7 @@ Standards-Version: 3.9.7
 Build-Depends: ant (>= 1.7.0),
                debhelper (>= 9),
                default-jdk,
+               default-jdk-doc,
                javahelper,
                maven-repo-helper (>= 1.6~),
                unzip
@@ -27,3 +28,19 @@ Description: Library for Unicode support and internationalization
  for the most advanced Unicode/i18n support. ICU is widely portable and
  gives applications the same results on all platforms and between C/C++
  and Java software.
+
+Package: libicu4j-java-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: default-jdk-doc
+Description: Library for Unicode support and internationalization - Docs
+ ICU is a mature, widely used set of C/C++ and Java libraries for
+ Unicode support, software internationalization and globalization
+ (i18n/g11n). It grew out of the JDK 1.1 internationalization APIs, which
+ the ICU team contributed, and the project continues to be developed
+ for the most advanced Unicode/i18n support. ICU is widely portable and
+ gives applications the same results on all platforms and between C/C++
+ and Java software.
+ .
+ This package provides the documentations.
\ No newline at end of file
diff --git a/debian/libicu4j-java-doc.javadoc b/debian/libicu4j-java-doc.javadoc
new file mode 100644
index 0000000..e1e8d70
--- /dev/null
+++ b/debian/libicu4j-java-doc.javadoc
@@ -0,0 +1 @@
+doc   usr/share/doc/libicu4j-java/api
\ No newline at end of file
diff --git a/debian/patches/javadoc_local_link.diff b/debian/patches/javadoc_local_link.diff
new file mode 100644
index 0000000..4187497
--- /dev/null
+++ b/debian/patches/javadoc_local_link.diff
@@ -0,0 +1,14 @@
+Description: Link to local JDK API
+Author: Kai-Chung Yan <seamlikok at gmail.com>
+Last-Update: 2016-03-01
+--- a/build.xml
++++ b/build.xml
+@@ -53,7 +53,7 @@
+     <property name="icu4j.api.doc.title" value="ICU4J ${api.doc.version} API Specification"/>
+     <property name="icu4j.api.doc.window.title" value="ICU4J ${api.doc.version}"/>
+     <property name="icu4j.api.doc.header" value="ICU4J ${api.doc.version}"/>
+-    <property name="icu4j.api.doc.jdk.link" value="http://docs.oracle.com/javase/7/docs/api/"/>
++    <property name="icu4j.api.doc.jdk.link" value="file:///usr/share/doc/default-jdk/api"/>
+ 
+     <!-- directories -->
+     <property name="release.dir" value="release"/>
diff --git a/debian/patches/series b/debian/patches/series
index 7719313..d1d27cf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 #01-java8-compatibility.patch
+javadoc_local_link.diff
diff --git a/debian/rules b/debian/rules
index 79d86f9..f8428da 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,17 @@ UPSTREAM_TAR = icu4j-$(subst .,_,$(DEB_UPSTREAM_VERSION)).tgz
 %:
 	dh $@ --buildsystem=ant --with=maven-repo-helper
 
+override_dh_auto_build:
+	dh_auto_build -- jar docs
+
+override_dh_install:
+	dh_install
+	jh_installjavadoc
+
+override_dh_auto_clean:
+	dh_auto_clean
+	jh_clean
+
 get-orig-source: $(UPSTREAM_TAR)
 	mk-origtargz --repack --compression xz $<
 

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



More information about the pkg-java-commits mailing list