New port: SGL - incomplete STL implementation for ADA95

The Ada "Standard Generic Library" (SGL) The Ada SGL is a
	port of the C++ Standard Template Library (STL).

PR:		ports/46410
Submitted by:	David Holm <david@realityrift.com>
This commit is contained in:
Edwin Groothuis 2003-09-27 06:48:16 +00:00
parent 36c5a39f05
commit 4210c3d847
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89522
6 changed files with 191 additions and 0 deletions

View file

@ -976,6 +976,7 @@
SUBDIR += semantic-emacs20
SUBDIR += sfio
SUBDIR += sgb
SUBDIR += sgl
SUBDIR += sh-rtems-binutils
SUBDIR += sh-rtems-g77
SUBDIR += sh-rtems-gcc

46
devel/sgl/Makefile Normal file
View file

@ -0,0 +1,46 @@
# New ports collection makefile for: sgl
# Date created: 20 December 2002
# Whom: David Holm <david@realityrift.com>
#
# $FreeBSD$
#
PORTNAME= sgl
PORTVERSION= 2.0a3
CATEGORIES= devel
MASTER_SITES= ftp://ftp.cs.rpi.edu/pub/stl/
DISTNAME= SGL-${PORTVERSION}
MAINTAINER= david@realityrift.com
COMMENT= STL implementation for ADA95
RUN_DEPENDS= gnatmake:${PORTSDIR}/lang/gnat
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.include <bsd.port.pre.mk>
do-install:
${MKDIR} ${PREFIX}/lib/SGL
${MKDIR} ${PREFIX}/share/SGL
${MKDIR} ${PREFIX}/share/SGL/examples
for i in `cat pkg-plist|grep -v dirrm|grep "lib/SGL"|sed "s/lib\/SGL\///"`; do \
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/sgl/$${i} ${PREFIX}/lib/SGL; \
done
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/copyright ${PREFIX}/share/SGL
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/readme ${PREFIX}/share/SGL
for i in `cat pkg-plist|grep -v dirrm|grep "share/SGL/examples"|sed "s/share\/SGL\/examples\///"`; do \
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/test/$${i} ${PREFIX}/share/SGL/examples; \
done
post-install:
@${ECHO}
@${ECHO} "Files have been installed into ${PREFIX}/lib/SGL"
@${ECHO}
.include <bsd.port.post.mk>

1
devel/sgl/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (SGL-2.0a3.tar.gz) = d7dcc49d40b596f5d852edbc9ef64d7a

View file

@ -0,0 +1,19 @@
--- test/makefile.orig Wed Aug 19 03:59:46 1998
+++ test/makefile Fri Dec 20 22:03:12 2002
@@ -11,7 +11,7 @@
#
GNATMAKE=gnatmake
-ADA_INCLUDE=-I../SGL
+ADA_INCLUDE=-I/usr/local/lib/SGL
# Debuging flags :-v -gnatv -gnatf #-gnatdc
GFLAGS_OPT=-O3 -gnatn
#GFLAGS=-g
@@ -57,6 +57,6 @@
./test_iterators
clean: dummy
- rm -f *.ali *.o *~ b_*.c test_vectors.exe test_lists.exe test_trees.exe test_sets.exe test_maps.exe test_stacks.exe test_queues.exe test_algorithms.exe test_container_signatures.exe test_functions.exe test_iterators.exe benchmark.exe
+ rm -f *.ali *.o *~ *.log b_*.c b~* test_vectors test_lists test_trees test_sets test_maps test_stacks test_queues test_algorithms test_container_signatures test_functions test_iterators benchmark
dummy:

5
devel/sgl/pkg-descr Normal file
View file

@ -0,0 +1,5 @@
The Ada "Standard Generic Library" (SGL)
The Ada SGL is a port of the C++ Standard Template Library (STL).
- David Holm
david@realityrift.com

119
devel/sgl/pkg-plist Normal file
View file

@ -0,0 +1,119 @@
lib/SGL/header
lib/SGL/sgl-algorithms.adb
lib/SGL/sgl-algorithms.ads
lib/SGL/sgl-back_insertion_sequence_containers.ads
lib/SGL/sgl-basic_algorithms.adb
lib/SGL/sgl-basic_algorithms.ads
lib/SGL/sgl-bidirectional_constant_iterators.ads
lib/SGL/sgl-bidirectional_iterators.ads
lib/SGL/sgl-containers.ads
lib/SGL/sgl-controlled_stubs.adb
lib/SGL/sgl-controlled_stubs.ads
lib/SGL/sgl-default_allocators.adb
lib/SGL/sgl-default_allocators.ads
lib/SGL/sgl-forward_constant_iterators.ads
lib/SGL/sgl-forward_containers.ads
lib/SGL/sgl-forward_iterators.ads
lib/SGL/sgl-front_insertion_sequence_containers.ads
lib/SGL/sgl-function_adaptors.adb
lib/SGL/sgl-function_adaptors.ads
lib/SGL/sgl-input_iterators.ads
lib/SGL/sgl-integer_operations.ads
lib/SGL/sgl-iterator_adaptors.adb
lib/SGL/sgl-iterator_adaptors.ads
lib/SGL/sgl-iterator_tags.adb
lib/SGL/sgl-iterator_tags.ads
lib/SGL/sgl-list_signatures.ads
lib/SGL/sgl-lists.adb
lib/SGL/sgl-lists.ads
lib/SGL/sgl-lists.cp
lib/SGL/sgl-map_signatures.ads
lib/SGL/sgl-maps.adb
lib/SGL/sgl-maps.ads
lib/SGL/sgl-ostream_iterators.adb
lib/SGL/sgl-ostream_iterators.ads
lib/SGL/sgl-output_iterators.ads
lib/SGL/sgl-pairs.adb
lib/SGL/sgl-pairs.ads
lib/SGL/sgl-priority_queues.adb
lib/SGL/sgl-priority_queues.ads
lib/SGL/sgl-private_stubs.adb
lib/SGL/sgl-private_stubs.ads
lib/SGL/sgl-queues.adb
lib/SGL/sgl-queues.ads
lib/SGL/sgl-random_access_constant_iterators.ads
lib/SGL/sgl-random_access_containers.ads
lib/SGL/sgl-random_access_iterators.ads
lib/SGL/sgl-reverse_bidirectional_constant_iterators.adb
lib/SGL/sgl-reverse_bidirectional_constant_iterators.ads
lib/SGL/sgl-reverse_bidirectional_iterators.adb
lib/SGL/sgl-reverse_bidirectional_iterators.ads
lib/SGL/sgl-reverse_constant_iterator_operations.adb
lib/SGL/sgl-reverse_constant_iterator_operations.ads
lib/SGL/sgl-reverse_iterator_operations.adb
lib/SGL/sgl-reverse_iterator_operations.ads
lib/SGL/sgl-reverse_random_access_constant_iterators.adb
lib/SGL/sgl-reverse_random_access_constant_iterators.ads
lib/SGL/sgl-reverse_random_access_iterators.adb
lib/SGL/sgl-reverse_random_access_iterators.ads
lib/SGL/sgl-reversible_containers.ads
lib/SGL/sgl-sequence_containers.ads
lib/SGL/sgl-set_signatures.ads
lib/SGL/sgl-sets.adb
lib/SGL/sgl-sets.ads
lib/SGL/sgl-special_pairs-extension.adb
lib/SGL/sgl-special_pairs-extension.ads
lib/SGL/sgl-special_pairs.adb
lib/SGL/sgl-special_pairs.ads
lib/SGL/sgl-stacks.adb
lib/SGL/sgl-stacks.ads
lib/SGL/sgl-trees.adb
lib/SGL/sgl-trees.ads
lib/SGL/sgl-vector_signatures.ads
lib/SGL/sgl-vectors.adb
lib/SGL/sgl-vectors.ads
lib/SGL/sgl.ads
share/SGL/copyright
share/SGL/readme
share/SGL/examples/benchmark.adb
share/SGL/examples/bitest.adb
share/SGL/examples/integer_ostream_iterators.adb
share/SGL/examples/test_algorithms.adb
share/SGL/examples/test_assert.adb
share/SGL/examples/test_container_signatures.adb
share/SGL/examples/test_functions.adb
share/SGL/examples/test_iterators.adb
share/SGL/examples/test_lists.adb
share/SGL/examples/test_maps.adb
share/SGL/examples/test_queues.adb
share/SGL/examples/test_sets.adb
share/SGL/examples/test_stacks.adb
share/SGL/examples/test_trees.adb
share/SGL/examples/test_vectors.adb
share/SGL/examples/bool_private.ads
share/SGL/examples/bool_random.ads
share/SGL/examples/boolean_controlled.ads
share/SGL/examples/int_bool_map_signatures.ads
share/SGL/examples/int_bool_maps.ads
share/SGL/examples/int_bool_multimaps.ads
share/SGL/examples/int_controlled.ads
share/SGL/examples/int_identity.ads
share/SGL/examples/int_list_containers.ads
share/SGL/examples/int_list_queues.ads
share/SGL/examples/int_list_signatures.ads
share/SGL/examples/int_lists.ads
share/SGL/examples/int_private.ads
share/SGL/examples/int_random.ads
share/SGL/examples/int_set_signatures.ads
share/SGL/examples/int_sets.ads
share/SGL/examples/int_trees.ads
share/SGL/examples/int_vector_containers.ads
share/SGL/examples/int_vector_signatures.ads
share/SGL/examples/int_vector_stacks.ads
share/SGL/examples/int_vectors.ads
share/SGL/examples/integer_ostream_iterators.ads
share/SGL/examples/test_assert.ads
share/SGL/examples/makefile
@dirrm lib/SGL
@dirrm share/SGL/examples
@dirrm share/SGL