[DRE-commits] [SCM] ruby-nokogiri.git branch, master, updated. upstream/1.5.0-13-g009b732

Cédric Boutillier cedric.boutillier at gmail.com
Sat May 12 22:20:45 UTC 2012


The following commit has been merged in the master branch:
commit 2eae8057ac3a2b7a878fa405d2f5878640d64c3f
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Sun May 13 00:11:08 2012 +0200

    Provide a simple manpage for nokogiri binary

diff --git a/debian/nokogiri.1.pod b/debian/nokogiri.1.pod
new file mode 100644
index 0000000..e180ed8
--- /dev/null
+++ b/debian/nokogiri.1.pod
@@ -0,0 +1,44 @@
+=encoding UTF-8
+
+=head1 NAME
+
+nokogiri - an HTML, XML, SAX, and Reader parser
+
+=head1 DESCRIPTION
+
+Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri’s many features is the ability to search documents via XPath or CSS3 selectors.
+The B<nokogiri> command parses a document, and launches an interactive ruby session (B<irb>(1)), allowing one to analysing the result interactively.
+
+=head1 SYNOPSYS
+
+B<nokogiri> <I<uri>|I<path>> [I<options>]
+
+=head1 OPTIONS
+
+=over
+
+=item B<--type> [I<TYPE>]
+
+Set the type of the document to be parsed
+
+=item B<-E>, B<--encoding> I<encoding>
+
+Set the encoding of the document
+
+=item B<-?>, B<--help>
+
+Show a message very similar to this man page
+
+=item B<-v>, B<--version>
+
+Show the version of the program
+
+=back
+
+=head1 EXAMPLES
+
+nokogiri http://www.ruby-lang.org/
+
+nokogiri ./public/index.html
+
+
diff --git a/debian/ruby-nokogiri.manpages b/debian/ruby-nokogiri.manpages
new file mode 100644
index 0000000..87f2788
--- /dev/null
+++ b/debian/ruby-nokogiri.manpages
@@ -0,0 +1 @@
+man/nokogiri.1
diff --git a/debian/rules b/debian/rules
index a5e7dc8..a2fd8a3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,12 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_installman:
+	mkdir man
+	pod2man --center "" --release "" --name NOKOGIRI --utf8 debian/nokogiri.1.pod man/nokogiri.1
+	dh_installman
+
+override_dh_auto_clean:
+	rm -rf man/
+	dh_auto_clean

-- 
ruby-nokogiri.git



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