[DRE-commits] [ruby-sdl] 03/07: Update document creation rules

Youhei SASAKI uwabami-guest at moszumanska.debian.org
Sat Apr 9 17:58:56 UTC 2016


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

uwabami-guest pushed a commit to branch master
in repository ruby-sdl.

commit f773c9cb5ae0d4308c4907d6b3d0d15ef35dce93
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Sun Apr 10 02:31:20 2016 +0900

    Update document creation rules
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 debian/patches/FixEncoding  | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series       |  1 +
 debian/ruby-sdl.doc-base.ja |  4 ++--
 debian/rules                |  9 +++++++++
 4 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/debian/patches/FixEncoding b/debian/patches/FixEncoding
new file mode 100644
index 0000000..2156d2c
--- /dev/null
+++ b/debian/patches/FixEncoding
@@ -0,0 +1,32 @@
+From: Debian Ruby Extras Maintainers
+ <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Date: Sun, 10 Apr 2016 02:41:35 +0900
+Subject: FixEncoding
+
+---
+ doc/Makefile | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- a/doc/Makefile
++++ b/doc/Makefile
+@@ -1,8 +1,8 @@
+ 
+-RSD = ruby rsd.rb
++RSD = ruby -Ke rsd.rb
+ RDFILES = general.rd init.rd video.rd opengl.rd wm.rd event.rd joystick.rd cdrom.rd mixer.rd time.rd font.rd collision.rd sdlskk.rd mpeg.rd
+-RD2 = rd2
+-RD2OPT = -r rd/rd2html-lib.rb --html-lang=ja --html-charset=EUC-JP
++RD2 = ruby -Ku /usr/bin/rd2
++RD2OPT = -r rd/rd2html-lib.rb --html-lang=ja --html-charset=UTF-8
+ 
+ 
+ rubysdl_ref.html: rubysdl_ref.rd
+@@ -12,7 +12,7 @@
+ 	cat $(RDFILES) > rubysdl_ref.rd
+ 
+ %.rd: %.rsd
+-	$(RSD) < $< > $@
++	$(RSD) < $< | nkf -Ew > $@
+ 
+ install: rubysdl_ref.html
+ 	cp rubysdl_ref.html rubysdl_ref.rd ..
diff --git a/debian/patches/series b/debian/patches/series
index 98b6eb2..5c8c3c4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+FixEncoding
 fix_shebang_sample.patch
diff --git a/debian/ruby-sdl.doc-base.ja b/debian/ruby-sdl.doc-base.ja
index b13d500..1681380 100644
--- a/debian/ruby-sdl.doc-base.ja
+++ b/debian/ruby-sdl.doc-base.ja
@@ -1,6 +1,6 @@
 Document: ruby-sdl-doc-ja
-Author: Ohbayashi Ippei 
-Title: Documentation for the Ruby SDL library (japanese)
+Author: Ohbayashi Ippei
+Title: Documentation for the Ruby SDL library (Japanese)
 Abstract: Comprehensive reference for the Ruby bindings for the SDL library, in
  Japanese.
 Section: Programming/Ruby
diff --git a/debian/rules b/debian/rules
index b2aa581..200989b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,5 +3,14 @@
 %:
 	dh $@ --with ruby --buildsystem ruby
 
+override_dh_auto_build:
+	( cd $(CURDIR)/doc    && $(MAKE) && $(MAKE) install )
+	( cd $(CURDIR)/doc-en && $(MAKE) && $(MAKE) install )
+
 override_dh_installchangelogs:
 	dh_installchangelogs --all --keep $(CURDIR)/NEWS.en
+
+override_dh_auto_clean:
+	dh_auto_clean
+	-@( cd $(CURDIR)/doc    && rm -f *.rd *.html )
+	-@( cd $(CURDIR)/doc-en && rm -f *.rd *.html )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sdl.git



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