Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2014 19:49:57 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
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
Message-ID:  <201412181949.sBIJnvHX044918@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <henry.hu.sh@gmail.com>

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 <bsd.port.mk>

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 <stdlib.h>
+ #include <ctype.h>
+ #include <string.h>
+-#include <malloc.h>
++/*#include <malloc.h> */
+ #include <time.h>
+ /* One of the following two (depending on your system) */
+ #include <unistd.h>

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 <stdio.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <ctype.h>
+ #include <string.h>
+ #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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412181949.sBIJnvHX044918>