[DRE-commits] [SCM] ruby-http-parser.rb.git branch, master, updated. upstream/0.5.3-21-gb0f8f0b

Per Andersson avtobiff at gmail.com
Mon Jun 17 21:53:15 UTC 2013


The following commit has been merged in the master branch:
commit f8dddba1f207c15835c0d6b7a0abe2d1299925a5
Author: Per Andersson <avtobiff at gmail.com>
Date:   Mon Jun 17 02:01:45 2013 +0200

    Update Debian build
    
    Build docs.

diff --git a/debian/rules b/debian/rules
index e9eb33d..a922060 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,9 +11,31 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
+BINARY_PKG := ruby-http-parser.rb
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
-clean:
-	dh clean --buildsystem=ruby --with ruby
-	rm -rf ext/ruby_http_parser/ryah_http_parser.*
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf doc
+
+override_dh_auto_build:
+	dh_auto_build
+	# build documentation
+	rdoc --main=README.md lib
+	rm -f doc/js/jquery.js
+
+override_dh_auto_install:
+	# use utf-8 locale so test cases work
+	LC_ALL=C.UTF-8 dh_auto_install
+
+override_dh_install:
+	# install docs
+	dh_install --package=$(BINARY_PKG)-doc doc/* \
+			usr/share/doc/$(BINARY_PKG)-doc/html/
+
+override_dh_link:
+	# link to jquery.js
+	dh_link --package=$(BINARY_PKG)-doc usr/share/javascript/jquery/jquery.js \
+			usr/share/doc/$(BINARY_PKG)-doc/html/js/jquery.js

-- 
ruby-http-parser.rb.git



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