--- rdtool-0.6.14.orig/rd/rdblockparser.ry +++ rdtool-0.6.14/rd/rdblockparser.ry @@ -239,7 +239,7 @@ end def parse(src, tree) - @src = src + @src = src.map{|i| i.sub(/^\t+/){|tabs| "\s" * 8 * tabs.size }} @src.push(false) # RDtree @tree = tree @@ -421,7 +421,6 @@ =end # always @current_indent = @indent_stack.join("") def if_current_indent_equal(indent) - indent = indent.sub(/\t/, "\s" * 8) if @current_indent == indent @i += 1 # next line yield --- rdtool-0.6.14.orig/rd2 +++ rdtool-0.6.14/rd2 @@ -1,4 +1,4 @@ -#! /usr/bin/env ruby +#! /usr/bin/env ruby1.8 =begin = NAME rd2 - converter from RD to other mark-up language. @@ -240,7 +240,7 @@ out = Kconv.kconv(out, Kconv::NAME2CONST[out_code], Kconv::AUTO) if out_code if output_file - filename = output_file + "." + $Visitor.type::OUTPUT_SUFFIX + filename = output_file + "." + $Visitor.class::OUTPUT_SUFFIX file = open(filename, "w") file.print(out) file.close --- rdtool-0.6.14.orig/rdtoolconf.rb +++ rdtool-0.6.14/rdtoolconf.rb @@ -1,15 +1,14 @@ #!/usr/local/bin/ruby # rdtoolconf.rb - create Makefile for rdtool. -# $Id: rdtoolconf.rb,v 1.23 2003/03/08 12:45:07 tosh Exp $ +# $Id: rdtoolconf.rb,v 1.24 2003/12/15 15:48:55 tosh Exp $ require 'mkmf' require 'rbconfig' -require 'amstd/rbparams' STDERR.print "creating Makefile\n" -$bindir = RubyParams::BINDIR -$siterubydir = RubyParams::SITE_RB +$bindir = CONFIG["bindir"] +$siterubydir = CONFIG["sitedir"] $rddir = CONFIG["datadir"] + "/ruby/rd" $racc = "racc" @@ -18,6 +17,8 @@ # # RDtool makefile +prefix = #{CONFIG["prefix"]} +exec_prefix = #{CONFIG["exec_prefix"]} BIN_DIR = #{$bindir} SITE_RUBY = #{$siterubydir} RD_DIR = #{$rddir} --- rdtool-0.6.14.orig/rmi2html.rb +++ rdtool-0.6.14/rmi2html.rb @@ -1,4 +1,4 @@ -#! /usr/bin/env ruby +#! /usr/bin/env ruby1.8 =begin = rmi2html.rb format from rmi(RD Method Index) file to HTML --- rdtool-0.6.14.orig/debian/librd-ruby1.8.files +++ rdtool-0.6.14/debian/librd-ruby1.8.files @@ -0,0 +1 @@ +/usr/lib/ruby --- rdtool-0.6.14.orig/debian/README.Debian +++ rdtool-0.6.14/debian/README.Debian @@ -0,0 +1,7 @@ +RDtool for Debian +---------------------- + +RD is Ruby's POD. RDtool is formatter for RD. On Debian, RDtool is split +into 3 packages as follows: rdtool, librd-ruby and rdtool-elisp. + + -- akira yamada , Fri, 14 Jan 2000 17:06:02 +0900 --- rdtool-0.6.14.orig/debian/control +++ rdtool-0.6.14/debian/control @@ -0,0 +1,63 @@ +Source: rdtool +Section: text +Priority: optional +Maintainer: akira yamada +Build-Depends-Indep: debhelper (>> 3), racc, ruby1.8, ruby1.8-dev, ruby1.6, ruby1.6-dev, libstrscan-ruby1.8 +Standards-Version: 3.5.9 + +Package: rdtool +Architecture: all +Depends: librd-ruby1.8 (= ${Source-Version}), ruby1.8 +Description: RD document formatter + RD is multipurpose documentation format created for documentating Ruby and + output of Ruby world. + . + You can embed RD into Ruby script. And RD have neat syntax which help you + to read document in Ruby script. On the other hand, RD have a feature for + class reference. + . + RDtool is one of frontends of formatter for RD. This package provides rd2 + command. + +Package: librd-ruby1.8 +Architecture: all +Depends: libruby1.8, libracc-runtime-ruby1.8, libstrscan-ruby1.8 +Conflicts: rdtool (<< 0.6.14-2) +Description: RDTool library for Ruby 1.8 + RD is multipurpose documentation format created for documentating Ruby and + output of Ruby world. + . + You can embed RD into Ruby script. And RD have neat syntax which help you + to read document in Ruby script. On the other hand, RD have a feature for + class reference. + . + This package contains a library for Ruby 1.8 which is used by RDTool. + +Package: librd-ruby1.6 +Architecture: all +Depends: libruby1.6, libracc-runtime-ruby1.6, libstrscan-ruby1.6 +Conflicts: rdtool (<< 0.6.14-2) +Description: RDTool library for Ruby 1.6 + RD is multipurpose documentation format created for documentating Ruby and + output of Ruby world. + . + You can embed RD into Ruby script. And RD have neat syntax which help you + to read document in Ruby script. On the other hand, RD have a feature for + class reference. + . + This package contains a library for Ruby 1.8 which is used by RDTool. + +Package: rdtool-elisp +Architecture: all +Depends: emacs21 | emacsen +Suggests: rdtool +Description: Emacs-lisp rd-mode for writing RD document + RD is multipurpose documentation format created for documentating Ruby and + output of Ruby world. + . + You can embed RD into Ruby script. And RD have neat syntax which help you + to read document in Ruby script. On the other hand, RD have a feature for + class reference. + . + This package provides Emacs major-mode for RD editing. + --- rdtool-0.6.14.orig/debian/changelog +++ rdtool-0.6.14/debian/changelog @@ -0,0 +1,192 @@ +rdtool (0.6.14-7) unstable; urgency=low + + * debian/control: improved package description. (closes: #209775, #210084) + + -- akira yamada Thu, 24 Jun 2004 19:35:23 +0900 + +rdtool (0.6.14-6) unstable; urgency=high + + * rdtool package did not contain /usr/bin/rd2 etc. (closes: #241685) + + -- akira yamada Fri, 2 Apr 2004 21:43:37 +0900 + +rdtool (0.6.14-5) unstable; urgency=low + + * new sub-package librd-ruby1.6, closes: #239517. + + -- akira yamada Tue, 23 Mar 2004 20:59:18 +0900 + +rdtool (0.6.14-4) unstable; urgency=low + + * rd2: suppress warnings. + * rdtoolconf.rb: does not require amstd. (applied upstream patch.) + * debian/control: removed libamstd-ruby1.8 from Build-Depends-Indep. + + -- akira yamada Tue, 16 Dec 2003 01:25:05 +0900 + +rdtool (0.6.14-3) unstable; urgency=high + + * Build-Depends on libstrscan-ruby1.8, closes: #214288. + + -- akira yamada Mon, 6 Oct 2003 18:35:54 +0900 + +rdtool (0.6.14-2) unstable; urgency=low + + * librd-ruby1.8 depends on libstrscan-ruby1.8, closes: #213328, #212528. + * moved /usr/lib/ruby/1.8/rd/* to librd-ruby1.8 from rdtool. + + -- akira yamada Thu, 2 Oct 2003 18:04:18 +0900 + +rdtool (0.6.14-1) unstable; urgency=low + + * new upstream version. + * backed /usr/bin/rmi2html.rb from /usr/bin/rmi2html. + * renamed to librd-ruby1.8 from librd-ruby. + * rdtool and librd-ruby1.8 depend on ruby1.8. + + -- akira yamada Sun, 7 Sep 2003 21:42:38 +0900 + +rdtool (0.6.13-1) unstable; urgency=low + + * new upstream version, closes: #195044. + * Standards-Version: 3.5.9 + + -- akira yamada Fri, 6 Jun 2003 20:52:22 +0900 + +rdtool (0.6.11-4) unstable; urgency=low + + * librd-ruby replaces rdtool (<< 0.6.11-3), closes: #161087. + + -- akira yamada Sun, 22 Sep 2002 13:14:54 +0900 + +rdtool (0.6.11-3) unstable; urgency=low + + * applied bug fix patch: + - ruby-ext#02080: missing + - ruby-list#35281: rd-mode.el - a bit fix + * new sub-package: librd-ruby. now, files in /usr/lib/ruby/1.6/rd is in + librd-ruby. and rdtool depends on librd-ruby. + * depends on libnkf-ruby instead of libnkf-ruby (>= 1.6.2-5). because + libnkf-ruby is merged into libruby at version 1.6.7-4 and libnkf-ruby is + provided by the version of libruby. + + -- akira yamada Wed, 12 Jun 2002 07:17:07 +0900 + +rdtool (0.6.11-2) unstable; urgency=low + + * added liboptparse-ruby to Build-Depends, closes: #142093. + + -- akira yamada Fri, 12 Apr 2002 11:02:18 +0900 + +rdtool (0.6.11-1) unstable; urgency=low + + * new upstream version. + + -- akira yamada Mon, 4 Feb 2002 17:48:55 +0900 + +rdtool (0.6.10-4) unstable; urgency=low + + * fixed bug in rd/rd2html-lib.rb (prepare_footnotes) + + -- akira yamada Tue, 2 Oct 2001 01:03:54 +0900 + +rdtool (0.6.10-3) unstable; urgency=low + + * fixed bug in rd/rdblockparser.ry (desclistitem) + + -- akira yamada Tue, 2 Oct 2001 00:36:21 +0900 + +rdtool (0.6.10-2) unstable; urgency=low + + * fixed bug in rd/rdvisitor.rb. + + -- akira yamada Thu, 28 Jun 2001 00:23:41 +0900 + +rdtool (0.6.10-1) unstable; urgency=low + + * upgraded to new upstream version. + + -- akira yamada Sun, 24 Jun 2001 12:14:55 +0900 + +rdtool (0.6.7-1) unstable; urgency=low + + * upgraded to new upstream version. + + -- akira yamada Wed, 31 Jan 2001 05:43:30 +0900 + +rdtool (0.6.6-2) unstable; urgency=low + + * rebuild with ruby_1.6.2-5. + + -- akira yamada Thu, 25 Jan 2001 16:29:58 +0900 + +rdtool (0.6.6-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Thu, 12 Oct 2000 09:00:36 +0900 + +rdtool (0.6.5-4) unstable; urgency=low + + * New package: rdtool-elisp. + + -- akira yamada Fri, 6 Oct 2000 08:59:26 +0900 + +rdtool (0.6.5-3) unstable; urgency=low + + * Applied patch(ruby-dev: 10864). + + -- akira yamada Fri, 8 Sep 2000 14:45:16 +0900 + +rdtool (0.6.5-2) unstable; urgency=low + + * Rebuild with ruby_1.6.0. + * Updated Standards-Version to 3.2.1. + * Added Build-Depends field into control file. + + -- akira yamada Fri, 1 Sep 2000 22:24:44 +0900 + +rdtool (0.6.5-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Mon, 26 Jun 2000 00:17:13 +0900 + +rdtool (0.6.4-1) unstable; urgency=low + + * Upgraded to new upstream version. + * debian/control: added Depends: libnkf-ruby. + + -- akira yamada Tue, 20 Jun 2000 10:14:59 +0900 + +rdtool (0.6.3-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Mon, 29 May 2000 13:46:01 +0900 + +rdtool (0.6.1-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Fri, 28 Apr 2000 14:11:37 +0900 + +rdtool (0.6.0-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Tue, 4 Apr 2000 14:50:23 +0900 + +rdtool (0.5.7-2) unstable; urgency=low + + * fixed bloken Depends feeld + + -- akira yamada Mon, 24 Jan 2000 10:15:24 +0900 + +rdtool (0.5.7-1) unstable; urgency=low + + * Initial Release. + + -- akira yamada Fri, 14 Jan 2000 17:06:02 +0900 + + --- rdtool-0.6.14.orig/debian/copyright +++ rdtool-0.6.14/debian/copyright @@ -0,0 +1,78 @@ +This package was debianized by akira yamada on +Fri, 14 Jan 2000 17:06:02 +0900. + +It was downloaded from + +Upstream Author: Toshiro Kuwabara + +Copyright: + +You can use/re-distribute/change RDtool under Ruby's License or GPL. +This distribute of RDtool include files which is copyrighted by somebody elses, +and these files can be re-distributed under those own license. These files +include the condition of those license in themselves. + +Ruby's License: + +Ruby is copyrighted free software by Yukihiro Matsumoto . +You can redistribute it and/or modify it under either the terms of the GPL +(see the file GPL), or the conditions below: + + 1. You may make and give away verbatim copies of the source form of the + software without restriction, provided that you duplicate all of the + original copyright notices and associated disclaimers. + + 2. You may modify your copy of the software in any way, provided that + you do at least ONE of the following: + + a) place your modifications in the Public Domain or otherwise + make them Freely Available, such as by posting said + modifications to Usenet or an equivalent medium, or by allowing + the author to include your modifications in the software. + + b) use the modified software only within your corporation or + organization. + + c) give non-standard binaries non-standard names, with + instructions on where to get the original software distribution. + + d) make other distribution arrangements with the author. + + 3. You may distribute the software in object code or binary form, + provided that you do at least ONE of the following: + + a) distribute the binaries and library files of the software, + together with instructions (in the manual page or equivalent) + on where to get the original distribution. + + b) accompany the distribution with the machine-readable source of + the software. + + c) give non-standard binaries non-standard names, with + instructions on where to get the original software distribution. + + d) make other distribution arrangements with the author. + + 4. You may modify and include the part of the software into any other + software (possibly commercial). But some files in the distribution + are not written by the author, so that they are not under these terms. + + For the list of those files and their copying conditions, see the + file LEGAL. + + 5. The scripts and library files supplied as input to or produced as + output from the software do not automatically fall under the + copyright of the software, but belong to whomever generated them, + and may be sold commercially, and may be aggregated with this + software. + + 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. + +GNU General Public License: + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- rdtool-0.6.14.orig/debian/rdtool.files +++ rdtool-0.6.14/debian/rdtool.files @@ -0,0 +1,2 @@ +usr/bin +usr/share/man --- rdtool-0.6.14.orig/debian/dirs +++ rdtool-0.6.14/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/lib/ruby --- rdtool-0.6.14.orig/debian/docs +++ rdtool-0.6.14/debian/docs @@ -0,0 +1,6 @@ +HISTORY +README.rd +README.rd.ja +README.html +doc/rd-draft.rd +doc/rd-draft.rd.ja --- rdtool-0.6.14.orig/debian/examples +++ rdtool-0.6.14/debian/examples @@ -0,0 +1 @@ +utils/rdswap.rb --- rdtool-0.6.14.orig/debian/rules +++ rdtool-0.6.14/debian/rules @@ -0,0 +1,120 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +pkg_name := rdtool +ruby := ruby1.8 +bindir := $(shell $(ruby) -r rbconfig -e 'print Config::CONFIG["bindir"]') +libdir := $(shell $(ruby) -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') +mandir := $(shell $(ruby) -r rbconfig -e 'print Config::CONFIG["mandir"]') + +ruby16 := ruby1.6 +libdir16 := $(shell $(ruby16) -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') + +el_name := rd-mode.el +el_base := $(CURDIR)/debian/$(pkg_name)-elisp +el_dir := $(el_base)/usr/share/emacs/site-lisp/$(pkg_name)-elisp + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(ruby) rdtoolconf.rb + $(MAKE) + + $(ruby) -I. rd2 -rrd/rd2man-lib -oRD2 rd2 + mv RD2.1 debian/rd2.1 + + $(ruby) -I. rd2 -rrd/rd2man-lib -oRMI2HTML debian/rmi2html.rb.rd + mv RMI2HTML.1 debian/rmi2html.rb.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + -rm -f debian/rd2.1 + -rm -f debian/rmi2html.rb.1 + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -d \ + $(CURDIR)/debian/tmp \ + $(CURDIR)/debian/tmp/usr/bin \ + $(CURDIR)/debian/tmp/usr/lib/ruby + + $(MAKE) install \ + BIN_DIR=$(CURDIR)/debian/tmp$(bindir) \ + SITE_RUBY=$(CURDIR)/debian/tmp$(libdir) + $(MAKE) install-rmi2html \ + BIN_DIR=$(CURDIR)/debian/tmp$(bindir) \ + SITE_RUBY=$(CURDIR)/debian/tmp$(libdir) + cd $(CURDIR)/debian/tmp$(bindir) && ln -s rmi2html.rb rmi2html + + install -d $(CURDIR)/debian/tmp$(mandir)/man1 + install -m644 debian/*.1 $(CURDIR)/debian/tmp$(mandir)/man1 + + dh_movefiles + + # begin: librd-ruby1.6 + install -d $(CURDIR)/debian/librd-ruby1.6$(libdir16) + (cd $(CURDIR)/debian/librd-ruby1.8$(libdir) && tar cf - .) | \ + (cd $(CURDIR)/debian/librd-ruby1.6$(libdir16) && tar xvf -) + # end: librd-ruby1.6 + + # rdtool-elisp + install -d $(el_dir) + + install -m444 utils/rd-mode.el $(el_dir) + +# Build architecture-independent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-indep: build install +# dh_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples +# dh_installmenu + dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron +# dh_installman -prdtool debian/rd2.1 debian/rmi2html.rb.1 +# dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- rdtool-0.6.14.orig/debian/rdtool-elisp.emacsen-install +++ rdtool-0.6.14/debian/rdtool-elisp.emacsen-install @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/rdtool-elisp + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=rdtool-elisp + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +FLAVORTEST=`echo $FLAVOR | cut -c-6` +if [ ${FLAVORTEST} = xemacs ] ; then + SITEFLAG="-no-site-file" +else + SITEFLAG="--no-site-file" +fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +#if test -x /usr/sbin/install-info-altdir; then +# echo install/${PACKAGE}: install Info links for ${FLAVOR} +# install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +#fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 --- rdtool-0.6.14.orig/debian/rdtool-elisp.emacsen-remove +++ rdtool-0.6.14/debian/rdtool-elisp.emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/rdtool-elisp + +FLAVOR=$1 +PACKAGE=rdtool-elisp + +if [ ${FLAVOR} != emacs ]; then +# if test -x /usr/sbin/install-info-altdir; then +# echo remove/${PACKAGE}: removing Info links for ${FLAVOR} +# install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/ruby.info.gz +# fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- rdtool-0.6.14.orig/debian/rdtool-elisp.emacsen-startup +++ rdtool-0.6.14/debian/rdtool-elisp.emacsen-startup @@ -0,0 +1,20 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian GNU/Linux ruby package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The ruby package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/rdtool-elisp") load-path)) + +(autoload 'rd-mode "rd-mode" "Major mode for RD editing" t) +(setq auto-mode-alist + (cons '("\\.rd$" . rd-mode) auto-mode-alist)) --- rdtool-0.6.14.orig/debian/rmi2html.rb.rd +++ rdtool-0.6.14/debian/rmi2html.rb.rd @@ -0,0 +1,12 @@ +=begin += NAME +rmi2html - converter from rmi(RD Method Index) to HTML += SYNOPSIS + rmi2html rmi-file [rmi-file ...] + += DESCRIPTION +Rmi2html formats from rmi(RD Method Index) file to HTML. + += SEE ALSO +rd2(1) +=end