[DRE-commits] [SCM] ruby-expression-parser.git branch, master, updated. upstream/0.9.0_git.20130314.1ceb36c-2-g3a48836

Per Andersson avtobiff at gmail.com
Tue Mar 19 13:21:30 UTC 2013


The following commit has been merged in the master branch:
commit 3a488363054e9567f0474071bfebba7fd88940dc
Author: Per Andersson <avtobiff at gmail.com>
Date:   Tue Mar 19 14:21:03 2013 +0100

    Ship documentation

diff --git a/debian/control b/debian/control
index b99ecd2..2e7f0e7 100644
--- a/debian/control
+++ b/debian/control
@@ -21,7 +21,24 @@ Depends:
  ${shlibs:Depends},
  ${misc:Depends},
  ruby | ruby-interpreter
+Suggests:
+ ruby-expression-parser-doc
 Description: mathematical expression parser for Ruby
  Implementation of a parser for mathematical expressions.
  .
  Inspired by http://lukaszwrobel.pl/blog/math-parser-part-3-implementation .
+
+Package: ruby-expression-parser-doc
+Section: doc
+Architecture: all
+Depends:
+ ${misc:Depends},
+ libjs-jquery
+Suggests:
+ ruby-expression-parser
+Description: mathematical expression parser for Ruby (documentation)
+ Implementation of a parser for mathematical expressions.
+ .
+ Inspired by http://lukaszwrobel.pl/blog/math-parser-part-3-implementation .
+ .
+ This package contains the documentation for ruby-expression-parser.
diff --git a/debian/ruby-expression-parser-doc.doc-base b/debian/ruby-expression-parser-doc.doc-base
new file mode 100644
index 0000000..a8a1099
--- /dev/null
+++ b/debian/ruby-expression-parser-doc.doc-base
@@ -0,0 +1,12 @@
+Document: ruby-expression-parser-doc
+Title: Debian ruby-expression-parser Manual
+Author: David Ricciardi
+Abstract: mathematical expression parser for Ruby
+ Implementation of a parser for mathematical expressions.
+ .
+ Inspired by http://lukaszwrobel.pl/blog/math-parser-part-3-implementation .
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/ruby-expression-parser-doc/html/index.html
+Files: /usr/share/doc/ruby-expression-parser-doc/html/*
diff --git a/debian/ruby-expression-parser-doc.install b/debian/ruby-expression-parser-doc.install
new file mode 100644
index 0000000..749fb8d
--- /dev/null
+++ b/debian/ruby-expression-parser-doc.install
@@ -0,0 +1 @@
+doc/*   usr/share/doc/ruby-expression-parser-doc/html/
diff --git a/debian/ruby-expression-parser-doc.links b/debian/ruby-expression-parser-doc.links
new file mode 100644
index 0000000..4b4c732
--- /dev/null
+++ b/debian/ruby-expression-parser-doc.links
@@ -0,0 +1 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/ruby-expression-parser-doc/html/js/jquery.js
diff --git a/debian/docs b/debian/ruby-expression-parser.docs
similarity index 100%
rename from debian/docs
rename to debian/ruby-expression-parser.docs
diff --git a/debian/rules b/debian/rules
index a5e7dc8..0576173 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,17 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf doc
+
+override_dh_auto_build:
+	dh_auto_build
+	# build documentation
+	rdoc lib
+
+override_dh_auto_install:
+	dh_auto_install
+	# remove bundled jquery.js
+	rm -f debian/ruby-expression-parser-doc/usr/share/doc/ruby-expression-parser-doc/html/js/jquery.js

-- 
ruby-expression-parser.git



More information about the Pkg-ruby-extras-commits mailing list