--- e2ps-4.34.orig/debian/Makefile +++ e2ps-4.34/debian/Makefile @@ -0,0 +1,62 @@ +# Makefile For e2ps + +# Directory to install e2ps +E2PS_INST_DIR = /usr/local/bin + +# Tab width +TABSTOP = 8 + +# space for top, bottom, left and right margin +TOP = 40.0 +BOTTOM = 40.0 +LEFT = 40.0 +RIGHT = 40.0 + +# Max lines per one page +MAXLINE = 66 + +# Default font size +FONTSIZE = 10.0 + +# Paper settings +DEFS = \ + -DTABSTOP=$(TABSTOP) -DMAXLINE=$(MAXLINE) \ + -DFONTSIZE=$(FONTSIZE) \ + -DTOP=$(TOP) -DBOTTOM=$(BOTTOM) -DLEFT=$(LEFT) -DRIGHT=$(RIGHT) \ + +# If you use a printer without EUC fonts +DEFNOEUC = -DJIS_PS + +# for Tektronix printers +# DEFTEKTRO = -DTEKTRO + +# For Y2K +# Y2K = 0 -> System time + 1900 = year +# Y2K = 1 -> System time = year +# Y2K = 2 -> System time + 2000 = year +DEFY2K = -DY2K=0 + +# Defines +DEFINES = $(DEFS) $(DEFNOEUC) $(DEFTEKTRO) $(DEFY2K) + + +# C and C args +CC = gcc +CC_ARGS = -Wall -O2 +CC_LIB = -lpaper + +SRC = ps-font.c jp-code.c +OBJ = ps-font.o jp-code.o + +all: e2ps + +clean: + rm -f *~ e2ps *.o + +install: + cp e2ps $(E2PS_INST_DIR) + @if [ -f $(E2PS_INST_DIR)/e2lpr ]; then rm $(E2PS_INST_DIR)/e2lpr; fi + ln -s $(E2PS_INST_DIR)/e2ps $(E2PS_INST_DIR)/e2lpr + +e2ps: $(OBJ) + $(CC) $(CC_ARGS) $(OBJ) -o e2ps e2ps.c $(CC_LIB) $(DEFINES) --- e2ps-4.34.orig/debian/README.Debian +++ e2ps-4.34/debian/README.Debian @@ -0,0 +1,11 @@ +e2ps for Debian +---------------------- + +Convert plain text into PostScript like a2ps. + +For Developer: + +- patch-deb is almost Debian specific. It fixes Makefile for .deb package +and modify e2ps.c for libpaper package. + + -- Atsuhito Kohda , Mon, 14 Jun 1999 14:24:06 +0900 --- e2ps-4.34.orig/debian/changelog +++ e2ps-4.34/debian/changelog @@ -0,0 +1,170 @@ +e2ps (4.34-4) unstable; urgency=low + + * Removed ghostview (and easypr) from Suggests field. (Closes: #289696) + + -- Atsuhito KOHDA Tue, 11 Jan 2005 08:17:05 +0900 + +e2ps (4.34-3) unstable; urgency=low + + * Modified multiline strings to single line strings. (Closes: #195148) + + -- Atsuhito KOHDA Thu, 29 May 2003 10:36:54 +0900 + +e2ps (4.34-2) unstable; urgency=low + + * Fixed libpaper support. (Closes: #182066) + + -- Atsuhito KOHDA Mon, 24 Feb 2003 12:49:37 +0900 + +e2ps (4.34-1) unstable; urgency=low + + * New Upstream Release. Now support Japanese in -head option and + seg fault problem without LANG was fixed by upstream author. + + -- Atsuhito KOHDA Wed, 21 Aug 2002 22:43:17 +0900 + +e2ps (4.33-1) unstable; urgency=low + + * New Upstream Release. + + -- Atsuhito KOHDA Thu, 15 Aug 2002 16:11:05 +0900 + +e2ps (4.30-2) unstable; urgency=low + + * Fixed seg fault problem when LANG is not set. Already forwarded to + the upstream. (closes: #138442) + + -- Atsuhito KOHDA Sat, 16 Mar 2002 17:15:13 +0900 + +e2ps (4.30-1) unstable; urgency=low + + * New Upstream Release. Now you can control font width/height with + -afw, -ahf, -kfw, -kfh options. + + -- Atsuhito KOHDA Thu, 7 Feb 2002 17:00:53 +0900 + +e2ps (4.29-1) unstable; urgency=low + + * New Upstream Release. + + -- Atsuhito KOHDA Mon, 7 Jan 2002 20:28:31 +0900 + +e2ps (4.28-2) unstable; urgency=low + + * Fixed architecture dependent 'char' problem, I hoped. + + -- Atsuhito KOHDA Sat, 5 Jan 2002 08:55:34 +0900 + +e2ps (4.28-1) unstable; urgency=low + + * New Upstream Release. + * The problem of -af option was fixed in this release so we did not + use patch-0 any more. + + -- Atsuhito KOHDA Mon, 29 Oct 2001 11:58:25 +0900 + +e2ps (4.27-1.1) unstable; urgency=low + + * New Upstream Release. + * Fixed e2ps.c (patch-0) because -af option did not work. Thanks for + Hideya YOSHIDA . Already forwarded + to upstream author. + * Supported building with debugging information through the environment + variable `DEB_BUILD_OPTIONS' + * Also rewrote rules a bit substantially. + * Updated Standards-Version: 3.5.1 + + -- Atsuhito KOHDA Tue, 9 Oct 2001 10:00:14 +0900 + +e2ps (4.25-3) unstable; urgency=low + + * Fixed wrong symbolic link for e2lpr (Thanks to KAWAFUJI Mitsuhiro + ). + + -- Atsuhito KOHDA Tue, 3 Jul 2001 12:25:42 +0900 + +e2ps (4.25-2) unstable; urgency=low + + * Official Debian Release. (closes: #84436) + * Standards-Version: 3.1.1, at least. + + -- Atsuhito KOHDA Fri, 2 Feb 2001 16:29:15 +0900 + +e2ps (4.25-1) unstable; urgency=low + + * New Upstream Release. + + -- Atsuhito Kohda Fri, 21 Jul 2000 08:28:57 +0900 + +e2ps (4.24-1) unstable; urgency=low + + * New Upstream Release. + + -- Atsuhito Kohda Tue, 11 Jul 2000 09:23:45 +0900 + +e2ps (4.0-1.6) frozen-jp unstable-jp; urgency=low + + * Fix segmentation fault when LANG is not set (thanks Mr. Nakahara + ). + + -- Atsuhito Kohda Thu, 16 Mar 2000 08:45:06 +0900 + +e2ps (4.0-1.5) unstable; urgency=low + + * Fix Y2K problem (thanks Mr. Tsuchiya ) + + -- Atsuhito Kohda Tue, 4 Jan 2000 11:56:34 +0900 + +e2ps (4.0-1.4) unstable; urgency=low + + * Since LANG might change near future, change e2ps.c accordingly. + + -- Atsuhito Kohda Fri, 24 Dec 1999 15:01:14 +0900 + +e2ps (4.0-1.3.2) unstable; urgency=low + + * Fix the manual e2ps.1 a bit + + -- Atsuhito Kohda Fri, 1 Oct 1999 13:36:41 +0900 + +e2ps (4.0-1.3.1) unstable; urgency=low + + * for Refine; reduce patch + * Move /usr/doc, /usr/man to /usr/share/doc, /usr/share/man as per the FHS. + + -- Atsuhito Kohda Tue, 13 Jul 1999 11:05:27 +0900 + +e2ps (4.0-1.3) unstable; urgency=low + + * Fix english messages a bit with the suggestions from Debian developers. + * Especially we change option from -nl to -ls !!! + * Adopt libpaper (but may be experimental yet). + * Add gv | ghostview | postscript-viewer to Suggests field. + + -- Atsuhito Kohda Mon, 12 Jul 1999 10:09:25 +0900 + +e2ps (4.0-1.2) unstable; urgency=low + + * Add "Recommends: lpr" in control for e2lpr. + * Fix changelog (this file!): add comment for symbolic link in (4.0-1.1) + * Fix manual page slightly. + + -- Atsuhito Kohda Tue, 29 Jun 1999 08:13:31 +0900 + +e2ps (4.0-1.1) unstable; urgency=low + + * Modify e2ps.c so that e2ps can show English or Japanese messages + appropriately according to the value of LANG. + * Fix wrong symbolic link for e2lpr. + + -- Atsuhito Kohda Wed, 23 Jun 1999 15:36:47 +0900 + +e2ps (4.0-1) unstable; urgency=low + + * Initial Release. + + -- Atsuhito Kohda Mon, 14 Jun 1999 14:24:06 +0900 + +Local variables: +mode: debian-changelog +End: --- e2ps-4.34.orig/debian/control +++ e2ps-4.34/debian/control @@ -0,0 +1,15 @@ +Source: e2ps +Section: text +Priority: optional +Maintainer: Atsuhito KOHDA +Build-Depends: debhelper (>=3.0.0), libpaper-dev +Standards-Version: 3.5.8 + +Package: e2ps +Architecture: any +Depends: ${shlibs:Depends} +Recommends: lpr +Suggests: gv | postscript-viewer +Description: Convert plain text into PostScript + Plain text into PostScript converter with automatically detection of EUC, + JIS and SJIS but may be weak with SJIS. --- e2ps-4.34.orig/debian/copyright +++ e2ps-4.34/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Atsuhito Kohda on +Mon, 14 Jun 1999 14:24:06 +0900. + +It was downloaded from http://www.ylw.mmtr.or.jp/~shiraki/ + +Upstream Author: Nobuyuki Shiraki + + +Copyright: + +GPL and see /usr/share/common-licenses/GPL for detail. --- e2ps-4.34.orig/debian/dirs +++ e2ps-4.34/debian/dirs @@ -0,0 +1 @@ +usr/bin --- e2ps-4.34.orig/debian/docs +++ e2ps-4.34/debian/docs @@ -0,0 +1 @@ +README.english README.euc --- e2ps-4.34.orig/debian/e2ps.1 +++ e2ps-4.34/debian/e2ps.1 @@ -0,0 +1,42 @@ +.TH E2PS 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +e2ps \- converts plain text into PostScript +.SH SYNOPSIS +.B e2ps +.I "[options] files ..." +.br +.B e2lpr +.I "[options] files ..." +.SH "DESCRIPTION" +This manual page documents briefly the +.BR e2ps , +and +.B e2lpr +commands. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B e2ps +is a program that converts plain text into PostScript. +It outputs to stdout and +.B e2lpr +outputs to printer. +.SH OPTIONS +There are many options for e2ps. Try e2ps -h +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.TP +.B \-fl +Show fonts list +.TP +.B \-lib +Show default settings +.SH AUTHOR +This manual page was written by Atsuhito Kohda , +for the Debian GNU/Linux system (but may be used by others). --- e2ps-4.34.orig/debian/note_for_maint +++ e2ps-4.34/debian/note_for_maint @@ -0,0 +1,9 @@ +Change for Debian JP -> Debian + +Maintainer: Atsuhito Kohda +to +Maintainer: Atsuhito KOHDA + +Suggests: easypr, tkdesk-ja, gv | ghostview | postscript-viewer +to +Suggests: easypr, gv | ghostview | postscript-viewer --- e2ps-4.34.orig/debian/patch-0 +++ e2ps-4.34/debian/patch-0 @@ -0,0 +1,50 @@ +--- ps-font.c.orig 2003-05-29 10:34:08.000000000 +0900 ++++ ps-font.c 2003-05-29 10:31:59.000000000 +0900 +@@ -11,46 +11,7 @@ + #include "e2ps.h" + + +-char *gsFonts = "Times-Roman +-Times-Italic +-Times-Bold +-Times-BoldItalic +-Helvetica +-Helvetica-Oblique +-Helvetica-Bold +-Helvetica-BoldOblique +-Courier +-Courier-Oblique +-Courier-Bold +-Courier-BoldOblique +-Symbol +-AvantGarde-Book +-AvantGarde_BookOblique +-AvantGarde_Demi +-AvantGarde_DemiOblique +-Bookman-Light +-Bookman-LightItalic +-Bookman-Demi +-Bookman-DemiItalic +-Helvetica-Narrow +-Helvetica-Narrow-Oblique +-Helvetica-Narrow-Bold +-Helvetica-Narrow-BoldObliqeu +-NewCenturySchlbl-Roman +-NewCenturySchlbl-Italic +-NewCenturySchlbl-Bold +-NewCenturySchlbl-BoldItalic +-Palatino-Roman +-Palatino-Italic +-Palatino-Bold +-Palatino-BoldItalic +-Zapfchancery-MediumItalic +-ZapfDingbats +-Ryumin-Light.Hiragana +-Ryumin-Light.Katakana +-Gothic-Meduim.Hiragana +-Gothic-Medium.Katakana +-"; ++char *gsFonts = "Times-Roman Times-Italic Times-Bold Times-BoldItalic Helvetica Helvetica-Oblique Helvetica-Bold Helvetica-BoldOblique Courier Courier-Oblique Courier-Bold Courier-BoldOblique Symbol AvantGarde-Book AvantGarde_BookOblique AvantGarde_Demi AvantGarde_DemiOblique Bookman-Light Bookman-LightItalic Bookman-Demi Bookman-DemiItalic Helvetica-Narrow Helvetica-Narrow-Oblique Helvetica-Narrow-Bold Helvetica-Narrow-BoldObliqeu NewCenturySchlbl-Roman NewCenturySchlbl-Italic NewCenturySchlbl-Bold NewCenturySchlbl-BoldItalic Palatino-Roman Palatino-Italic Palatino-Bold Palatino-BoldItalic Zapfchancery-MediumItalic ZapfDingbats Ryumin-Light.Hiragana Ryumin-Light.Katakana Gothic-Meduim.Hiragana Gothic-Medium.Katakana"; + + + /* Set PostScript Font Width */ --- e2ps-4.34.orig/debian/patch-deb +++ e2ps-4.34/debian/patch-deb @@ -0,0 +1,64 @@ +--- Makefile.orig Thu Feb 7 16:59:10 2002 ++++ Makefile Thu Feb 7 17:14:45 2002 +@@ -76,9 +76,9 @@ + + install: e2ps + cp e2ps $(E2PS_INST_DIR) +- @if [ -f $(E2PS_INST_DIR)/e2lpr ]; then rm $(E2PS_INST_DIR)/e2lpr; fi +- ln -s $(E2PS_INST_DIR)/e2ps $(E2PS_INST_DIR)/e2lpr ++# @if [ -f $(E2PS_INST_DIR)/e2lpr ]; then rm $(E2PS_INST_DIR)/e2lpr; fi ++# ln -s $(E2PS_INST_DIR)/e2ps $(E2PS_INST_DIR)/e2lpr + + e2ps: $(OBJ) +- $(CC) -o $@ $(OBJ) $(CFLAGS) +- $(STRIP) $@ ++ $(CC) -o $@ $(OBJ) $(CFLAGS) -lpaper ++# $(STRIP) $@ +--- e2ps.c.orig Thu Feb 7 16:59:11 2002 ++++ e2ps.c Thu Feb 7 17:10:42 2002 +@@ -11,7 +11,7 @@ + + #include "e2ps.h" + #include "wtkf.h" +- ++#include + + /* Global variables */ + uchar *gsCommand; /* own file name */ +@@ -67,6 +67,7 @@ + long lFileSize; + float fMaxWidth; + float ftmp; ++ const struct paper* paperinf; + #ifdef TEKTRO + uchar uCopy = 1; /* Number of paper */ + uchar uDup = 0; /* Both side */ +@@ -129,9 +130,26 @@ + gsBoldItalicKanjiFont = setstring(KANJI_BOLDITALIC); + } + giMaxLine = MAXLINE; +- strcpy(sPaper, "A4"); ++/* strcpy(sPaper, "A4"); + giWidth = A4WIDTH; +- giHeight = A4HEIGHT; ++ giHeight = A4HEIGHT; */ ++ /* libpaperg */ ++ if (systempapername() != 0){ ++ strcpy(sPaper,systempapername()); ++ if ((paperinf = paperinfo(sPaper)) == 0 && strcmp(sPaper, "a4") != 0 ++ && strcmp(sPaper, "b4") != 0 && strcmp(sPaper, "letter") != 0 ) { ++ fprintf(stderr, "%s: unknown paper name `%s'.\n", *argv, sPaper); ++ exit(2); ++ } else { ++ giWidth = paperpswidth(paperinf); ++ giHeight = paperpsheight(paperinf); ++ } ++ } ++ else { ++ strcpy(sPaper, "A4"); ++ giWidth = A4WIDTH; ++ giHeight = A4HEIGHT; ++ } + gfFontSize = FONTSIZE; + gfTopMargin = TOP; + gfBottomMargin = BOTTOM; --- e2ps-4.34.orig/debian/rules +++ e2ps-4.34/debian/rules @@ -0,0 +1,111 @@ +#!/usr/bin/make -f +#-*- makefile -*- +# Made with the aid of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Some lines taken from debmake, by Christoph Lameter. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +# Uncomment this to turn on debug mode. +#export DEB_BUILD_OPTIONS="debug nostrip" + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +DEBOP=CC_ARGS="-Wall -g" +else +DEBOP= +endif + +define patch-dflt + patch -NRp0 < debian/patch-deb || true + patch -p0 < debian/patch-deb + patch -NRp0 < debian/patch-0 || true + patch -p0 < debian/patch-0 +endef + +define clean-dflt + patch -NRp0 < debian/patch-0 || true + patch -NRp0 < debian/patch-deb || true +endef + +PACKAGE := $(shell dpkg-parsechangelog| \ + sed -n 's/^Source: \(.*\)$$/\1/p') +DSTDIR := $(CURDIR)/debian/$(PACKAGE) +BINDIR := $(DSTDIR)/usr/bin + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + $(patch-dflt) + # Add here commands to compile the package. + $(MAKE) E2PS_INST_DIR="/usr/bin" ${DEBOP} + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + $(clean-dflt) + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/$(pack). + $(MAKE) install E2PS_INST_DIR="$(BINDIR)" + cd $(BINDIR) ; ln -s e2ps e2lpr + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installinit +# dh_installcron + dh_installman debian/e2ps.1 + cd debian/$(PACKAGE)/usr/share/man/man1 ; ln -s e2ps.1 e2lpr.1 +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary