1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Add new Ada port: textproc/xml_ez_out

XML EZ_Out is a small set of packages intended to aid the creation of
XML-formatted output from within Ada programs.  It basically wraps the
tags and data provided to it with XML syntax and writes them to a
user-supplied medium.

This medium can be any sort of writable entity, such as a file, a
memory buffer, or even a communications link, such as a socket.  The
only functionality required of the medium is that it supply a
meaningful "Put" (for writing a string) and "New_Line" procedure.

WWW: http://www.mckae.com/xmlEz.html
This commit is contained in:
John Marino 2014-03-15 23:43:32 +00:00
parent b0b8ff6067
commit 1afb9da9ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348387
9 changed files with 139 additions and 0 deletions

View File

@ -1509,6 +1509,7 @@
SUBDIR += xml-i18n-tools
SUBDIR += xml-lite.el
SUBDIR += xml-parse.el
SUBDIR += xml_ez_out
SUBDIR += xml2
SUBDIR += xml2rfc
SUBDIR += xmlada

View File

@ -0,0 +1,55 @@
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= xml_ez_out
PORTVERSION= 1.06
CATEGORIES= textproc
MASTER_SITES= http://www.mckae.com/xml_ezout/
DISTFILES= ${PORTNAME}_${PORTVERSION}.tgz
MAINTAINER= marino@FreeBSD.org
COMMENT= Library for emitting XML from Ada programs
LICENSE= GPLv2 GMGPL
LICENSE_COMB= multi
USES= ada dos2unix
WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/mckae
PORTDOCS= README
PORTEXAMPLES= example.gpr tmeztf.adb runme.sh
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-extract:
${CP} ${FILESDIR}/xezo_bld.gpr ${WRKSRC}
${SED} -e "s,@PREFIX@,${LOCALBASE},g" ${FILESDIR}/runme.sh.in \
> ${WRKSRC}/runme.sh
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pxezo_bld)
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/xml_ez_out \
${STAGEDIR}${PREFIX}/include/xml_ez_out
${INSTALL_DATA} ${FILESDIR}/xml_ez_out.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
${INSTALL_DATA} ${BUILD_WRKSRC}/mckae* \
${STAGEDIR}${PREFIX}/include/xml_ez_out
${INSTALL_DATA} ${WRKSRC}/lib/* \
${STAGEDIR}${PREFIX}/lib/xml_ez_out
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${BUILD_WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/runme.sh ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${BUILD_WRKSRC}/tmeztf.adb \
${FILESDIR}/example.gpr ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (xml_ez_out_1.06.tgz) = 2473caaddfdbd1e75a1b1e2e3b3b77c6641032a78f281af6bdbd229d26e49f61
SIZE (xml_ez_out_1.06.tgz) = 12694

View File

@ -0,0 +1,12 @@
with "xml_ez_out";
project Example is
for Exec_Dir use "/tmp";
for Object_Dir use "/tmp";
for Main use ("tmeztf.adb");
package Compiler is
for Default_Switches ("ada") use ("-O2");
end Compiler;
end Example;

View File

@ -0,0 +1,17 @@
#!/bin/sh
# This script will:
# 1) Build the example executable in /tmp
# 2) Tell the user how to execute it
GNATMAKE=@PREFIX@/gcc-aux/bin/gnatmake
ADA_PROJECT_PATH=@PREFIX@/lib/gnat
export ADA_PROJECT_PATH
${GNATMAKE} -P example
echo
echo "The source for the example is tmeztf.adb"
echo "The executable example is located in /tmp/tmeztf"
echo "It requires no optons; just run it"
echo 'You may want to execute "rm /tmp/tmeztf*" when you are done.'

View File

@ -0,0 +1,14 @@
project XEZO_Bld is
for Languages use ("ada");
for Source_Dirs use ("mckae");
for Object_Dir use "obj";
for Library_Name use "xml_ez_out";
for Library_Dir use "lib";
for Library_Kind use "static";
package Builder is
for Default_Switches ("ada") use ("-gnatf", "-gnatws", "-O2");
end Builder;
end XEZO_Bld;

View File

@ -0,0 +1,7 @@
project XML_EZ_Out is
for Languages use ("ada");
for Source_Dirs use ("../../include/xml_ez_out");
for Library_Name use "xml_ez_out";
for Library_Dir use "../../lib/xml_ez_out";
for Externally_Built use "true";
end XML_EZ_Out;

View File

@ -0,0 +1,11 @@
XML EZ_Out is a small set of packages intended to aid the creation of
XML-formatted output from within Ada programs. It basically wraps the
tags and data provided to it with XML syntax and writes them to a
user-supplied medium.
This medium can be any sort of writable entity, such as a file, a
memory buffer, or even a communications link, such as a socket. The
only functionality required of the medium is that it supply a
meaningful "Put" (for writing a string) and "New_Line" procedure.
WWW: http://www.mckae.com/xmlEz.html

View File

@ -0,0 +1,20 @@
include/xml_ez_out/mckae-xml-ez_out-generic_medium.adb
include/xml_ez_out/mckae-xml-ez_out-generic_medium.ads
include/xml_ez_out/mckae-xml-ez_out-string_stream.adb
include/xml_ez_out/mckae-xml-ez_out-string_stream.ads
include/xml_ez_out/mckae-xml-ez_out-text_file.ads
include/xml_ez_out/mckae-xml-ez_out.ads
include/xml_ez_out/mckae-xml.ads
include/xml_ez_out/mckae.ads
lib/gnat/xml_ez_out.gpr
lib/xml_ez_out/libxml_ez_out.a
lib/xml_ez_out/mckae-xml-ez_out-generic_medium.ali
lib/xml_ez_out/mckae-xml-ez_out-string_stream.ali
lib/xml_ez_out/mckae-xml-ez_out-text_file.ali
lib/xml_ez_out/mckae-xml-ez_out.ali
lib/xml_ez_out/mckae-xml.ali
lib/xml_ez_out/mckae.ali
lib/xml_ez_out/tmeztf.ali
@dirrm lib/xml_ez_out
@dirrmtry lib/gnat
@dirrm include/xml_ez_out