--- lgrind-3.67.orig/Makefile +++ lgrind-3.67/Makefile @@ -10,9 +10,8 @@ INSTALL=install SOURCES=lgrind.c lgutil.c regexp.c regexp.h lgrindef.c lgrindef.h retest.c v2lg.c -TEXFILES=lgrind.dtx lgrind.sty lgrind.ins -VERSION=3.66 +VERSION=3.67 DISTVERSION=lgrind-$(VERSION) .PHONY: all install clean distribution lgrind --- lgrind-3.67.orig/debian/README.Debian +++ lgrind-3.67/debian/README.Debian @@ -0,0 +1,22 @@ +lgrind for DEBIAN +---------------------- + +Comments regarding the Package + + The move towards any free licence is foiled by Van Jacobson not answering + to any mails. The software may not be sold. + +Michael Piefel Mon, 28 Jan 2002 10:54:18 +0100 + + The program has been moved to a BSD license by Mike (upstream author), + which means it can be put in main + +Peter "darkewolf" Crystal Wed Jun 16 21:17:34 WST 1999 + + This is not exactly the same build as the original source, + due to needing a directory structure that matches the + layout of Debian Linux. + +Peter Crystal (darkewolf) Sun, Sep 13 20:09:56 WST 1998 +800 + + --- lgrind-3.67.orig/debian/changelog +++ lgrind-3.67/debian/changelog @@ -0,0 +1,128 @@ +lgrind (3.67-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Update DH level to 9. (Closes: #800231) + * debian/changelog: fixed invalid timestamp formatting. (Closes: #798791) + * debian/compat: created. + * debian/control: + - Added the ${misc:Depends} variable to provide the right install + dependencies. + - Bumped Standards-Version to 3.9.6. + - Updated Recommends field to texlive-latex-base + instead of tetex-bin. (Closes: #601983) + * debian/rules: + - Fixed the path to install the files correctly. + - Replaced dh_installmanpages to dh_installman. + + -- Giovani Augusto Ferreira Sun, 03 Jan 2016 19:25:41 -0200 + +lgrind (3.67-3) unstable; urgency=low + + * depend on texlive instead of tetex (closes: #575637) + * include R definitions from Daniel Calvelo Aros (closes: #233787) + + -- Michael Piefel Sun, 11 Apr 2010 20:40:10 +0200 + +lgrind (3.67-2) unstable; urgency=low + + * adoption (closes: #174702) + * variable substitution now not only for prefix (closes: #191904) + + -- Michael Piefel Sat, 17 May 2003 16:47:53 +0200 + +lgrind (3.67-1) unstable; urgency=low + + * NMU + * New upstream version thanks to Neale Pickett (closes: #104341) + * Clarified licensing problems in README.Debian (closes: #123412) + * Cleaned up debian/rules thanks to Colin Watson (closes: #90767) + * Added doc-base support + + -- Michael Piefel Mon, 28 Jan 2002 11:16:34 +0100 + +lgrind (3.64-3.1) unstable; urgency=low + + * NMU + * Added the missing build dependency on tetex-bin. + (closes: #110427) + + -- Adrian Bunk Sat, 10 Nov 2001 15:22:18 +0100 + +lgrind (3.64-3) unstable; urgency=low + + * Added Build-Depends: to the control file + + -- Peter Crystal Mon, 16 Oct 2000 21:46:58 +0800 + +lgrind (3.64-2) unstable; urgency=low + + * Changed depends so does not depend on tetex-nonfree (Closes:Bug#69503) + * Changed depends so it has correct dependancy on libc6 (Closes:Bug#69509) + + -- Peter Crystal Mon, 21 Aug 2000 10:00:43 +0800 + +lgrind (3.64-1) unstable; urgency=low + + * New upstream source + * Python def'n patched in + * --version option + + -- Peter Crystal Mon, 20 Dec 1999 10:29:43 +0800 + +lgrind (3.62-1) unstable; urgency=low + + * New upstream version + * Added in Python defs (thanks to Jean-Francois Rit ) + * Patch sent upstream + * License is now BSD, moving to main + + -- Peter Crystal Wed, 8 Dec 1999 13:16:42 +0800 + +lgrind (3.60-3) unstable; urgency=low + + * Modified the build to match the new placing of LaTeX files + + -- Peter Crystal Wed, 23 Jun 1999 00:02:33 +0800 + +lgrind (3.60-2) unstable; urgency=low + + * Fixed up error in the copyright file + * Created a .orig and .diff file + + -- Peter Crystal Sat, 19 Jun 1999 09:30:07 +0800 + +lgrind (3.60-1) unstable; urgency=low + + * Revised code from the upstream maintainer + * New functionality added - variable substitution + * Moved to a 'free' license (BSD) + + -- Peter Crystal Wed, 16 Jun 1999 21:19:04 +0800 + + +lgrind (3.51-4) unstable; urgency=low + + * Peter Crystal finally has his maintainership. + * changed section to non-free/tex + + -- Peter Crystal Fri, 14 May 1999 23:16:53 +0800 + +lgrind (3.51-3) unstable; urgency=low + + * Fixed the control file (was Section: text, now Section: non-free/text) + + -- Stevie Strickland Wed, 21 Apr 1999 18:39:13 -0400 + +lgrind (3.51-2) unstable; urgency=low + + * Maintainter change, at least until Peter gets his maintainership + approved :) + + -- Stevie Strickland Tue, 13 Apr 1999 12:27:55 -0400 + +lgrind (3.51-1) unstable; urgency=low + + * :) + + -- Peter Crystal (darkewolf) Sun, 13 Sep 1998 20:10:28 +0800 + --- lgrind-3.67.orig/debian/compat +++ lgrind-3.67/debian/compat @@ -0,0 +1 @@ +9 --- lgrind-3.67.orig/debian/control +++ lgrind-3.67/debian/control @@ -0,0 +1,20 @@ +Source: lgrind +Section: non-free/tex +Priority: optional +Maintainer: Michael Piefel +Standards-Version: 3.9.6 +Build-Depends: debhelper (>=9), texlive + +Package: lgrind +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Recommends: texlive-latex-base +Description: A pretty printer for various programming languages + LGrind is a pretty printer for a large number of programming languages + using LaTeX. It is in the form of a separate preprocessor. + . + The licence is non-free, as it contains a no-sale clause. + You might consider using the listings package instead, which is free; + it also claims to be able to read the language definitions of LGrind. + LGrind's output tends to be prettier, though, especially if you prefer + non-monospaced fonts. --- lgrind-3.67.orig/debian/copyright +++ lgrind-3.67/debian/copyright @@ -0,0 +1,85 @@ +/* + * Copyright %%\copyright%% 1980 The Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + + +/* lgrind --- general purpose "pretty printer" for use with %%\LaTeX%%. + * A %%\LaTeX%% version of tgrind, which is a %%\TeX%% version + * of vgrind. Used to "grind nice program listings." + * + * Copyright %%\copyright%% 1985 by Van Jacobson, Lawrence Berkeley Laboratory + * This program may be freely used and copied but may not be sold + * without the author's written permission. This notice must remain + * in any copy or derivative. + * + * This program is an adaptation of "vfontedpr" v4.2 (12/11/84) from + * the 4.2bsd Unix distribution. Vfontedpr was written by Dave + * Presotto (based on an earlier program of the same name written by + * Bill Joy). + * + * I would welcome comments, enhancements, bug fixes, etc. Please + * mail them to: + * van@@lbl-rtsg.arpa (from arpanet, milnet, csnet, etc.) + * ..!ucbvax!lbl-csam!van (from Usenet/UUCP) + * + * + * Copyright %%\copyright%% 1995-98 by Michael Piefel, + * Humboldt-University at Berlin, piefel@@informatik.hu-berlin.de + * + * Derivatives of this program and the LGrind package (including, but not + * restricted to, the documentation) should only be produced after consulting + * the author. This is only for minimizing maintenance hassle, and not a + * licence issue in any way. + * + * Modifications. + * -------------- + * 10 Feb 85 Van Written. + * 29 Mar 85 Chris Torek (chris@@maryland): Bug fixes for %|~|% and + * %|^L|% output. Most cpu-time eaters recoded + * to improve efficiency. + * 30 Mar 85 Chris & Van Fixed %|\C|% & %|\S|% (comment & string start + * indicators to really appear at the start of + * comments & strings. Changes for speeded-up + * @expmatch()@. + * 8 Oct 87 JSL Modified so as to compile on VMS. %|-i|% option + * Jan 88 JSL %|-e|% option for embedded code. + * Sep 91 George V Reilly Reformated and cleaned up code, including + * naughtiness with @NULL@. Added %|@|%, + * %|%%|%, %|%$|%, and %%\tt \%|%% features. + * Also the %|%<|%, %|%!|%, and %|%#|% features. + * Oct 94 Matthias Eckermann (%|ud311aa@@sunmail.lrz-muenchen.de|%) + * fixed a little bug, added: Internal_Help, + * Sep 95 Michael Piefel Modified for %%\LaTeXe%% + * Feb 96 Michael Piefel Restructured into ANSI C + * May 99 Michael Piefel Made it Y2K compliant + * Oct 99 Michael Piefel Space runs make tabstops + */ --- lgrind-3.67.orig/debian/dirs +++ lgrind-3.67/debian/dirs @@ -0,0 +1,5 @@ +usr/bin +usr/share/man/man1 +usr/share/man/man5 +usr/share/texmf/tex/latex/lgrind +usr/share/doc/lgrind --- lgrind-3.67.orig/debian/docs +++ lgrind-3.67/debian/docs @@ -0,0 +1,4 @@ +README +FAQ +lgrind.dvi +example/ --- lgrind-3.67.orig/debian/lgrind.doc-base +++ lgrind-3.67/debian/lgrind.doc-base @@ -0,0 +1,11 @@ +Document: lgrind-doc +Title: The LGrind package +Author: Michael Piefel +Abstract: LGrind is a pretty printer + for a large number of programming languages using LaTeX. It is a preprocessor + which can also beautify stand-alone listings. +Section: Apps/Text + +Format: DVI +Files: /usr/share/doc/lgrind/lgrind.dvi.gz + --- lgrind-3.67.orig/debian/postinst +++ lgrind-3.67/debian/postinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 +TETEXDIR= +TEXMF= +TEXINPUTS= +TEXCONFIG=/usr/bin/texconfig +umask 022 + +if [ -e $TEXCONFIG ] +then + /usr/bin/texhash +fi +#DEBHELPER# --- lgrind-3.67.orig/debian/rules +++ lgrind-3.67/debian/rules @@ -0,0 +1,93 @@ +#!/usr/bin/make -f +# Made with the aid of dh_make, by Craig Small +# debian/rules that uses debhelper, based on example by Joey Hess. +# Some lines taken from debmake, by Cristoph Lameter. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + latex lgrind.ins + latex lgrind.dtx + latex lgrind.dtx + + cd source ; $(MAKE) DESTDIR=`pwd`/debian/lgrind \ + BASEDIR=`pwd`/debian/lgrind/usr \ + DESTDIR=`pwd`/debian/lgrind/usr/bin \ + DEFSFILE=/usr/share/texmf/tex/latex/lgrind/lgrindef \ + TEXINPUTS=`pwd`/debian/lgrind/usr/share/texmf/tex/latex/lgrind \ + DOCDIR=`pwd`/debian/lgrind/usr/share/doc/lgrind \ + MAN=`pwd`/debian/lgrind/usr/share/man \ + VERSION="3.67" + + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + $(MAKE) clean + + dh_clean + +install: install-stamp +install-stamp: + dh_testdir + dh_testroot + # dh_clean -k + dh_installdirs + + + + # Add here commands to install the files into debian/tmp + $(MAKE) install DESTDIR=`pwd`/debian/lgrind \ + BASEDIR=`pwd`/debian/lgrind/usr \ + DESTDIR=`pwd`/debian/lgrind/usr/bin \ + DEFSFILE=`pwd`/debian/lgrind/usr/share/texmf/tex/latex/lgrind/lgrindef \ + TEXINPUTS=`pwd`/debian/lgrind/usr/share/texmf/tex/latex/lgrind \ + DOCDIR=`pwd`/debian/lgrind/usr/share/doc/lgrind \ + MAN=`pwd`/debian/lgrind/usr/share/man + + + touch install-stamp + +# 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_clean -k + dh_installdirs + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installinit +# dh_installcron + dh_installman +# dh_undocumented + dh_installchangelogs +# dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol +# dh_makeshlibs + 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 --- lgrind-3.67.orig/lgrindef +++ lgrind-3.67/lgrindef @@ -430,6 +430,50 @@ :id=_-$#@./,%&?!^*+~`|;<>'\::\ :kw=defun if progn while:pl:px=\d\(defun:pb=^\d\(\p($|(\d\a$)): +# The R system for statistical computing, also called "GNU S" +# --dca 2004/02/19 +R:\ + :id=.\$:\ + :cb=#:\ + :ce=$:\ + :pb=(\d?"?\p"?\d?<-\d?)?function\d?\(:\ + :sb=":\ + :se=\e":\ + :kw=if else repeat while function for in next break\ + TRUE FALSE NULL NA Inf NaN:\ + :bb={:\ + :be=}: + +# A monstruously keyworded version of the above. May help browsing through +# code for beginners. Commonly found keywords are included. +# --dca 2004/02/19 +Rheavy:\ + :id=.\$:\ + :cb=#:\ + :ce=$:\ + :pb=(\d?"?\p"?\d?<-\d?)?function\d?\(:\ + :sb=":\ + :se=\e":\ + :kw=.C .Call .External .Fortran .Internal .Options .Primitive\ + FALSE NA TRUE abs ll any apply attr attributes\ + as.character as.double as.factor as.integer\ + as.list as.name as.string as.vector\ + attach break c cat cbind class colnames data data.frame\ + deparse detach dims dir else eval for format function\ + get getwd grep gsub if ifelse in\ + is.character is.factor is.function is.integer is.na is.nan is.null\ + lapply length levels library list list.files ls\ + match matrix max mean median min\ + missing mode names next\ + on.exit paste plot print prod quote range rep repeat require\ + restart return rm rownames\ + seq setwd show source\ + str stop stopifnot storage.mode sub substitute sum switch\ + tapply try typeof\ + warning which while:\ + :bb={:\ + :be=}: + SML/NJ:ML:\ :cb=\(\*:ce=\*\):\ :pb=fun:\ @@ -812,7 +856,8 @@ :f=f77:F=f77:for=f77:\ :l=lex:\ :k=kimwitu++:\ - :py=python: + :py=python:\ + :r=R:R=R: # character substitution table chartab:\ --- lgrind-3.67.orig/source/Makefile +++ lgrind-3.67/source/Makefile @@ -3,7 +3,7 @@ # $Id: Makefile,v 1.4 1999/12/18 21:54:29 mike Exp $ BINDIR=$(BASEDIR)/bin -MANDIR=$(BASEDIR)/man +MANDIR=$(BASEDIR)/share/man CC=gcc MANPAGES1=lgrind.1 --- lgrind-3.67.orig/source/lgutil.c +++ lgrind-3.67/source/lgutil.c @@ -304,6 +304,8 @@ /* * Replaces a variable by alternate representation + * in: ident - pointer to non-terminated string + * in: i - length of ident */ int substvarname(char **ident, int i) { @@ -311,7 +313,8 @@ while (substlistpos!=NULL) { - if (re_strncmp(*ident, substlistpos->var, i)==0) + if (re_strncmp(*ident, substlistpos->var, i)==0 && + i == strlen(substlistpos->var)) { *ident+=i; /* skip i characters in input */ printf("%s", substlistpos->subst);