--- sgf2dg-4.026.orig/debian/watch +++ sgf2dg-4.026/debian/watch @@ -0,0 +1,23 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webpage +# +#http://www.example.com/downloads.php sgf2dg-(.*)\.tar\.gz +http://match.stanford.edu/bump/sgf2tex.html sgf2dg-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/sgf2dg-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/sgf2dg-(.*)\.tar\.gz debian uupdate + +# Uncomment to find new files on sourceforge, for debscripts >= 2.9 +# http://sf.net/sgf2dg/#PACKAGE#-(.*)\.tar\.gz + + --- sgf2dg-4.026.orig/debian/README.source +++ sgf2dg-4.026/debian/README.source @@ -0,0 +1,4 @@ +This package uses quilt to apply and remove its patches. Please refer to +/usr/share/doc/quilt/README.source for information about how to use quilt +for source packages. + --- sgf2dg-4.026.orig/debian/rules +++ sgf2dg-4.026/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses cdbs. Originaly written by Robert Millan. +# This file is public domain. + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/class/perlmodule.mk + +DEB_INSTALL_DOCS_ALL=debian/changelog-sgf2tex.Debian + +binary-post-install/sgf2dg:: + dh_installtex -p$(cdbs_curpkg) + +clean:: + $(RM) manual.log manual.dvi + $(RM) sgfsplit + --- sgf2dg-4.026.orig/debian/copyright +++ sgf2dg-4.026/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by Vincent Danjean on +Thu, 6 Apr 2006 18:26:51 +0200. + +It follows sgf2tex that was packaged by Petra Malik + +It was downloaded from http://match.stanford.edu/bump/sgf2tex.html + +Upstream Authors: Daniel Bump , + Reid Augustin + +Copyright 2005 Reid Augustin + 1997-2005 Daniel Bump +File romandg.mf is Copyright Donald E. Knuth +File mps2eps is Copyright 2003 Jon Edvardsson + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is licensed under the GPL, see above, and has +the following copyright: + +Copyright (C) 2006 Vincent Danjean --- sgf2dg-4.026.orig/debian/compat +++ sgf2dg-4.026/debian/compat @@ -0,0 +1 @@ +5 --- sgf2dg-4.026.orig/debian/changelog-sgf2tex.Debian +++ sgf2dg-4.026/debian/changelog-sgf2tex.Debian @@ -0,0 +1,32 @@ +sgf2tex (3.3-4) unstable; urgency=low + + * Fix handicap stone placement; thanks to Chad Miller. (Closes: #231735) + * Fix handling of escapes for ^ and ~ within text. + + -- Petra Malik Mon, 23 Feb 2004 21:45:53 +1300 + +sgf2tex (3.3-3) unstable; urgency=low + + * Fix double digits option; thanks to Jonathan H. N. Chin. (Closes: #228913) + * Mention Donald E. Knuth in the debian/copyright file. + * Minor changes to sgf2tex and manual.tex provided by upstream. + * Changed maintainer in debian/control to the new debian address. + + -- Petra Malik Sun, 1 Feb 2004 10:15:40 +1300 + +sgf2tex (3.3-2) unstable; urgency=low + + * Clean up debian/copyright file. + * Update to the last version of debian policy (standards-version 3.6.1). + + -- Petra Malik Wed, 17 Dec 2003 20:31:16 +1300 + +sgf2tex (3.3-1) unstable; urgency=low + + * Initial Release. (Closes: #181328) + * Adjusted the Makefile to fix $DESTDIR problems. + * Adjusted the install directories. + * Moved the texhash call from the Makefile to the postinst script. + + -- Petra Malik Sat, 8 Feb 2003 17:11:58 +1300 + --- sgf2dg-4.026.orig/debian/sgf2dg.dirs +++ sgf2dg-4.026/debian/sgf2dg.dirs @@ -0,0 +1,3 @@ +usr/share/texmf/fonts/source/public/GOOE +usr/share/texmf/fonts/tfm/public/GOOE +usr/share/texmf/tex/GOOE --- sgf2dg-4.026.orig/debian/README.Debian +++ sgf2dg-4.026/debian/README.Debian @@ -0,0 +1,14 @@ +Notes about the sgf2dg Debian package +===================================== + +sgf2dg is the successor of sgf2tex. The perl script that is the heart of +the program has been completely rewritten. There is now support for +several output format, and not only tex as before. So, Postscript, PDF +and Metapost, and sgf2mpost output are included. + +However, some of these output needs other Debian packages. PDF output +needs libpdf-create-perl and Postscript needs libpostscript-file-perl. + +These two packages are recommended by sgf2dg. So they can be +automatically installed is you use some package management programs such +as aptitude. --- sgf2dg-4.026.orig/debian/control +++ sgf2dg-4.026/debian/control @@ -0,0 +1,26 @@ +Source: sgf2dg +Section: tex +Priority: optional +Maintainer: Vincent Danjean +Homepage: http://match.stanford.edu/bump/sgf2tex.html +Build-Depends: cdbs, debhelper (>= 5.0.0), quilt, + tex-common (>= 1.11), texlive, texlive-generic-recommended, + libpdf-create-perl, libpostscript-file-perl, perl-tk +Standards-Version: 3.8.3 + +Package: sgf2dg +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} +Recommends: libpdf-create-perl, libpostscript-file-perl +Replaces: sgf2tex (<< 4.00) +Conflicts: sgf2tex (<< 4.00) +Description: Creates TeX files from Go game records + Go is a board game from Eastern Asia and TeX is a program for + typesetting. sgf2dg converts Go game records in smart-go format (SGF) + into TeX files. You can produce camera-ready copies for books or + magazines, or simply generate attractive printouts of your (internet) + Go games. + . + sgf2dg includes the Metafont sources for a new set of Go fonts, and a + script, sgf2dg (formerly sgf2tex), which translates files in sgf-format + into TeX. --- sgf2dg-4.026.orig/debian/changelog +++ sgf2dg-4.026/debian/changelog @@ -0,0 +1,82 @@ +sgf2dg (4.026-10) unstable; urgency=low + + * [debian/control] bump to Standards-Version 3.8.3 (no change required) + * Add missing build dependency to tex-common (Closes: #553575) + * Fix typo in manpages + * Add a README.source for quilt + * Cleanup source files + + -- Vincent Danjean Sun, 01 Nov 2009 10:18:16 +0100 + +sgf2dg (4.026-9) unstable; urgency=low + + * update patch to t/Dg2Tk.t to skip tests if DISPLAY is defined but null + (should fix FTBFS on some autobuilder) + * [debian/control] bump to Standards-Version 3.7.3 (no change required) + + -- Vincent Danjean Thu, 10 Jan 2008 07:59:47 +0100 + +sgf2dg (4.026-8) unstable; urgency=low + + * [debian/control] + + update build-depends + - remove tetex + - add libpdf-create-perl, libpostscript-file-perl, and + perl-tk for checks + + add Homepage: field (and remove this info from the Description) + * patch t/Dg2Tk.t to skip tests if no X display is defined (Closes: #450466) + + -- Vincent Danjean Wed, 07 Nov 2007 16:25:09 +0100 + +sgf2dg (4.026-7) unstable; urgency=low + + * [debian/control] + + update maintainer name + + rewrite build-depends (texlive transition) (Closes: #421090) + + etch is there: remove transitional package + + -- Vincent Danjean Thu, 26 Apr 2007 14:48:21 +0200 + +sgf2dg (4.026-6) unstable; urgency=low + + * [debian/control] transitional package sgf2tex should be arch:all + Thanks Niko Tyni (Closes: #385711) + + -- Vincent Danjean Tue, 5 Sep 2006 15:12:53 +0200 + +sgf2dg (4.026-5) unstable; urgency=low + + * [debian/copyright] add copyright for Debian packaging + + -- Vincent Danjean Wed, 17 May 2006 00:43:34 +0200 + +sgf2dg (4.026-4) unstable; urgency=low + + * [debian/compat] debhelper compat version dumped to 5 + * [debian/control] Standard-Version set to 3.7.2 (no changes required) + + -- Vincent Danjean Sun, 14 May 2006 21:30:04 +0200 + +sgf2dg (4.026-3) unstable; urgency=low + + * Initial release. (Closes: #361155: ITP: sgf2dg -- Creates TeX files + from Go game records) + * Takeover sgf2tex and creating a transitional package + New maintainer. (Closes: #360327: ITA: sgf2tex -- Creates TeX files + from Go game records - Debian Bug report logs) + (Closes: #323577: sgf2tex: new upstream release) + + -- Vincent Danjean Wed, 12 Apr 2006 11:19:52 +0200 + +sgf2dg (4.026-2) unstable; urgency=low + + * Add the manual in the documentation directory + + -- Vincent Danjean Fri, 7 Apr 2006 02:01:04 +0200 + +sgf2dg (4.026-1) unstable; urgency=low + + * Initial packaging + + -- Vincent Danjean Fri, 7 Apr 2006 01:05:15 +0200 + --- sgf2dg-4.026.orig/debian/sgf2dg.docs +++ sgf2dg-4.026/debian/sgf2dg.docs @@ -0,0 +1,3 @@ +README +manual.dvi +UPGRADE --- sgf2dg-4.026.orig/debian/patches/series +++ sgf2dg-4.026/debian/patches/series @@ -0,0 +1,4 @@ +MakeMaker.patch +texmf-paths.patch +manpages.patch +skip_tk_if_nox.patch --- sgf2dg-4.026.orig/debian/patches/skip_tk_if_nox.patch +++ sgf2dg-4.026/debian/patches/skip_tk_if_nox.patch @@ -0,0 +1,19 @@ +Do not run some tests if no X display is available +Index: sgf2dg-4.026/t/Dg2Tk.t +=================================================================== +--- sgf2dg-4.026.orig/t/Dg2Tk.t 2007-11-07 16:04:00.000000000 +0100 ++++ sgf2dg-4.026/t/Dg2Tk.t 2008-01-10 07:59:36.000000000 +0100 +@@ -18,6 +18,13 @@ + plan(skip_all => "Canvas not found: $@"); + } + ++if (! exists($ENV{'DISPLAY'})) { ++ plan(skip_all => "No X display (no DISPLAY environment variable)"); ++} ++ ++if ($ENV{'DISPLAY'} eq '') { ++ plan(skip_all => "No X display (DISPLAY environment variable is empty)"); ++} + + plan (tests => 6); + --- sgf2dg-4.026.orig/debian/patches/manpages.patch +++ sgf2dg-4.026/debian/patches/manpages.patch @@ -0,0 +1,262 @@ +Fix manpages (names and typos) +--- a/Dg2Ps.pm ++++ b/Dg2Ps.pm +@@ -120,6 +120,8 @@ + + A B Games::Go::Dg2Ps takes the following options: + ++=back ++ + =head2 General Dg2 Converter Options: + + =over 4 +@@ -197,31 +199,31 @@ + + =item 'Folio' + +-=item ’Half-Letter’ ++=item 'Half-Letter' + + =item 'Letter' + +-=item ’US-Letter’ ++=item 'US-Letter' + + =item 'Legal + +-=item ’US-Legal’ ++=item 'US-Legal' + + =item 'Tabloid' + +-=item ’SuperB’ ++=item 'SuperB' + + =item 'Ledger' + +-=item ’Comm #10 Envelope’ ++=item 'Comm #10 Envelope' + +-=item ’Envelope-Monarch’ ++=item 'Envelope-Monarch' + +-=item ’Envelope-DL’ ++=item 'Envelope-DL' + +-=item ’Envelope-C5’ ++=item 'Envelope-C5' + +-=item ’EuroPostcard’ ++=item 'EuroPostcard' + + =back + +@@ -321,8 +323,6 @@ + + Default: 0 + +-=back +- + =cut + + sub new { +@@ -1436,7 +1436,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -45,8 +45,8 @@ + #VERSION_FROM => 'sgf2dg', # where to get the package version number from + VERSION => 4.026, + EXE_FILES => ['sgf2dg', $dos ? 'sgfsplit.exe' : 'sgfsplit'], +- MAN1PODS => {sgf2dg => "\$(INST_MAN1DIR)/sgf2dg.1", +- 'sgfsplit.c' => "\$(INST_MAN1DIR)/sgfsplit.1",}, ++ MAN1PODS => {sgf2dg => "\$(INST_MAN1DIR)/sgf2dg.1p", ++ 'sgfsplit.c' => "\$(INST_MAN1DIR)/sgfsplit.1p",}, + ABSTRACT => "sgf2dg (replaces sgf2tex) converts Smart Go Format (SGF) files to Go diagrams - includes the GOOE TeX fonts", + ($] >= 5.005 ? ## Add these new keywords supported since 5.005 + (AUTHOR => 'Dan Bump , Reid Augustin ') : ()), +--- a/Dg2ASCII.pm ++++ b/Dg2ASCII.pm +@@ -112,6 +112,8 @@ + + A B Games::Go::Dg2ASCII takes the following options: + ++=back ++ + =head2 General Dg2 Converter Options: + + =over 4 +@@ -200,8 +202,6 @@ + reference to the B object and a list of lines that are + part of the ASCII diagram lines. + +-=back +- + =cut + + sub new { +@@ -726,7 +726,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/Dg2Mp.pm ++++ b/Dg2Mp.pm +@@ -187,6 +187,8 @@ + + A B Games::Go::Dg2Mp takes the following options: + ++=back ++ + =head2 General Dg2 Converter Options: + + =over 4 +@@ -294,8 +296,6 @@ + + Default: 8 + +-=back +- + =cut + + sub new { +@@ -988,7 +988,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/Dg2PDF.pm ++++ b/Dg2PDF.pm +@@ -233,6 +233,8 @@ + + A B Games::Go::Dg2PDF takes the following options: + ++=back ++ + =head2 General Dg2 Converter Options: + + =over 4 +@@ -403,8 +405,6 @@ + + Default: undef - determined from B + +-=back +- + =cut + + sub new { +@@ -1463,7 +1463,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/Dg2TeX.pm ++++ b/Dg2TeX.pm +@@ -142,6 +142,8 @@ + + A B Games::Go::D2TeX takes the following options: + ++=back ++ + =head2 General Dg2 Converter Options: + + =over 4 +@@ -308,6 +310,8 @@ + return($my); + } + ++=over 4 ++ + =item $dg2tex-EB (option =E value, ?...?) + + Change Dg2TeX options from values passed at B time. +@@ -950,7 +954,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/Dg2Tk.pm ++++ b/Dg2Tk.pm +@@ -116,6 +116,8 @@ + + A B Games::Go::Dg2Tk takes the following options: + ++=back ++ + =head2 General Dg2 Converter Options: + + =over 4 +@@ -167,8 +169,6 @@ + $y = chr($y - 1 + ord('a')); + return("$x$y"); }, # concatenate two letters + +-=back +- + =cut + + sub new { +@@ -954,7 +954,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/Dg2TkPs.pm ++++ b/Dg2TkPs.pm +@@ -209,7 +209,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/Diagram.pm ++++ b/Diagram.pm +@@ -1211,7 +1211,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item L(1) + +--- a/sgf2dg ++++ b/sgf2dg +@@ -1310,7 +1310,7 @@ + + =head1 SEE ALSO + +-=over 0 ++=over 4 + + =item o sgfsplit(1) - splits a .sgf file into its component variations + --- sgf2dg-4.026.orig/debian/patches/MakeMaker.patch +++ sgf2dg-4.026/debian/patches/MakeMaker.patch @@ -0,0 +1,28 @@ +Makefiles are patched with debian/*.patch files, not by the build system +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -53,8 +53,8 @@ + dist => { COMPRESS=>"gzip", SUFFIX=>"gz" }, + ); + +-editTexMakefile(); # edit Makefile in tex subdirectory +-editMakefile(); # make changes to Makefile just built by WriteMakefile() ++#editTexMakefile(); # edit Makefile in tex subdirectory ++#editMakefile(); # make changes to Makefile just built by WriteMakefile() + + + ######################################################### +@@ -72,6 +72,13 @@ + fonts : + cd tex; \${MAKE} fonts + ++.tex.dvi : ++ env TEXINPUTS=.:tex: TFMFONTS=.:tex: tex \$< ++ ++.SUFFIXES : .tex .dvi ++ ++install :: install_tex manual.dvi ++ + TEX_TARGET + } + --- sgf2dg-4.026.orig/debian/patches/texmf-paths.patch +++ sgf2dg-4.026/debian/patches/texmf-paths.patch @@ -0,0 +1,37 @@ +setup directories where tex files are installed +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -67,7 +67,12 @@ + sub MY::postamble { + return <<"TEX_TARGET"; + install_tex : +- cd tex; \${MAKE} install ++ cd tex; \${MAKE} install \\ ++ TEXMFBASE=\$(CURDIR)/debian/sgf2dg/usr/share/texmf \\ ++ MFDIR='\$\$(TEXMFBASE)/fonts/source/public/GOOE' \\ ++ TFMDIR='\$\$(TEXMFBASE)/fonts/tfm/public/GOOE' \\ ++ TEXINPUTS='\$\$(TEXMFBASE)/tex/GOOE' \\ ++ PKFONTS= + + fonts : + cd tex; \${MAKE} fonts +--- a/tex/Makefile ++++ b/tex/Makefile +@@ -79,13 +79,13 @@ + # (with the '-' in front so make doesn't choke if the command isn't there) + install: + rm -f $(PKFONTS) +- - mkdir $(MFDIR) ++ mkdir -p $(MFDIR) + $(INSTALL) *.mf $(MFDIR) +- - mkdir $(TFMDIR) ++ mkdir -p $(TFMDIR) + $(INSTALL) *.tfm $(TFMDIR) + $(INSTALL) gooemacs.tex gotcmacs.tex $(TEXINPUTS) +- - texhash +- - MakeTeXls-R ++# - texhash ++# - MakeTeXls-R + + # The preferred method of installation is just to copy the metafont sources + # and tfm files into appropriated directories in MakeTeXPK's search path. The