From owner-svn-ports-head@FreeBSD.ORG Thu Dec 18 19:50:00 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9BCE6765; Thu, 18 Dec 2014 19:50:00 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CCE016C3; Thu, 18 Dec 2014 19:50:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sBIJo08S044984; Thu, 18 Dec 2014 19:50:00 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sBIJnvHX044918; Thu, 18 Dec 2014 19:49:57 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201412181949.sBIJnvHX044918@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Thu, 18 Dec 2014 19:49:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374916 - in head/print: . lgrind lgrind/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2014 19:50:00 -0000 Author: pawel Date: Thu Dec 18 19:49:56 2014 New Revision: 374916 URL: https://svnweb.freebsd.org/changeset/ports/374916 QAT: https://qat.redports.org/buildarchive/r374916/ Log: - Revive print/lgrind, now distributed as one file - Add new mastersite, homepage, staging support - Clean pkg-plist PR: 195437 Submitted by: Henry Hu Added: head/print/lgrind/ head/print/lgrind/Makefile (contents, props changed) head/print/lgrind/distinfo (contents, props changed) head/print/lgrind/files/ head/print/lgrind/files/patch-Makefile (contents, props changed) head/print/lgrind/files/patch-lgutil_c (contents, props changed) head/print/lgrind/files/patch-source_Makefile (contents, props changed) head/print/lgrind/files/patch-source_lgrind.c (contents, props changed) head/print/lgrind/files/patch-source_regexp.c (contents, props changed) head/print/lgrind/pkg-descr (contents, props changed) head/print/lgrind/pkg-plist (contents, props changed) Modified: head/print/Makefile Modified: head/print/Makefile ============================================================================== --- head/print/Makefile Thu Dec 18 19:38:24 2014 (r374915) +++ head/print/Makefile Thu Dec 18 19:49:56 2014 (r374916) @@ -109,6 +109,7 @@ SUBDIR += latex-resume SUBDIR += latex2rtf SUBDIR += latexdiff + SUBDIR += lgrind SUBDIR += libgnomecups SUBDIR += libgnomeprint SUBDIR += libgnomeprint-reference Added: head/print/lgrind/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/Makefile Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,37 @@ +# Created by: Kay Lehmann +# $FreeBSD$ + +PORTNAME= lgrind +PORTVERSION= 3.67 +PORTREVISION= 8 +CATEGORIES= print +MASTER_SITES= http://mirrors.ctan.org/support/ +DISTNAME= ${PORTNAME} + +MAINTAINER= ports@FreeBSD.org +COMMENT= Produce beautiful listings of source code with LaTeX + +USE_TEX= latex texhash + +USES= zip + +RESTRICTED= According to the README-file there is a license issue \ + because of non-free code. Check the README file within \ + the source tarball. No response from author of some code \ + this port is based on. + +post-patch: +# PREFIX safeness + @${REINPLACE_CMD} -E \ + -e s'|^(BASEDIR).*$$|\1=${STAGEDIR}${PREFIX}|' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} -E \ + -e s'|%%PREFIX%%|${PREFIX}|' \ + ${WRKSRC}/Makefile +# C{C,FLAGS} safeness + @${REINPLACE_CMD} -E \ + -e s'|^(CC).*$$|\1=${CC}|' \ + -e s'|^(CFLAGS).*$$|\1=${CFLAGS}|' \ + ${WRKSRC}/source/Makefile + +.include Added: head/print/lgrind/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/distinfo Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,2 @@ +SHA256 (lgrind.zip) = f946615b77f790e8f43b857d268fa705b2f76a8d986e3f10025a5c2f67b11074 +SIZE (lgrind.zip) = 245984 Added: head/print/lgrind/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/files/patch-Makefile Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,25 @@ +--- Makefile.orig 2001-11-04 11:24:00.000000000 -0500 ++++ Makefile 2014-12-16 19:19:03.000000000 -0500 +@@ -4,9 +4,10 @@ + + BASEDIR=/usr + #DEFSFILE=${HOME}/Work/lgrind/lgrindef +-DEFSFILE=$(BASEDIR)/share/texmf/tex/latex/lgrind/lgrindef +-TEXFILEDIR=$(BASEDIR)/share/texmf/tex/latex/lgrind +-DOCDIR=$(BASEDIR)/doc/lgrind ++DEFSFILE=$(BASEDIR)/share/texmf-dist/tex/latex/lgrind/lgrindef ++DEFSFILE_REAL=%%PREFIX%%/share/texmf-dist/tex/latex/lgrind/lgrindef ++TEXFILEDIR=$(BASEDIR)/share/texmf-dist/tex/latex/lgrind ++DOCDIR=$(BASEDIR)/share/texmf-dist/doc/latex/lgrind + + INSTALL=install + SOURCES=lgrind.c lgutil.c regexp.c regexp.h lgrindef.c lgrindef.h retest.c v2lg.c +@@ -28,7 +29,7 @@ + + lgrind: + cd source; \ +- make DEFSFILE=$(DEFSFILE) BASEDIR=$(BASEDIR) INSTALL=$(INSTALL) VERSION=$(VERSION) ++ make DEFSFILE=$(DEFSFILE_REAL) BASEDIR=$(BASEDIR) INSTALL=$(INSTALL) VERSION=$(VERSION) + + clean: + rm -f lgrind.log Added: head/print/lgrind/files/patch-lgutil_c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/files/patch-lgutil_c Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,20 @@ +--- source/lgutil.c.orig 2001-11-04 11:24:00.000000000 -0500 ++++ source/lgutil.c 2014-11-26 20:33:37.000000000 -0500 +@@ -113,7 +113,7 @@ + check=0; + if (*config=='\n' || config[strlen(config)-2]!='\\') + check=1; +- if (fgets(config, BUFFERSIZE, tf)==NULL) break; ++ if (fgets(config, sizeof config, tf)==NULL) break; + if (check!=0) AddToLList(config, &currlch, &llch); + } while (strcmp((*currlch).name, "EndOfLanguageDefinitions")!=0); + rch=lch; +@@ -277,7 +277,7 @@ + char linebuf[201], *cp; + varsubst *varsubsts=NULL, *substitem, *substlistpos; + +- if (f==NULL) return; ++ if (f==NULL) return NULL; + while (!feof(f)) + { + fscanf(f, "%200[^\n]", linebuf); Added: head/print/lgrind/files/patch-source_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/files/patch-source_Makefile Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,12 @@ +--- source/Makefile.orig Sat Apr 20 15:18:16 2002 ++++ source/Makefile Sat Apr 20 15:21:27 2002 +@@ -33,7 +33,9 @@ + install: all + $(INSTALL) -s lgrind $(BINDIR)/lgrind + $(INSTALL) -m 644 $(MANPAGES1) $(MANDIR)/man1 ++ gzip $(MANDIR)/man1/$(MANPAGES1) + $(INSTALL) -m 644 $(MANPAGES5) $(MANDIR)/man5 ++ gzip $(MANDIR)/man5/$(MANPAGES5) + + clean: + rm -f $(OBJS) lgrind retest v2lg Added: head/print/lgrind/files/patch-source_lgrind.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/files/patch-source_lgrind.c Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,11 @@ +--- source/lgrind.c.orig Fri Mar 28 10:08:41 2003 ++++ source/lgrind.c Fri Mar 28 10:09:12 2003 +@@ -94,7 +94,7 @@ + #include + #include + #include +-#include ++/*#include */ + #include + /* One of the following two (depending on your system) */ + #include Added: head/print/lgrind/files/patch-source_regexp.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/files/patch-source_regexp.c Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,11 @@ +--- source/regexp.c.orig Fri Mar 28 10:09:46 2003 ++++ source/regexp.c Fri Mar 28 10:10:13 2003 +@@ -56,7 +56,7 @@ + + + #include +-#include ++#include + #include + #include + #include "regexp.h" Added: head/print/lgrind/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/pkg-descr Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,9 @@ +LGrind is a descendant of the Unix utility vgrind. It is +used to produce a beautified version of your source code using LaTeX. Unlike +other packages this is not pure TeX but an external preprocessor. You run e.g. + lgrind example.c > example.tex + latex example.tex +to get a complete listing. Options for producing includable files and pro- +cessing embedded listings in LaTeX texts are provided. + +WWW: http://www.ctan.org/pkg/lgrind Added: head/print/lgrind/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/lgrind/pkg-plist Thu Dec 18 19:49:56 2014 (r374916) @@ -0,0 +1,6 @@ +bin/lgrind +share/texmf-dist/doc/latex/lgrind/lgrind.dvi +share/texmf-dist/tex/latex/lgrind/lgrind.sty +share/texmf-dist/tex/latex/lgrind/lgrindef +man/man1/lgrind.1.gz +man/man5/lgrindef.5.gz