[SCM] swtchart packaging branch, master, updated. upstream/0.8.0-2-gbb35fff

Jakub Adam jakub.adam at ktknet.cz
Sun Apr 22 08:15:32 UTC 2012


The following commit has been merged in the master branch:
commit bb35fff802ecde82475923d75b55b45e90024920
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date:   Sun Apr 22 10:00:32 2012 +0200

    Build documentation

diff --git a/debian/build.xml b/debian/build.xml
index e8711e9..47f302c 100644
--- a/debian/build.xml
+++ b/debian/build.xml
@@ -15,7 +15,7 @@
         <delete file="org.swtchart/META-INF/MANIFEST.MF.OUT"/>
         <delete file="org.swtchart.jar"/>
     </target>
-    <target depends="init" name="build">
+    <target depends="init,doc" name="build">
         <javac debug="true" destdir="org.swtchart/bin">
             <src path="org.swtchart/src"/>
             <classpath>
@@ -30,4 +30,9 @@
             <fileset dir="org.swtchart/bin"/>
         </jar>
     </target>
+    <target name="doc">
+        <javadoc destdir="api">
+            <fileset dir="org.swtchart/src"/>
+        </javadoc>
+    </target>
 </project>
diff --git a/debian/control b/debian/control
index ea08ce8..dc0441d 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Package: libswtchart-java
 Architecture: all
 Depends: ${java:Depends},
          ${misc:Depends}
+Suggests: libswtchart-java-doc
 Description: Chart drawing SWT component
  SWTChart is a chart component which has following basic functionalities:
   * line chart
@@ -45,3 +46,11 @@ Description: Chart drawing SWT component
  SWTChart has minimum basic functionalities. SWTChart doesn't have any
  dependencies other than SWT, and even JFace is not required.
 
+Package: libswtchart-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Suggests: libswtchart-java
+Description: Chart drawing SWT component (documentation)
+ This package contains Javadoc API documentation for SWTChart.
+
diff --git a/debian/javadoc b/debian/javadoc
new file mode 100644
index 0000000..eedd89b
--- /dev/null
+++ b/debian/javadoc
@@ -0,0 +1 @@
+api
diff --git a/debian/rules b/debian/rules
index 05b6a42..d9772e3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,4 @@ JAVA_HOME=/usr/lib/jvm/default-java
 override_dh_auto_clean:
 	dh_auto_clean
 	rm -f build.xml
+	rm -rf api

-- 
swtchart packaging



More information about the pkg-java-commits mailing list