Date: Sat, 15 Mar 2014 23:43:33 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348387 - in head/textproc: . xml_ez_out xml_ez_out/files Message-ID: <201403152343.s2FNhXlu045002@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Sat Mar 15 23:43:32 2014 New Revision: 348387 URL: http://svnweb.freebsd.org/changeset/ports/348387 QAT: https://qat.redports.org/buildarchive/r348387/ Log: 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 Added: head/textproc/xml_ez_out/ head/textproc/xml_ez_out/Makefile (contents, props changed) head/textproc/xml_ez_out/distinfo (contents, props changed) head/textproc/xml_ez_out/files/ head/textproc/xml_ez_out/files/example.gpr (contents, props changed) head/textproc/xml_ez_out/files/runme.sh.in (contents, props changed) head/textproc/xml_ez_out/files/xezo_bld.gpr (contents, props changed) head/textproc/xml_ez_out/files/xml_ez_out.gpr (contents, props changed) head/textproc/xml_ez_out/pkg-descr (contents, props changed) head/textproc/xml_ez_out/pkg-plist (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Sat Mar 15 23:41:54 2014 (r348386) +++ head/textproc/Makefile Sat Mar 15 23:43:32 2014 (r348387) @@ -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 Added: head/textproc/xml_ez_out/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/Makefile Sat Mar 15 23:43:32 2014 (r348387) @@ -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> Added: head/textproc/xml_ez_out/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/distinfo Sat Mar 15 23:43:32 2014 (r348387) @@ -0,0 +1,2 @@ +SHA256 (xml_ez_out_1.06.tgz) = 2473caaddfdbd1e75a1b1e2e3b3b77c6641032a78f281af6bdbd229d26e49f61 +SIZE (xml_ez_out_1.06.tgz) = 12694 Added: head/textproc/xml_ez_out/files/example.gpr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/files/example.gpr Sat Mar 15 23:43:32 2014 (r348387) @@ -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; Added: head/textproc/xml_ez_out/files/runme.sh.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/files/runme.sh.in Sat Mar 15 23:43:32 2014 (r348387) @@ -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.' Added: head/textproc/xml_ez_out/files/xezo_bld.gpr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/files/xezo_bld.gpr Sat Mar 15 23:43:32 2014 (r348387) @@ -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; Added: head/textproc/xml_ez_out/files/xml_ez_out.gpr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/files/xml_ez_out.gpr Sat Mar 15 23:43:32 2014 (r348387) @@ -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; Added: head/textproc/xml_ez_out/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/pkg-descr Sat Mar 15 23:43:32 2014 (r348387) @@ -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 Added: head/textproc/xml_ez_out/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/xml_ez_out/pkg-plist Sat Mar 15 23:43:32 2014 (r348387) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403152343.s2FNhXlu045002>