aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-07-11 01:50:21 +0800
committerijliao <ijliao@FreeBSD.org>2002-07-11 01:50:21 +0800
commitd6d9645b6031f40e740c4da3dcfee22ec523c743 (patch)
tree64bb7537b31b1d7c1110e255cb571988cba0608e /devel
parent52336be03145d09d19341b5596814a65da0521bc (diff)
downloadfreebsd-ports-gnome-d6d9645b6031f40e740c4da3dcfee22ec523c743.tar.gz
freebsd-ports-gnome-d6d9645b6031f40e740c4da3dcfee22ec523c743.tar.zst
freebsd-ports-gnome-d6d9645b6031f40e740c4da3dcfee22ec523c743.zip
add showgrammar 1.1
Convert a yacc grammar to syntax diagrams
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/showgrammar/Makefile34
-rw-r--r--devel/showgrammar/distinfo1
-rw-r--r--devel/showgrammar/pkg-comment1
-rw-r--r--devel/showgrammar/pkg-descr3
-rw-r--r--devel/showgrammar/pkg-plist1
6 files changed, 41 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index e35bf5ca3eea..dbccbcc5d394 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -695,6 +695,7 @@
SUBDIR += sh-rtems-objc
SUBDIR += shapelib
SUBDIR += shmap
+ SUBDIR += showgrammar
SUBDIR += shtool
SUBDIR += silc-toolkit
SUBDIR += sip
diff --git a/devel/showgrammar/Makefile b/devel/showgrammar/Makefile
new file mode 100644
index 000000000000..c0203a67651e
--- /dev/null
+++ b/devel/showgrammar/Makefile
@@ -0,0 +1,34 @@
+# ex:ts=8
+# Ports collection makefile for: showgrammar
+# Date Created: Jul 11, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= showgrammar
+PORTVERSION= 1.1
+CATEGORIES= devel
+MASTER_SITES= http://se.wtb.tue.nl/~hat/showgrammar/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX= .py
+
+MAINTAINER= ports@FreeBSD.org
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/spark.py:${PORTSDIR}/devel/py-spark
+
+EXTRACT_CMD= ${CP}
+EXTRACT_BEFORE_ARGS=
+EXTRACT_AFTER_ARGS= ${WRKSRC}
+USE_REINPLACE= yes
+USE_PYTHON= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|#!/usr/bin/python|#!/usr/bin/env python|g" ${WRKSRC}/${DISTFILES}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${DISTFILES} ${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/devel/showgrammar/distinfo b/devel/showgrammar/distinfo
new file mode 100644
index 000000000000..0c185bdb99d2
--- /dev/null
+++ b/devel/showgrammar/distinfo
@@ -0,0 +1 @@
+MD5 (showgrammar.py) = a69e5668ab59de0ee55af1355a59955a
diff --git a/devel/showgrammar/pkg-comment b/devel/showgrammar/pkg-comment
new file mode 100644
index 000000000000..14969ec68213
--- /dev/null
+++ b/devel/showgrammar/pkg-comment
@@ -0,0 +1 @@
+Convert a yacc grammar to syntax diagrams
diff --git a/devel/showgrammar/pkg-descr b/devel/showgrammar/pkg-descr
new file mode 100644
index 000000000000..1899983e9a36
--- /dev/null
+++ b/devel/showgrammar/pkg-descr
@@ -0,0 +1,3 @@
+showgrammar is a Python script to convert a yacc grammar to syntax diagrams.
+
+WWW: http://se.wtb.tue.nl/~hat/showgrammar/
diff --git a/devel/showgrammar/pkg-plist b/devel/showgrammar/pkg-plist
new file mode 100644
index 000000000000..22f8e4fc0515
--- /dev/null
+++ b/devel/showgrammar/pkg-plist
@@ -0,0 +1 @@
+bin/showgrammar