summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2001-09-12 13:40:51 +0000
committerPeter Pentchev <roam@FreeBSD.org>2001-09-12 13:40:51 +0000
commit509ac898295ba8ab236ac48977d1914cadb5b8f5 (patch)
tree51045a3cad554bd65367828677ba9dd9560e9126 /textproc
parentFix BUILD_DEPENDS. (diff)
Add gpp 2.0 - a generic text pre-processor.
PR: 30410 Submitted by: Jos Backus <josb@cncdsl.com>
Notes
Notes: svn path=/head/; revision=47752
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/gpp/Makefile29
-rw-r--r--textproc/gpp/distinfo1
-rw-r--r--textproc/gpp/files/patch-Makefile11
-rw-r--r--textproc/gpp/files/patch-gpp.c10
-rw-r--r--textproc/gpp/pkg-comment1
-rw-r--r--textproc/gpp/pkg-descr12
-rw-r--r--textproc/gpp/pkg-plist3
8 files changed, 68 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index c2588eced265..e37036a70964 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 000000000000..4e8df31f3177
--- /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 000000000000..63086d04ddd8
--- /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 000000000000..294e45ed4f01
--- /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 000000000000..4eeb7ecb4d2a
--- /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 000000000000..c4bd1a468a82
--- /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 000000000000..9e5d6465b473
--- /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 000000000000..55e759f21c25
--- /dev/null
+++ b/textproc/gpp/pkg-plist
@@ -0,0 +1,3 @@
+bin/gpp
+%%PORTDOCS%%share/doc/gpp/gpp.html
+%%PORTDOCS%%@dirrm share/doc/gpp