diff options
author | roam <roam@FreeBSD.org> | 2001-09-12 21:40:51 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2001-09-12 21:40:51 +0800 |
commit | 50531a986a3f4a23bdabaff43b73fe13ebd26680 (patch) | |
tree | 722978fd906432517b6254bf9d3824c9837e9b25 /textproc | |
parent | 4ad1c63fcae58e95386179ed5f73da990e8c171a (diff) | |
download | freebsd-ports-graphics-50531a986a3f4a23bdabaff43b73fe13ebd26680.tar.gz freebsd-ports-graphics-50531a986a3f4a23bdabaff43b73fe13ebd26680.tar.zst freebsd-ports-graphics-50531a986a3f4a23bdabaff43b73fe13ebd26680.zip |
Add gpp 2.0 - a generic text pre-processor.
PR: 30410
Submitted by: Jos Backus <josb@cncdsl.com>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/gpp/Makefile | 29 | ||||
-rw-r--r-- | textproc/gpp/distinfo | 1 | ||||
-rw-r--r-- | textproc/gpp/files/patch-Makefile | 11 | ||||
-rw-r--r-- | textproc/gpp/files/patch-gpp.c | 10 | ||||
-rw-r--r-- | textproc/gpp/pkg-comment | 1 | ||||
-rw-r--r-- | textproc/gpp/pkg-descr | 12 | ||||
-rw-r--r-- | textproc/gpp/pkg-plist | 3 |
8 files changed, 68 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index c2588eced26..e37036a7096 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -47,6 +47,7 @@ SUBDIR += gdome2 SUBDIR += glimpse SUBDIR += gmat + SUBDIR += gpp SUBDIR += grap SUBDIR += gsed SUBDIR += gtk-doc diff --git a/textproc/gpp/Makefile b/textproc/gpp/Makefile new file mode 100644 index 00000000000..4e8df31f317 --- /dev/null +++ b/textproc/gpp/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: gpp +# Date created: 06 Sep 2001 +# Whom: Jos Backus <josb@cncdsl.com> +# +# $FreeBSD$ +# + +PORTNAME= gpp +PORTVERSION= 2.0 +CATEGORIES= textproc +MASTER_SITES= http://www.math.polytechnique.fr/cmat/auroux/prog/ +DISTNAME= ${PORTNAME} + +MAINTAINER= josb@cncdsl.com + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +MAN1= gpp.1 + +post-patch: + ${PERL} -pi -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/Makefile + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/gpp.html ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/textproc/gpp/distinfo b/textproc/gpp/distinfo new file mode 100644 index 00000000000..63086d04ddd --- /dev/null +++ b/textproc/gpp/distinfo @@ -0,0 +1 @@ +MD5 (gpp.tar.gz) = 84886479ecb78eac5f5fcfa06aa00a94 diff --git a/textproc/gpp/files/patch-Makefile b/textproc/gpp/files/patch-Makefile new file mode 100644 index 00000000000..294e45ed4f0 --- /dev/null +++ b/textproc/gpp/files/patch-Makefile @@ -0,0 +1,11 @@ +--- Makefile.orig Thu Sep 6 12:54:40 2001 ++++ Makefile Thu Sep 6 12:55:01 2001 +@@ -4,7 +4,7 @@ + all: gpp gpp.1 gpp.html + + gpp: gpp.c +- gcc -O2 -Wall gpp.c -o gpp ++ gcc $(CFLAGS) gpp.c -o gpp + + gpp.1: gpp gpphelp.pp + ./gpp -H -Dman gpphelp.pp -o gpp.1 diff --git a/textproc/gpp/files/patch-gpp.c b/textproc/gpp/files/patch-gpp.c new file mode 100644 index 00000000000..4eeb7ecb4d2 --- /dev/null +++ b/textproc/gpp/files/patch-gpp.c @@ -0,0 +1,10 @@ +--- gpp.c.orig Thu Sep 6 12:51:44 2001 ++++ gpp.c Thu Sep 6 12:52:57 2001 +@@ -40,7 +40,6 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +-#include <malloc.h> + + #define STACKDEPTH 50 + #define MAXARGS 100 diff --git a/textproc/gpp/pkg-comment b/textproc/gpp/pkg-comment new file mode 100644 index 00000000000..c4bd1a468a8 --- /dev/null +++ b/textproc/gpp/pkg-comment @@ -0,0 +1 @@ +The Generic Preprocessor diff --git a/textproc/gpp/pkg-descr b/textproc/gpp/pkg-descr new file mode 100644 index 00000000000..9e5d6465b47 --- /dev/null +++ b/textproc/gpp/pkg-descr @@ -0,0 +1,12 @@ +gpp is a general-purpose preprocessor with customizable syntax, suitable for a +wide range of preprocessing tasks. Its independence on any programming +language makes it much more versatile than cpp, while its syntax is lighter +and more flexible than that of m4. + +gpp is targeted at all common preprocessing tasks where cpp is not suitable +and where no very sophisticated features are needed. In order to be able to +process equally efficiently text files or source code in a variety of +languages, the syntax used by gpp is fully customizable. The handling of +comments and strings is especially advanced. + +WWW: http://www.math.polytechnique.fr/cmat/auroux/prog/gpp.html diff --git a/textproc/gpp/pkg-plist b/textproc/gpp/pkg-plist new file mode 100644 index 00000000000..55e759f21c2 --- /dev/null +++ b/textproc/gpp/pkg-plist @@ -0,0 +1,3 @@ +bin/gpp +%%PORTDOCS%%share/doc/gpp/gpp.html +%%PORTDOCS%%@dirrm share/doc/gpp |