--- pgn2web-0.4.orig/cli.c +++ pgn2web-0.4/cli.c @@ -30,7 +30,7 @@ /* default installation path */ #ifndef INSTALL_PATH -#define INSTALL_PATH "/usr/local/pgn2web/" +#define INSTALL_PATH "/usr/share/pgn2web/" #endif char usage[] = "usage: pgn2web\n" --- pgn2web-0.4.orig/makefile +++ pgn2web-0.4/makefile @@ -38,10 +38,10 @@ rm -f pgn2web p2wgui *.o *.do *~ *# *.html install: - if [ ! -e /usr/local/pgn2web ]; then mkdir /usr/local/pgn2web; fi - cp -r images /usr/local/pgn2web/ - cp -r templates /usr/local/pgn2web/ - cp pgn2web /usr/local/pgn2web/ - cp p2wgui /usr/local/pgn2web/ - ln -fs /usr/local/pgn2web/pgn2web /usr/bin/ - ln -fs /usr/local/pgn2web/p2wgui /usr/bin/ \ No newline at end of file + if [ ! -e $(DESTDIR)/usr/share/pgn2web ]; then mkdir $(DESTDIR)/usr/share/pgn2web; fi + cp -r images $(DESTDIR)/usr/share/pgn2web/ + cp -r templates $(DESTDIR)/usr/share/pgn2web/ + cp pgn2web $(DESTDIR)/usr/bin/ + cp p2wgui $(DESTDIR)/usr/bin/ +# ln -fs /usr/share/pgn2web/pgn2web /usr/bin/ +# ln -fs /usr/share/pgn2web/p2wgui /usr/bin/ --- pgn2web-0.4.orig/gui.h +++ pgn2web-0.4/gui.h @@ -17,7 +17,7 @@ // default installation path (*nix) #ifndef INSTALL_PATH -#define INSTALL_PATH "/usr/local/pgn2web/" +#define INSTALL_PATH "/usr/share/pgn2web/" #endif //define event ids --- pgn2web-0.4.orig/debian/changelog +++ pgn2web-0.4/debian/changelog @@ -0,0 +1,5 @@ +pgn2web (0.4-1) unstable; urgency=low + + * Initial release (Closes: #565158) + + -- Oliver Korff Tue, 25 Aug 2009 12:45:11 +0200 --- pgn2web-0.4.orig/debian/manpages +++ pgn2web-0.4/debian/manpages @@ -0,0 +1 @@ +debian/pgn2web.1 --- pgn2web-0.4.orig/debian/rules +++ pgn2web-0.4/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --- pgn2web-0.4.orig/debian/control +++ pgn2web-0.4/debian/control @@ -0,0 +1,18 @@ +Source: pgn2web +Section: web +Priority: extra +Maintainer: Oliver Korff +Build-Depends: debhelper (>= 7), libwxgtk2.8-dev, wx2.8-headers, libwxbase2.8-dev +Standards-Version: 3.8.3 +Homepage: http://sourceforge.net/projects/pgn2web/ + +Package: pgn2web +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: convert PGN chess game files into webpages + conversion tool to generate webpages from chess "portable game notation" + PGN files. The webpages allow the replaying of chess games within a web + browser. It has a commandline client and a gtk graphical user interface + for convenience. The html output is highly customisable, it is using + javascript and the webpages are standards compliant and working with + all major browsers. --- pgn2web-0.4.orig/debian/links +++ pgn2web-0.4/debian/links @@ -0,0 +1 @@ +usr/share/man/man1/pgn2web.1 usr/share/man/man1/p2wgui.1 --- pgn2web-0.4.orig/debian/docs +++ pgn2web-0.4/debian/docs @@ -0,0 +1 @@ +README --- pgn2web-0.4.orig/debian/copyright +++ pgn2web-0.4/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by: + + Oliver Korff on Tue, 25 Aug 2009 12:45:11 +0200 + +It was downloaded from: + + http://pgn2web.sourceforge.net/downloads.html + +Upstream Author: + + William Hoggarth + +Copyright: + + Copyright (C) 2004, 2005 William Hoggarth + +License: + + This program 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 3 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 program. If not, see . + +On Debian systems, the complete text of the GNU General +Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. + +The Debian packaging is: + + Copyright (C) 2009 Oliver Korff + +and is licensed under the GPL version 3, see above. --- pgn2web-0.4.orig/debian/pgn2web.menu +++ pgn2web-0.4/debian/pgn2web.menu @@ -0,0 +1,2 @@ +?package(pgn2web):needs="X11" section="Applications/Web Development"\ + title="pgn2web" icon="/usr/share/pixmaps/pgn2web.xpm" command="/usr/bin/p2wgui" --- pgn2web-0.4.orig/debian/install +++ pgn2web-0.4/debian/install @@ -0,0 +1 @@ +pgn2web.xpm usr/share/pixmaps --- pgn2web-0.4.orig/debian/compat +++ pgn2web-0.4/debian/compat @@ -0,0 +1 @@ +7 --- pgn2web-0.4.orig/debian/pgn2web.1 +++ pgn2web-0.4/debian/pgn2web.1 @@ -0,0 +1,65 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PGN2WEB 1 "August 25, 2009" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +pgn2web \- program to convert PGN chess files to webpages +.SH SYNOPSIS +.B pgn2web +.RI [ options ] " pgn-file " " html-file " +.br +.B p2wgui -- graphical frontend to pgn2web +.RI +.SH DESCRIPTION +This manual page documents the +.B pgn2web +and +.B p2wgui +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBpgn2web\fP is a program to generate webpages from "portable game notation" + PGN files, that allow the replaying of chess games within a web + browser. It has a commandline client and a gtk graphical user interface + for convenience. The html output is highly customisable, it is using + javascript and is standards compliant to be working with all major + browsers. + +.SH OPTIONS +These programs do follow the usual GNU command line syntax, with short +options starting with one dash (`-'). +A summary of options is included below. +.TP +.B \-c yes|no +include a link to the pgn2web homepage. +.TP +.B \-p +use the pieceset. Available sets are: adventurer alfonso-x cases condal harlequin kingdom leipzig line lucena magnetic mark marroquin maya mediaeval merida motif +.TP +.B \-s frameset|linked|individual +use the specified layout. +.TP +Passing no parameters at all will simply launch the GUI version. +.SH SEE ALSO +.BR /usr/share/pgn2web/templates, +.br +.SH AUTHOR +pgn2web was written by William Hoggarth . +.PP +This manual page was written by Oliver Korff , +for the Debian project (and may be used by others). --- pgn2web-0.4.orig/debian/dirs +++ pgn2web-0.4/debian/dirs @@ -0,0 +1,3 @@ +usr/share/pixmaps +usr/bin +usr/share/pgn2web