summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2000-08-01 10:00:31 +0000
committernbm <nbm@FreeBSD.org>2000-08-01 10:00:31 +0000
commit112508c5f33863dc5b3cab7b573f1ffdb6f4304f (patch)
treeae147d263161000323bc37c88329aaa5b8b206ff /devel
parentfc35e8d76562a686cf8fa264e12d76e378b61131 (diff)
downloadFreeBSD-ports-112508c5f33863dc5b3cab7b573f1ffdb6f4304f.zip
FreeBSD-ports-112508c5f33863dc5b3cab7b573f1ffdb6f4304f.tar.gz
Add asis, the Ada Semantic Interface Specification.
PR: ports/19873 Submitted by: Thomas Quinot <quinot@inf.enst.fr>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/asis-gpl/Makefile46
-rw-r--r--devel/asis-gpl/distinfo1
-rw-r--r--devel/asis-gpl/files/Makefile.bsd22
-rw-r--r--devel/asis-gpl/files/patch-aa12
-rw-r--r--devel/asis-gpl/files/patch-ab27
-rw-r--r--devel/asis-gpl/pkg-comment1
-rw-r--r--devel/asis-gpl/pkg-descr8
-rw-r--r--devel/asis-gpl/pkg-plist312
-rw-r--r--devel/asis/Makefile46
-rw-r--r--devel/asis/distinfo1
-rw-r--r--devel/asis/files/Makefile.bsd22
-rw-r--r--devel/asis/files/patch-aa12
-rw-r--r--devel/asis/files/patch-ab27
-rw-r--r--devel/asis/pkg-comment1
-rw-r--r--devel/asis/pkg-descr8
-rw-r--r--devel/asis/pkg-plist312
17 files changed, 859 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 7a352fb..0a58f68 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -9,6 +9,7 @@
SUBDIR += SpecTcl
SUBDIR += a2dev
SUBDIR += amulet
+ SUBDIR += asis
SUBDIR += asl
SUBDIR += astyle
SUBDIR += autoconf
diff --git a/devel/asis-gpl/Makefile b/devel/asis-gpl/Makefile
new file mode 100644
index 0000000..65b76b4
--- /dev/null
+++ b/devel/asis-gpl/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: asis
+# Date created: 11 Jul 2000
+# Whom: Thomas Quinot <thomas@cuivre.fr.eu.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= asis
+PORTVERSION= 3.12p
+CATEGORIES= devel
+MASTER_SITES= \
+ ftp://ftp.lip6.fr/pub/gnat/asis/ \
+ ftp://cs.nyu.edu/pub/gnat/asis/
+DISTNAME= asis-${PORTVERSION}-src
+
+MAINTAINER= thomas@cuivre.fr.eu.org
+
+BUILD_DEPENDS= adagcc:${PORTSDIR}/lang/gnat
+
+USE_GMAKE= yes
+MAKEFILE= "${FILESDIR}/Makefile.bsd"
+MAKE_ARGS= GMAKE=${GMAKE} PORTVERSION=${PORTVERSION} \
+ LN=${LN}
+
+do-install:
+ @ ${MKDIR} ${PREFIX}/lib/asis || true
+ @ ${INSTALL_DATA} ${WRKSRC}/asis/*.ad? ${WRKSRC}/gnat/*.ad? ${WRKSRC}/obj/*.ali ${PREFIX}/lib/asis
+ @ ${INSTALL_DATA} ${WRKSRC}/obj/libasis.a ${PREFIX}/lib
+ @ ${INSTALL_DATA} ${WRKSRC}/libasis-${PORTVERSION}.so.1 ${PREFIX}/lib
+ @ ${LN} -sf ${PREFIX}/lib/libasis-${PORTVERSION}.so.1 ${PREFIX}/lib/libasis-${PORTVERSION}.so
+
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/asistant.prg ${PREFIX}/bin/asistant
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/display_source ${WRKSRC}/gnatelim ${WRKSRC}/gnatstub ${PREFIX}/bin
+
+post-install:
+ @ ${LDCONFIG} -m ${PREFIX}/lib
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/asis || true
+ @ ${INSTALL_DATA} ${WRKSRC}/documentation/* ${PREFIX}/share/doc/asis
+ @ ${INSTALL_DATA} ${WRKSRC}/asistant/asistant.ug ${PREFIX}/share/doc/asis/README.asistant
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/ds/README ${PREFIX}/share/doc/asis/README.ds
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/gnatelim/README ${PREFIX}/share/doc/asis/README.gnatelim
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/gnatstub/README ${PREFIX}/share/doc/asis/README.gnatstub
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/asis-gpl/distinfo b/devel/asis-gpl/distinfo
new file mode 100644
index 0000000..79e7608
--- /dev/null
+++ b/devel/asis-gpl/distinfo
@@ -0,0 +1 @@
+MD5 (asis-3.12p-src.tar.gz) = c5ab95b720c6ab6e923a6904b6d2e183
diff --git a/devel/asis-gpl/files/Makefile.bsd b/devel/asis-gpl/files/Makefile.bsd
new file mode 100644
index 0000000..0bd162f
--- /dev/null
+++ b/devel/asis-gpl/files/Makefile.bsd
@@ -0,0 +1,22 @@
+ASISPROGFLAGS=-I../../asis -I../../gnat -I../../obj -largs -L../.. -lasis-${PORTVERSION}
+
+all:
+ ${GMAKE} -C obj clean bld-objs CFLAGS="${CFLAGS} -fPIC" CC=adagcc RM="rm -f"
+ adagcc -shared -Wl,-soname,libasis-${PORTVERSION}.so.1 \
+ -o libasis-${PORTVERSION}.so.1 obj/*.o -lc
+ ${LN} -sf libasis-${PORTVERSION}.so.1 libasis-${PORTVERSION}.so
+ ${GMAKE} -C obj clean libasis.a CFLAGS="${CFLAGS}" CC=adagcc
+ chmod a-w obj/*.ali
+ cd asistant && \
+ gnatmake ${CFLAGS} -o ../asistant.prg asistant-driver -I../asis -I../gnat -I../obj -largs -L.. -lasis-${PORTVERSION}
+ cd examples/ds && \
+ gnatmake ${CFLAGS} -o ../../display_source display_source ${ASISPROGFLAGS}
+ cd examples/gnatelim && \
+ gnatmake ${CFLAGS} -o ../../gnatelim gnatelim-driver ${ASISPROGFLAGS}
+ cd examples/gnatstub && \
+ gnatmake ${CFLAGS} -o ../../gnatstub gnatstub-driver ${ASISPROGFLAGS}
+
+clean:
+ ${GMAKE} clean
+ rm -f asistant.prg display_source gnatelim gnatstub libasis*.so.*
+ rm -f libasis*.so
diff --git a/devel/asis-gpl/files/patch-aa b/devel/asis-gpl/files/patch-aa
new file mode 100644
index 0000000..55cc39c
--- /dev/null
+++ b/devel/asis-gpl/files/patch-aa
@@ -0,0 +1,12 @@
+#PATCHOPTIONS: -p0
+--- asis/a4g-gnat_int.ads.orig Wed Oct 27 15:06:50 1999
++++ asis/a4g-gnat_int.ads Wed Oct 27 15:06:57 1999
+@@ -67,7 +67,7 @@
+ -- Compiler Variables & Routines --
+ -----------------------------------
+
+- Gcc : constant String := "gcc";
++ Gcc : constant String := "adagcc";
+
+ Nul_Argument_List : constant Argument_List (1 .. 0) := (others => null);
+
diff --git a/devel/asis-gpl/files/patch-ab b/devel/asis-gpl/files/patch-ab
new file mode 100644
index 0000000..294bc08
--- /dev/null
+++ b/devel/asis-gpl/files/patch-ab
@@ -0,0 +1,27 @@
+#PATCHOPTIONS: -p0
+--- examples/ds/display_source.adb.dist Wed Sep 1 17:16:01 1999
++++ examples/ds/display_source.adb Fri May 26 19:02:05 2000
+@@ -311,7 +311,7 @@
+ Asis.Ada_Environments.Dissociate ( The_DS_Context );
+ Asis.Implementation.Finalize ("");
+
+- -- let's delete the *.at? and *.ali files
++ -- let's delete the *.adt and *.ali files
+ declare
+ To_Erase : String := Ada.Command_Line.Argument (Command_File) ;
+ File : File_Type ;
+@@ -320,12 +320,12 @@
+ To_Erase (To_Erase'Last - 3 .. To_Erase'Last - 1 ) = ".AD"
+ then
+ -- tree file
+- To_Erase ( To_Erase'Last - 1 ) := 't' ;
++ To_Erase ( To_Erase'Last ) := 't' ;
+ Open ( File , Out_File , To_Erase ) ;
+ Delete ( File ) ;
+
+ -- ali file
+- To_Erase (To_Erase'Last -2 .. To_Erase'Last) := "ali";
++ To_Erase (To_Erase'Last - 2 .. To_Erase'Last) := "ali";
+ Open ( File , Out_File , To_Erase ) ;
+ Delete ( File ) ;
+
diff --git a/devel/asis-gpl/pkg-comment b/devel/asis-gpl/pkg-comment
new file mode 100644
index 0000000..8f51f1b
--- /dev/null
+++ b/devel/asis-gpl/pkg-comment
@@ -0,0 +1 @@
+GNAT implementation of the Ada Semantic Interface Specification
diff --git a/devel/asis-gpl/pkg-descr b/devel/asis-gpl/pkg-descr
new file mode 100644
index 0000000..e000151
--- /dev/null
+++ b/devel/asis-gpl/pkg-descr
@@ -0,0 +1,8 @@
+ASIS is an ISO standard API for the extraction of syntactic
+and semantic information from an Ada compilation environment.
+This is the implementation of ASIS for GNAT, the GNU Ada compiler.
+
+WWW: http://www.gnat.com/
+
+--
+Thomas Quinot -- <thomas@cuivre.fr.eu.org>
diff --git a/devel/asis-gpl/pkg-plist b/devel/asis-gpl/pkg-plist
new file mode 100644
index 0000000..6792491
--- /dev/null
+++ b/devel/asis-gpl/pkg-plist
@@ -0,0 +1,312 @@
+bin/asistant
+bin/display_source
+bin/gnatelim
+bin/gnatstub
+lib/asis/a4g-a_alloc.ads
+lib/asis/a4g-a_debug.adb
+lib/asis/a4g-a_debug.ads
+lib/asis/a4g-a_elists.adb
+lib/asis/a4g-a_elists.ads
+lib/asis/a4g-a_opt.adb
+lib/asis/a4g-a_opt.ads
+lib/asis/a4g-a_osint.adb
+lib/asis/a4g-a_osint.ads
+lib/asis/a4g-a_output.adb
+lib/asis/a4g-a_output.ads
+lib/asis/a4g-a_sem.adb
+lib/asis/a4g-a_sem.ads
+lib/asis/a4g-a_sinput.adb
+lib/asis/a4g-a_sinput.ads
+lib/asis/a4g-a_types.adb
+lib/asis/a4g-a_types.ads
+lib/asis/a4g-c_u_info.adb
+lib/asis/a4g-c_u_info.ads
+lib/asis/a4g-contt-dp.adb
+lib/asis/a4g-contt-dp.ads
+lib/asis/a4g-contt-sd.adb
+lib/asis/a4g-contt-sd.ads
+lib/asis/a4g-contt-tt.adb
+lib/asis/a4g-contt-tt.ads
+lib/asis/a4g-contt-ut.adb
+lib/asis/a4g-contt-ut.ads
+lib/asis/a4g-contt.adb
+lib/asis/a4g-contt.ads
+lib/asis/a4g-cu_info1.adb
+lib/asis/a4g-cu_info1.ads
+lib/asis/a4g-cu_info2.adb
+lib/asis/a4g-cu_info2.ads
+lib/asis/a4g-dda_aux.adb
+lib/asis/a4g-dda_aux.ads
+lib/asis/a4g-decl_sem.adb
+lib/asis/a4g-decl_sem.ads
+lib/asis/a4g-encl_el.adb
+lib/asis/a4g-defaults.adb
+lib/asis/a4g-defaults.ads
+lib/asis/a4g-encl_el.ads
+lib/asis/a4g-encl_el_old.adb
+lib/asis/a4g-encl_el_old.ads
+lib/asis/a4g-expr_sem.adb
+lib/asis/a4g-expr_sem.ads
+lib/asis/a4g-get_unit.adb
+lib/asis/a4g-get_unit.ads
+lib/asis/a4g-gnat_int.adb
+lib/asis/a4g-gnat_int.ads
+lib/asis/a4g-int_knds.ads
+lib/asis/a4g-itests.adb
+lib/asis/a4g-itests.ads
+lib/asis/a4g-knd_conv.adb
+lib/asis/a4g-knd_conv.ads
+lib/asis/a4g-mapping.adb
+lib/asis/a4g-mapping.ads
+lib/asis/a4g-nencl_el.adb
+lib/asis/a4g-nencl_el.ads
+lib/asis/a4g-norm.adb
+lib/asis/a4g-norm.ads
+lib/asis/a4g-queries.adb
+lib/asis/a4g-queries.ads
+lib/asis/a4g-s_u_info.adb
+lib/asis/a4g-s_u_info.ads
+lib/asis/a4g-skip_tb.adb
+lib/asis/a4g-skip_tb.ads
+lib/asis/a4g-span_beginning.adb
+lib/asis/a4g-span_beginning.ads
+lib/asis/a4g-span_end.adb
+lib/asis/a4g-span_end.ads
+lib/asis/a4g-tree_rec.ads
+lib/asis/a4g-u_conv.adb
+lib/asis/a4g-u_conv.ads
+lib/asis/a4g-ulists.ads
+lib/asis/a4g-unit_rec.ads
+lib/asis/a4g-vcheck.adb
+lib/asis/a4g-vcheck.ads
+lib/asis/a4g.ads
+lib/asis/asis-ada_environments-containers.adb
+lib/asis/asis-ada_environments-containers.ads
+lib/asis/asis-ada_environments.adb
+lib/asis/asis-ada_environments.ads
+lib/asis/asis-clauses.adb
+lib/asis/asis-clauses.ads
+lib/asis/asis-compilation_units-relations.adb
+lib/asis/asis-compilation_units-relations.ads
+lib/asis/asis-compilation_units-times.adb
+lib/asis/asis-compilation_units-times.ads
+lib/asis/asis-compilation_units.adb
+lib/asis/asis-elements.adb
+lib/asis/asis-compilation_units.ads
+lib/asis/asis-data_decomposition-aux.adb
+lib/asis/asis-data_decomposition-aux.ads
+lib/asis/asis-data_decomposition-debug.adb
+lib/asis/asis-data_decomposition-debug.ads
+lib/asis/asis-data_decomposition-set_get.adb
+lib/asis/asis-data_decomposition-set_get.ads
+lib/asis/asis-data_decomposition-vcheck.adb
+lib/asis/asis-data_decomposition-vcheck.ads
+lib/asis/asis-data_decomposition.adb
+lib/asis/asis-data_decomposition.ads
+lib/asis/asis-declarations.adb
+lib/asis/asis-elements.ads
+lib/asis/asis-declarations.ads
+lib/asis/asis-definitions.adb
+lib/asis/asis-definitions.ads
+lib/asis/asis-errors.ads
+lib/asis/asis-exceptions.ads
+lib/asis/asis-expressions.adb
+lib/asis/asis-expressions.ads
+lib/asis/asis-extensions-flat_kinds.adb
+lib/asis/asis-extensions-flat_kinds.ads
+lib/asis/asis-extensions.adb
+lib/asis/asis-extensions.ads
+lib/asis/asis-ids.adb
+lib/asis/asis-ids.ads
+lib/asis/asis-implementation-permissions.adb
+lib/asis/asis-implementation-permissions.ads
+lib/asis/asis-iterator.adb
+lib/asis/asis-implementation.adb
+lib/asis/asis-implementation.ads
+lib/asis/asis-iterator.ads
+lib/asis/asis-set_get.adb
+lib/asis/asis-set_get.ads
+lib/asis/asis-statements.adb
+lib/asis/asis-statements.ads
+lib/asis/asis-text-set_get.adb
+lib/asis/asis-text-set_get.ads
+lib/asis/asis-text.adb
+lib/asis/asis-text.ads
+lib/asis/asis.ads
+lib/asis/alloc.ads
+lib/asis/atree.adb
+lib/asis/atree.ads
+lib/asis/casing.adb
+lib/asis/casing.ads
+lib/asis/csets.adb
+lib/asis/csets.ads
+lib/asis/debug.adb
+lib/asis/lib.adb
+lib/asis/debug.ads
+lib/asis/einfo.adb
+lib/asis/einfo.ads
+lib/asis/elists.adb
+lib/asis/elists.ads
+lib/asis/fname.adb
+lib/asis/fname.ads
+lib/asis/gnatvsn.ads
+lib/asis/hostparm.ads
+lib/asis/krunch.adb
+lib/asis/krunch.ads
+lib/asis/lib-list.adb
+lib/asis/lib-sort.adb
+lib/asis/lib.ads
+lib/asis/namet.adb
+lib/asis/namet.ads
+lib/asis/nlists.adb
+lib/asis/nlists.ads
+lib/asis/opt.adb
+lib/asis/opt.ads
+lib/asis/output.adb
+lib/asis/output.ads
+lib/asis/repinfo.adb
+lib/asis/repinfo.ads
+lib/asis/scans.adb
+lib/asis/scans.ads
+lib/asis/sinfo.adb
+lib/asis/sinfo.ads
+lib/asis/sinput.adb
+lib/asis/sinput.ads
+lib/asis/snames.adb
+lib/asis/snames.ads
+lib/asis/stand.adb
+lib/asis/stand.ads
+lib/asis/stringt.adb
+lib/asis/stringt.ads
+lib/asis/table.adb
+lib/asis/table.ads
+lib/asis/tree_in.adb
+lib/asis/tree_in.ads
+lib/asis/tree_io.adb
+lib/asis/tree_io.ads
+lib/asis/types.adb
+lib/asis/types.ads
+lib/asis/uintp.adb
+lib/asis/uintp.ads
+lib/asis/uname.adb
+lib/asis/uname.ads
+lib/asis/urealp.adb
+lib/asis/urealp.ads
+lib/asis/widechar.adb
+lib/asis/widechar.ads
+lib/asis/a4g-a_alloc.ali
+lib/asis/a4g-a_debug.ali
+lib/asis/a4g-a_elists.ali
+lib/asis/a4g-a_opt.ali
+lib/asis/a4g-a_osint.ali
+lib/asis/a4g-a_output.ali
+lib/asis/a4g-a_sem.ali
+lib/asis/a4g-a_sinput.ali
+lib/asis/a4g-a_types.ali
+lib/asis/a4g-c_u_info.ali
+lib/asis/a4g-contt-dp.ali
+lib/asis/a4g-contt-sd.ali
+lib/asis/a4g-contt-tt.ali
+lib/asis/a4g-contt-ut.ali
+lib/asis/a4g-contt.ali
+lib/asis/a4g-cu_info1.ali
+lib/asis/a4g-cu_info2.ali
+lib/asis/a4g.ali
+lib/asis/a4g-dda_aux.ali
+lib/asis/a4g-decl_sem.ali
+lib/asis/a4g-defaults.ali
+lib/asis/a4g-encl_el.ali
+lib/asis/a4g-encl_el_old.ali
+lib/asis/a4g-expr_sem.ali
+lib/asis/a4g-get_unit.ali
+lib/asis/a4g-gnat_int.ali
+lib/asis/a4g-int_knds.ali
+lib/asis/a4g-itests.ali
+lib/asis/a4g-knd_conv.ali
+lib/asis/a4g-mapping.ali
+lib/asis/a4g-nencl_el.ali
+lib/asis/a4g-norm.ali
+lib/asis/a4g-queries.ali
+lib/asis/a4g-s_u_info.ali
+lib/asis/a4g-skip_tb.ali
+lib/asis/a4g-span_beginning.ali
+lib/asis/a4g-span_end.ali
+lib/asis/a4g-tree_rec.ali
+lib/asis/a4g-u_conv.ali
+lib/asis/a4g-unit_rec.ali
+lib/asis/a4g-vcheck.ali
+lib/asis/alloc.ali
+lib/asis/asis-ada_environments-containers.ali
+lib/asis/asis-ada_environments.ali
+lib/asis/asis-clauses.ali
+lib/asis/asis-compilation_units-relations.ali
+lib/asis/asis-compilation_units-times.ali
+lib/asis/asis-compilation_units.ali
+lib/asis/asis-data_decomposition-aux.ali
+lib/asis/asis-data_decomposition-set_get.ali
+lib/asis/asis-data_decomposition-vcheck.ali
+lib/asis/asis.ali
+lib/asis/asis-data_decomposition.ali
+lib/asis/asis-declarations.ali
+lib/asis/asis-definitions.ali
+lib/asis/asis-elements.ali
+lib/asis/asis-errors.ali
+lib/asis/asis-exceptions.ali
+lib/asis/asis-expressions.ali
+lib/asis/asis-extensions-flat_kinds.ali
+lib/asis/asis-extensions.ali
+lib/asis/asis-ids.ali
+lib/asis/asis-implementation-permissions.ali
+lib/asis/asis-implementation.ali
+lib/asis/asis-iterator.ali
+lib/asis/asis-set_get.ali
+lib/asis/asis-statements.ali
+lib/asis/asis-text-set_get.ali
+lib/asis/lib.ali
+lib/asis/asis-text.ali
+lib/asis/atree.ali
+lib/asis/casing.ali
+lib/asis/csets.ali
+lib/asis/debug.ali
+lib/asis/einfo.ali
+lib/asis/elists.ali
+lib/asis/fname.ali
+lib/asis/gnatvsn.ali
+lib/asis/hostparm.ali
+lib/asis/krunch.ali
+lib/asis/namet.ali
+lib/asis/nlists.ali
+lib/asis/opt.ali
+lib/asis/output.ali
+lib/asis/repinfo.ali
+lib/asis/sinfo.ali
+lib/asis/sinput.ali
+lib/asis/snames.ali
+lib/asis/stand.ali
+lib/asis/stringt.ali
+lib/asis/table.ali
+lib/asis/tree_in.ali
+lib/asis/tree_io.ali
+lib/asis/types.ali
+lib/asis/uintp.ali
+lib/asis/uname.ali
+lib/asis/urealp.ali
+lib/asis/widechar.ali
+lib/libasis.a
+
+lib/libasis-3.12p.so
+lib/libasis-3.12p.so.1
+@exec /sbin/ldconfig -m %D/lib
+@unexec /sbin/ldconfig -R
+
+share/doc/asis/asis_rm.txt
+share/doc/asis/asis_ug.txt
+share/doc/asis/asisinfo.txt
+share/doc/asis/features.txt
+share/doc/asis/README.asistant
+share/doc/asis/README.ds
+share/doc/asis/README.gnatelim
+share/doc/asis/README.gnatstub
+
+@dirrm lib/asis
+@dirrm share/doc/asis
diff --git a/devel/asis/Makefile b/devel/asis/Makefile
new file mode 100644
index 0000000..65b76b4
--- /dev/null
+++ b/devel/asis/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: asis
+# Date created: 11 Jul 2000
+# Whom: Thomas Quinot <thomas@cuivre.fr.eu.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= asis
+PORTVERSION= 3.12p
+CATEGORIES= devel
+MASTER_SITES= \
+ ftp://ftp.lip6.fr/pub/gnat/asis/ \
+ ftp://cs.nyu.edu/pub/gnat/asis/
+DISTNAME= asis-${PORTVERSION}-src
+
+MAINTAINER= thomas@cuivre.fr.eu.org
+
+BUILD_DEPENDS= adagcc:${PORTSDIR}/lang/gnat
+
+USE_GMAKE= yes
+MAKEFILE= "${FILESDIR}/Makefile.bsd"
+MAKE_ARGS= GMAKE=${GMAKE} PORTVERSION=${PORTVERSION} \
+ LN=${LN}
+
+do-install:
+ @ ${MKDIR} ${PREFIX}/lib/asis || true
+ @ ${INSTALL_DATA} ${WRKSRC}/asis/*.ad? ${WRKSRC}/gnat/*.ad? ${WRKSRC}/obj/*.ali ${PREFIX}/lib/asis
+ @ ${INSTALL_DATA} ${WRKSRC}/obj/libasis.a ${PREFIX}/lib
+ @ ${INSTALL_DATA} ${WRKSRC}/libasis-${PORTVERSION}.so.1 ${PREFIX}/lib
+ @ ${LN} -sf ${PREFIX}/lib/libasis-${PORTVERSION}.so.1 ${PREFIX}/lib/libasis-${PORTVERSION}.so
+
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/asistant.prg ${PREFIX}/bin/asistant
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/display_source ${WRKSRC}/gnatelim ${WRKSRC}/gnatstub ${PREFIX}/bin
+
+post-install:
+ @ ${LDCONFIG} -m ${PREFIX}/lib
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/asis || true
+ @ ${INSTALL_DATA} ${WRKSRC}/documentation/* ${PREFIX}/share/doc/asis
+ @ ${INSTALL_DATA} ${WRKSRC}/asistant/asistant.ug ${PREFIX}/share/doc/asis/README.asistant
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/ds/README ${PREFIX}/share/doc/asis/README.ds
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/gnatelim/README ${PREFIX}/share/doc/asis/README.gnatelim
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/gnatstub/README ${PREFIX}/share/doc/asis/README.gnatstub
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/asis/distinfo b/devel/asis/distinfo
new file mode 100644
index 0000000..79e7608
--- /dev/null
+++ b/devel/asis/distinfo
@@ -0,0 +1 @@
+MD5 (asis-3.12p-src.tar.gz) = c5ab95b720c6ab6e923a6904b6d2e183
diff --git a/devel/asis/files/Makefile.bsd b/devel/asis/files/Makefile.bsd
new file mode 100644
index 0000000..0bd162f
--- /dev/null
+++ b/devel/asis/files/Makefile.bsd
@@ -0,0 +1,22 @@
+ASISPROGFLAGS=-I../../asis -I../../gnat -I../../obj -largs -L../.. -lasis-${PORTVERSION}
+
+all:
+ ${GMAKE} -C obj clean bld-objs CFLAGS="${CFLAGS} -fPIC" CC=adagcc RM="rm -f"
+ adagcc -shared -Wl,-soname,libasis-${PORTVERSION}.so.1 \
+ -o libasis-${PORTVERSION}.so.1 obj/*.o -lc
+ ${LN} -sf libasis-${PORTVERSION}.so.1 libasis-${PORTVERSION}.so
+ ${GMAKE} -C obj clean libasis.a CFLAGS="${CFLAGS}" CC=adagcc
+ chmod a-w obj/*.ali
+ cd asistant && \
+ gnatmake ${CFLAGS} -o ../asistant.prg asistant-driver -I../asis -I../gnat -I../obj -largs -L.. -lasis-${PORTVERSION}
+ cd examples/ds && \
+ gnatmake ${CFLAGS} -o ../../display_source display_source ${ASISPROGFLAGS}
+ cd examples/gnatelim && \
+ gnatmake ${CFLAGS} -o ../../gnatelim gnatelim-driver ${ASISPROGFLAGS}
+ cd examples/gnatstub && \
+ gnatmake ${CFLAGS} -o ../../gnatstub gnatstub-driver ${ASISPROGFLAGS}
+
+clean:
+ ${GMAKE} clean
+ rm -f asistant.prg display_source gnatelim gnatstub libasis*.so.*
+ rm -f libasis*.so
diff --git a/devel/asis/files/patch-aa b/devel/asis/files/patch-aa
new file mode 100644
index 0000000..55cc39c
--- /dev/null
+++ b/devel/asis/files/patch-aa
@@ -0,0 +1,12 @@
+#PATCHOPTIONS: -p0
+--- asis/a4g-gnat_int.ads.orig Wed Oct 27 15:06:50 1999
++++ asis/a4g-gnat_int.ads Wed Oct 27 15:06:57 1999
+@@ -67,7 +67,7 @@
+ -- Compiler Variables & Routines --
+ -----------------------------------
+
+- Gcc : constant String := "gcc";
++ Gcc : constant String := "adagcc";
+
+ Nul_Argument_List : constant Argument_List (1 .. 0) := (others => null);
+
diff --git a/devel/asis/files/patch-ab b/devel/asis/files/patch-ab
new file mode 100644
index 0000000..294bc08
--- /dev/null
+++ b/devel/asis/files/patch-ab
@@ -0,0 +1,27 @@
+#PATCHOPTIONS: -p0
+--- examples/ds/display_source.adb.dist Wed Sep 1 17:16:01 1999
++++ examples/ds/display_source.adb Fri May 26 19:02:05 2000
+@@ -311,7 +311,7 @@
+ Asis.Ada_Environments.Dissociate ( The_DS_Context );
+ Asis.Implementation.Finalize ("");
+
+- -- let's delete the *.at? and *.ali files
++ -- let's delete the *.adt and *.ali files
+ declare
+ To_Erase : String := Ada.Command_Line.Argument (Command_File) ;
+ File : File_Type ;
+@@ -320,12 +320,12 @@
+ To_Erase (To_Erase'Last - 3 .. To_Erase'Last - 1 ) = ".AD"
+ then
+ -- tree file
+- To_Erase ( To_Erase'Last - 1 ) := 't' ;
++ To_Erase ( To_Erase'Last ) := 't' ;
+ Open ( File , Out_File , To_Erase ) ;
+ Delete ( File ) ;
+
+ -- ali file
+- To_Erase (To_Erase'Last -2 .. To_Erase'Last) := "ali";
++ To_Erase (To_Erase'Last - 2 .. To_Erase'Last) := "ali";
+ Open ( File , Out_File , To_Erase ) ;
+ Delete ( File ) ;
+
diff --git a/devel/asis/pkg-comment b/devel/asis/pkg-comment
new file mode 100644
index 0000000..8f51f1b
--- /dev/null
+++ b/devel/asis/pkg-comment
@@ -0,0 +1 @@
+GNAT implementation of the Ada Semantic Interface Specification
diff --git a/devel/asis/pkg-descr b/devel/asis/pkg-descr
new file mode 100644
index 0000000..e000151
--- /dev/null
+++ b/devel/asis/pkg-descr
@@ -0,0 +1,8 @@
+ASIS is an ISO standard API for the extraction of syntactic
+and semantic information from an Ada compilation environment.
+This is the implementation of ASIS for GNAT, the GNU Ada compiler.
+
+WWW: http://www.gnat.com/
+
+--
+Thomas Quinot -- <thomas@cuivre.fr.eu.org>
diff --git a/devel/asis/pkg-plist b/devel/asis/pkg-plist
new file mode 100644
index 0000000..6792491
--- /dev/null
+++ b/devel/asis/pkg-plist
@@ -0,0 +1,312 @@
+bin/asistant
+bin/display_source
+bin/gnatelim
+bin/gnatstub
+lib/asis/a4g-a_alloc.ads
+lib/asis/a4g-a_debug.adb
+lib/asis/a4g-a_debug.ads
+lib/asis/a4g-a_elists.adb
+lib/asis/a4g-a_elists.ads
+lib/asis/a4g-a_opt.adb
+lib/asis/a4g-a_opt.ads
+lib/asis/a4g-a_osint.adb
+lib/asis/a4g-a_osint.ads
+lib/asis/a4g-a_output.adb
+lib/asis/a4g-a_output.ads
+lib/asis/a4g-a_sem.adb
+lib/asis/a4g-a_sem.ads
+lib/asis/a4g-a_sinput.adb
+lib/asis/a4g-a_sinput.ads
+lib/asis/a4g-a_types.adb
+lib/asis/a4g-a_types.ads
+lib/asis/a4g-c_u_info.adb
+lib/asis/a4g-c_u_info.ads
+lib/asis/a4g-contt-dp.adb
+lib/asis/a4g-contt-dp.ads
+lib/asis/a4g-contt-sd.adb
+lib/asis/a4g-contt-sd.ads
+lib/asis/a4g-contt-tt.adb
+lib/asis/a4g-contt-tt.ads
+lib/asis/a4g-contt-ut.adb
+lib/asis/a4g-contt-ut.ads
+lib/asis/a4g-contt.adb
+lib/asis/a4g-contt.ads
+lib/asis/a4g-cu_info1.adb
+lib/asis/a4g-cu_info1.ads
+lib/asis/a4g-cu_info2.adb
+lib/asis/a4g-cu_info2.ads
+lib/asis/a4g-dda_aux.adb
+lib/asis/a4g-dda_aux.ads
+lib/asis/a4g-decl_sem.adb
+lib/asis/a4g-decl_sem.ads
+lib/asis/a4g-encl_el.adb
+lib/asis/a4g-defaults.adb
+lib/asis/a4g-defaults.ads
+lib/asis/a4g-encl_el.ads
+lib/asis/a4g-encl_el_old.adb
+lib/asis/a4g-encl_el_old.ads
+lib/asis/a4g-expr_sem.adb
+lib/asis/a4g-expr_sem.ads
+lib/asis/a4g-get_unit.adb
+lib/asis/a4g-get_unit.ads
+lib/asis/a4g-gnat_int.adb
+lib/asis/a4g-gnat_int.ads
+lib/asis/a4g-int_knds.ads
+lib/asis/a4g-itests.adb
+lib/asis/a4g-itests.ads
+lib/asis/a4g-knd_conv.adb
+lib/asis/a4g-knd_conv.ads
+lib/asis/a4g-mapping.adb
+lib/asis/a4g-mapping.ads
+lib/asis/a4g-nencl_el.adb
+lib/asis/a4g-nencl_el.ads
+lib/asis/a4g-norm.adb
+lib/asis/a4g-norm.ads
+lib/asis/a4g-queries.adb
+lib/asis/a4g-queries.ads
+lib/asis/a4g-s_u_info.adb
+lib/asis/a4g-s_u_info.ads
+lib/asis/a4g-skip_tb.adb
+lib/asis/a4g-skip_tb.ads
+lib/asis/a4g-span_beginning.adb
+lib/asis/a4g-span_beginning.ads
+lib/asis/a4g-span_end.adb
+lib/asis/a4g-span_end.ads
+lib/asis/a4g-tree_rec.ads
+lib/asis/a4g-u_conv.adb
+lib/asis/a4g-u_conv.ads
+lib/asis/a4g-ulists.ads
+lib/asis/a4g-unit_rec.ads
+lib/asis/a4g-vcheck.adb
+lib/asis/a4g-vcheck.ads
+lib/asis/a4g.ads
+lib/asis/asis-ada_environments-containers.adb
+lib/asis/asis-ada_environments-containers.ads
+lib/asis/asis-ada_environments.adb
+lib/asis/asis-ada_environments.ads
+lib/asis/asis-clauses.adb
+lib/asis/asis-clauses.ads
+lib/asis/asis-compilation_units-relations.adb
+lib/asis/asis-compilation_units-relations.ads
+lib/asis/asis-compilation_units-times.adb
+lib/asis/asis-compilation_units-times.ads
+lib/asis/asis-compilation_units.adb
+lib/asis/asis-elements.adb
+lib/asis/asis-compilation_units.ads
+lib/asis/asis-data_decomposition-aux.adb
+lib/asis/asis-data_decomposition-aux.ads
+lib/asis/asis-data_decomposition-debug.adb
+lib/asis/asis-data_decomposition-debug.ads
+lib/asis/asis-data_decomposition-set_get.adb
+lib/asis/asis-data_decomposition-set_get.ads
+lib/asis/asis-data_decomposition-vcheck.adb
+lib/asis/asis-data_decomposition-vcheck.ads
+lib/asis/asis-data_decomposition.adb
+lib/asis/asis-data_decomposition.ads
+lib/asis/asis-declarations.adb
+lib/asis/asis-elements.ads
+lib/asis/asis-declarations.ads
+lib/asis/asis-definitions.adb
+lib/asis/asis-definitions.ads
+lib/asis/asis-errors.ads
+lib/asis/asis-exceptions.ads
+lib/asis/asis-expressions.adb
+lib/asis/asis-expressions.ads
+lib/asis/asis-extensions-flat_kinds.adb
+lib/asis/asis-extensions-flat_kinds.ads
+lib/asis/asis-extensions.adb
+lib/asis/asis-extensions.ads
+lib/asis/asis-ids.adb
+lib/asis/asis-ids.ads
+lib/asis/asis-implementation-permissions.adb
+lib/asis/asis-implementation-permissions.ads
+lib/asis/asis-iterator.adb
+lib/asis/asis-implementation.adb
+lib/asis/asis-implementation.ads
+lib/asis/asis-iterator.ads
+lib/asis/asis-set_get.adb
+lib/asis/asis-set_get.ads
+lib/asis/asis-statements.adb
+lib/asis/asis-statements.ads
+lib/asis/asis-text-set_get.adb
+lib/asis/asis-text-set_get.ads
+lib/asis/asis-text.adb
+lib/asis/asis-text.ads
+lib/asis/asis.ads
+lib/asis/alloc.ads
+lib/asis/atree.adb
+lib/asis/atree.ads
+lib/asis/casing.adb
+lib/asis/casing.ads
+lib/asis/csets.adb
+lib/asis/csets.ads
+lib/asis/debug.adb
+lib/asis/lib.adb
+lib/asis/debug.ads
+lib/asis/einfo.adb
+lib/asis/einfo.ads
+lib/asis/elists.adb
+lib/asis/elists.ads
+lib/asis/fname.adb
+lib/asis/fname.ads
+lib/asis/gnatvsn.ads
+lib/asis/hostparm.ads
+lib/asis/krunch.adb
+lib/asis/krunch.ads
+lib/asis/lib-list.adb
+lib/asis/lib-sort.adb
+lib/asis/lib.ads
+lib/asis/namet.adb
+lib/asis/namet.ads
+lib/asis/nlists.adb
+lib/asis/nlists.ads
+lib/asis/opt.adb
+lib/asis/opt.ads
+lib/asis/output.adb
+lib/asis/output.ads
+lib/asis/repinfo.adb
+lib/asis/repinfo.ads
+lib/asis/scans.adb
+lib/asis/scans.ads
+lib/asis/sinfo.adb
+lib/asis/sinfo.ads
+lib/asis/sinput.adb
+lib/asis/sinput.ads
+lib/asis/snames.adb
+lib/asis/snames.ads
+lib/asis/stand.adb
+lib/asis/stand.ads
+lib/asis/stringt.adb
+lib/asis/stringt.ads
+lib/asis/table.adb
+lib/asis/table.ads
+lib/asis/tree_in.adb
+lib/asis/tree_in.ads
+lib/asis/tree_io.adb
+lib/asis/tree_io.ads
+lib/asis/types.adb
+lib/asis/types.ads
+lib/asis/uintp.adb
+lib/asis/uintp.ads
+lib/asis/uname.adb
+lib/asis/uname.ads
+lib/asis/urealp.adb
+lib/asis/urealp.ads
+lib/asis/widechar.adb
+lib/asis/widechar.ads
+lib/asis/a4g-a_alloc.ali
+lib/asis/a4g-a_debug.ali
+lib/asis/a4g-a_elists.ali
+lib/asis/a4g-a_opt.ali
+lib/asis/a4g-a_osint.ali
+lib/asis/a4g-a_output.ali
+lib/asis/a4g-a_sem.ali
+lib/asis/a4g-a_sinput.ali
+lib/asis/a4g-a_types.ali
+lib/asis/a4g-c_u_info.ali
+lib/asis/a4g-contt-dp.ali
+lib/asis/a4g-contt-sd.ali
+lib/asis/a4g-contt-tt.ali
+lib/asis/a4g-contt-ut.ali
+lib/asis/a4g-contt.ali
+lib/asis/a4g-cu_info1.ali
+lib/asis/a4g-cu_info2.ali
+lib/asis/a4g.ali
+lib/asis/a4g-dda_aux.ali
+lib/asis/a4g-decl_sem.ali
+lib/asis/a4g-defaults.ali
+lib/asis/a4g-encl_el.ali
+lib/asis/a4g-encl_el_old.ali
+lib/asis/a4g-expr_sem.ali
+lib/asis/a4g-get_unit.ali
+lib/asis/a4g-gnat_int.ali
+lib/asis/a4g-int_knds.ali
+lib/asis/a4g-itests.ali
+lib/asis/a4g-knd_conv.ali
+lib/asis/a4g-mapping.ali
+lib/asis/a4g-nencl_el.ali
+lib/asis/a4g-norm.ali
+lib/asis/a4g-queries.ali
+lib/asis/a4g-s_u_info.ali
+lib/asis/a4g-skip_tb.ali
+lib/asis/a4g-span_beginning.ali
+lib/asis/a4g-span_end.ali
+lib/asis/a4g-tree_rec.ali
+lib/asis/a4g-u_conv.ali
+lib/asis/a4g-unit_rec.ali
+lib/asis/a4g-vcheck.ali
+lib/asis/alloc.ali
+lib/asis/asis-ada_environments-containers.ali
+lib/asis/asis-ada_environments.ali
+lib/asis/asis-clauses.ali
+lib/asis/asis-compilation_units-relations.ali
+lib/asis/asis-compilation_units-times.ali
+lib/asis/asis-compilation_units.ali
+lib/asis/asis-data_decomposition-aux.ali
+lib/asis/asis-data_decomposition-set_get.ali
+lib/asis/asis-data_decomposition-vcheck.ali
+lib/asis/asis.ali
+lib/asis/asis-data_decomposition.ali
+lib/asis/asis-declarations.ali
+lib/asis/asis-definitions.ali
+lib/asis/asis-elements.ali
+lib/asis/asis-errors.ali
+lib/asis/asis-exceptions.ali
+lib/asis/asis-expressions.ali
+lib/asis/asis-extensions-flat_kinds.ali
+lib/asis/asis-extensions.ali
+lib/asis/asis-ids.ali
+lib/asis/asis-implementation-permissions.ali
+lib/asis/asis-implementation.ali
+lib/asis/asis-iterator.ali
+lib/asis/asis-set_get.ali
+lib/asis/asis-statements.ali
+lib/asis/asis-text-set_get.ali
+lib/asis/lib.ali
+lib/asis/asis-text.ali
+lib/asis/atree.ali
+lib/asis/casing.ali
+lib/asis/csets.ali
+lib/asis/debug.ali
+lib/asis/einfo.ali
+lib/asis/elists.ali
+lib/asis/fname.ali
+lib/asis/gnatvsn.ali
+lib/asis/hostparm.ali
+lib/asis/krunch.ali
+lib/asis/namet.ali
+lib/asis/nlists.ali
+lib/asis/opt.ali
+lib/asis/output.ali
+lib/asis/repinfo.ali
+lib/asis/sinfo.ali
+lib/asis/sinput.ali
+lib/asis/snames.ali
+lib/asis/stand.ali
+lib/asis/stringt.ali
+lib/asis/table.ali
+lib/asis/tree_in.ali
+lib/asis/tree_io.ali
+lib/asis/types.ali
+lib/asis/uintp.ali
+lib/asis/uname.ali
+lib/asis/urealp.ali
+lib/asis/widechar.ali
+lib/libasis.a
+
+lib/libasis-3.12p.so
+lib/libasis-3.12p.so.1
+@exec /sbin/ldconfig -m %D/lib
+@unexec /sbin/ldconfig -R
+
+share/doc/asis/asis_rm.txt
+share/doc/asis/asis_ug.txt
+share/doc/asis/asisinfo.txt
+share/doc/asis/features.txt
+share/doc/asis/README.asistant
+share/doc/asis/README.ds
+share/doc/asis/README.gnatelim
+share/doc/asis/README.gnatstub
+
+@dirrm lib/asis
+@dirrm share/doc/asis
OpenPOWER on IntegriCloud