diff options
author | miwi <miwi@FreeBSD.org> | 2006-11-14 18:16:53 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-11-14 18:16:53 +0800 |
commit | a1212261688163aa83c128164634a77219cae697 (patch) | |
tree | ed51c981fe3b49b417c18d2dd42d21834f07aa35 /devel/afay | |
parent | 643a8b37d01ae7405364394aaadce00c2fcf4eb2 (diff) | |
download | freebsd-ports-gnome-a1212261688163aa83c128164634a77219cae697.tar.gz freebsd-ports-gnome-a1212261688163aa83c128164634a77219cae697.tar.zst freebsd-ports-gnome-a1212261688163aa83c128164634a77219cae697.zip |
A modified version of Aflex/Ayacc for Ada95 parent/child feature support. A new
directive "%unit A.B.C" is added, enabling the Ada unit A.B.C to be the parent
of the generated lexer/parser.
Aflex/Ayacc are copyrighted by the The University of California.
PR: ports/105356
Submitted by: John Merryweather Cooper <john_m_cooper@yahoo.com>
Diffstat (limited to 'devel/afay')
-rw-r--r-- | devel/afay/Makefile | 58 | ||||
-rw-r--r-- | devel/afay/distinfo | 3 | ||||
-rw-r--r-- | devel/afay/files/patch-afay_aflex_src_gnat_unix_tognat | 12 | ||||
-rw-r--r-- | devel/afay/files/patch-afay_ayacc_src_gnat_unix_tognat | 12 | ||||
-rw-r--r-- | devel/afay/pkg-descr | 5 | ||||
-rw-r--r-- | devel/afay/pkg-plist | 26 |
6 files changed, 116 insertions, 0 deletions
diff --git a/devel/afay/Makefile b/devel/afay/Makefile new file mode 100644 index 000000000000..5790cadbe92f --- /dev/null +++ b/devel/afay/Makefile @@ -0,0 +1,58 @@ +# Ports collection makefile for: afay +# Date created: 9 Nov 2006 +# Whom: John M. Cooper +# +# $FreeBSD$ +# + +PORTNAME= afay +PORTVERSION= 041111 +CATEGORIES= devel +MASTER_SITES= http://thiberlog.free.fr/src/ +DISTNAME= ${PORTNAME}_thiberlog_${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= john_m_cooper@yahoo.com +COMMENT= Improved aflex and ayacc Ada 95 native scanner and parser generators + +BUILD_DEPENDS= gnatmake:${PORTSDIR}/lang/gnat \ + bash:${PORTSDIR}/shells/bash + +MAN1= aflex.1 ayacc.1 + +NO_WRKSUBDIR= yes + +do-build: + @cd ${WRKSRC}/afay/aflex/src/gnat_unix && ${SH} ./README + @cd ${WRKSRC}/afay/ayacc/src/gnat_unix && ${SH} ./README + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/afay/aflex/src/aflex ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/afay/ayacc/src/ayacc ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/aflex.man ${DESTDIR}${PREFIX}/man/man1/aflex.1 + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/doc/old_docs/ayacc.manpage ${DESTDIR}${PREFIX}/man/man1/ayacc.1 +.if !defined(NOPORTDOCS) + ${MKDIR} ${DESTDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/READ_ME ${DESTDIR}${DOCSDIR}/READ_ME.aflex + ${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/aflex.html ${DESTDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/aflex_user_man.* ${DESTDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/doc/READ_ME ${DESTDIR}${DOCSDIR}/READ_ME.ayacc + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/doc/ayacc.html ${DESTDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/doc/ayacc_user_man.tex ${DESTDIR}${DOCSDIR} +.endif + ${MKDIR} ${DESTDIR}${EXAMPLESDIR} + ${MKDIR} ${DESTDIR}${EXAMPLESDIR}/ada_parser + ${MKDIR} ${DESTDIR}${EXAMPLESDIR}/calc + ${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/example.l ${DESTDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/test95.l ${DESTDIR}${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/afay/ayacc/examples/ada_parser/COMPILE ${DESTDIR}${EXAMPLESDIR}/ada_parser + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/examples/ada_parser/READ.ME ${DESTDIR}${EXAMPLESDIR}/ada_parser + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/examples/ada_parser/ada.y ${DESTDIR}${EXAMPLESDIR}/ada_parser + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/examples/ada_parser/ada_lex.l ${DESTDIR}${EXAMPLESDIR}/ada_parser + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/examples/ada_parser/driver.a ${DESTDIR}${EXAMPLESDIR}/ada_parser + ${INSTALL_SCRIPT} ${WRKSRC}/afay/ayacc/examples/calc/COMPILE ${DESTDIR}${EXAMPLESDIR}/calc + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/examples/calc/READ.ME ${DESTDIR}${EXAMPLESDIR}/calc + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/examples/calc/calc* ${DESTDIR}${EXAMPLESDIR}/calc + ${INSTALL_DATA} ${WRKSRC}/afay/ayacc/examples/calc/driver.a ${DESTDIR}${EXAMPLESDIR}/calc + +.include <bsd.port.mk> diff --git a/devel/afay/distinfo b/devel/afay/distinfo new file mode 100644 index 000000000000..0ef2670ac263 --- /dev/null +++ b/devel/afay/distinfo @@ -0,0 +1,3 @@ +MD5 (afay_thiberlog_041111.tgz) = dcb2caeaff49c84beb22a33a2e10f788 +SHA256 (afay_thiberlog_041111.tgz) = 05bcf5d83368f379caef43ecb2d7591f0ed2ec364e6ea431f36ad71df37ef522 +SIZE (afay_thiberlog_041111.tgz) = 700487 diff --git a/devel/afay/files/patch-afay_aflex_src_gnat_unix_tognat b/devel/afay/files/patch-afay_aflex_src_gnat_unix_tognat new file mode 100644 index 000000000000..fbb862ec1332 --- /dev/null +++ b/devel/afay/files/patch-afay_aflex_src_gnat_unix_tognat @@ -0,0 +1,12 @@ +--- afay/aflex/src/gnat_unix/tognat.old Thu Nov 9 19:18:25 2006 ++++ afay/aflex/src/gnat_unix/tognat Thu Nov 9 19:19:21 2006 +@@ -1,8 +1,7 @@ +-#!/bin/sh ++#!/usr/local/bin/bash + for I + in `ls *.a`; do + # ls -l $I; + echo "gnatchopping $I..."; + gnatchop -w $I + done +- diff --git a/devel/afay/files/patch-afay_ayacc_src_gnat_unix_tognat b/devel/afay/files/patch-afay_ayacc_src_gnat_unix_tognat new file mode 100644 index 000000000000..d3d46f0d0b19 --- /dev/null +++ b/devel/afay/files/patch-afay_ayacc_src_gnat_unix_tognat @@ -0,0 +1,12 @@ +--- afay/ayacc/src/gnat_unix/tognat.old Thu Nov 9 19:21:28 2006 ++++ afay/ayacc/src/gnat_unix/tognat Thu Nov 9 19:22:02 2006 +@@ -1,8 +1,7 @@ +-#!/bin/sh ++#!/usr/local/bin/bash + for I + in `ls *.a`; do + # ls -l $I; + echo "gnatchopping $I..."; + gnatchop -w $I + done +- diff --git a/devel/afay/pkg-descr b/devel/afay/pkg-descr new file mode 100644 index 000000000000..32040a20d5ca --- /dev/null +++ b/devel/afay/pkg-descr @@ -0,0 +1,5 @@ +A modified version of Aflex/Ayacc for Ada95 parent/child feature support. A new +directive "%unit A.B.C" is added, enabling the Ada unit A.B.C to be the parent +of the generated lexer/parser. + +Aflex/Ayacc are copyrighted by the The University of California. diff --git a/devel/afay/pkg-plist b/devel/afay/pkg-plist new file mode 100644 index 000000000000..f258e06d1a55 --- /dev/null +++ b/devel/afay/pkg-plist @@ -0,0 +1,26 @@ +bin/aflex +bin/ayacc +%%PORTDOCS%%%%DOCSDIR%%/READ_ME.aflex +%%PORTDOCS%%%%DOCSDIR%%/READ_ME.ayacc +%%PORTDOCS%%%%DOCSDIR%%/aflex.html +%%PORTDOCS%%%%DOCSDIR%%/aflex_user_man.bib +%%PORTDOCS%%%%DOCSDIR%%/aflex_user_man.tex +%%PORTDOCS%%%%DOCSDIR%%/ayacc.html +%%PORTDOCS%%%%DOCSDIR%%/ayacc_user_man.tex +%%EXAMPLESDIR%%/ada_parser/COMPILE +%%EXAMPLESDIR%%/ada_parser/READ.ME +%%EXAMPLESDIR%%/ada_parser/ada.y +%%EXAMPLESDIR%%/ada_parser/ada_lex.l +%%EXAMPLESDIR%%/ada_parser/driver.a +%%EXAMPLESDIR%%/calc/COMPILE +%%EXAMPLESDIR%%/calc/READ.ME +%%EXAMPLESDIR%%/calc/calc.input +%%EXAMPLESDIR%%/calc/calc.y +%%EXAMPLESDIR%%/calc/calc_lex.l +%%EXAMPLESDIR%%/calc/driver.a +%%EXAMPLESDIR%%/example.l +%%EXAMPLESDIR%%/test95.l +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%EXAMPLESDIR%%/ada_parser +@dirrm %%EXAMPLESDIR%%/calc +@dirrm %%EXAMPLESDIR%% |