From nobody@FreeBSD.org  Sat Jun 29 18:14:11 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 22DF0A4D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Jun 2013 18:14:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 12C411F37
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Jun 2013 18:14:11 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5TIEAd1059095
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Jun 2013 18:14:10 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5TIEAX4059094;
	Sat, 29 Jun 2013 18:14:10 GMT
	(envelope-from nobody)
Message-Id: <201306291814.r5TIEAX4059094@oldred.freebsd.org>
Date: Sat, 29 Jun 2013 18:14:10 GMT
From: John Marino <draco@marino.st>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [NEW PORT] Add devel/matreshka Ada development framework
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180097
>Category:       ports
>Synopsis:       [NEW PORT] Add devel/matreshka Ada development framework
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 29 18:20:00 UTC 2013
>Closed-Date:    Mon Jul 01 19:20:45 UTC 2013
>Last-Modified:  Mon Jul 01 19:20:45 UTC 2013
>Originator:     John Marino
>Release:        
>Organization:
>Environment:
>Description:
===========================================================================
Matreshka is an Ada framework to develop information systems.  It consists
of five major components: League, XML processor, Web framework, SQL access,
and the Modeling framework.

League:
    High level abstraction of localization and internationalization. Also
    provides calendrical calculations, regular expressions, and JSON.

XML processor: 
    Sax reader and writer, supports XML 1.0 and 1.1 as well as namespaces.
    It also has an XML catalogs resolver.

Web framework:
    Supports FastCGI, SOAP 1.2 and has a WSDL to Ada translator.

SQL access:
    Database abstraction of MySQL, Oracle, PostgreSQL, SQLite and Firebird.

Modeling framework:
    provides implementation of Meta Object Facility (MOF) written entirely
    in Ada.  Extension modules assist in the analysis of UML modules and
    extensions (MOF, OCL, and UML testing profile) and diagram definition.
===========================================================================

This port passes redports 8.4-amd64, 8.4-i386, 9.1-amd64 and 9.1-i386
It also passes pkg DEVELOPER_MODE=1.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	matreshka
#	matreshka/Makefile
#	matreshka/distinfo
#	matreshka/files
#	matreshka/files/patch-Makefile.build
#	matreshka/files/patch-Makefile.install
#	matreshka/pkg-descr
#
echo c - matreshka
mkdir -p matreshka > /dev/null 2>&1
echo x - matreshka/Makefile
sed 's/^X//' >matreshka/Makefile << 'END-of-matreshka/Makefile'
X# Created by: John Marino <draco@marino.st>
X# $FreeBSD$
X
XPORTNAME=	matreshka
XPORTVERSION=	0.5.0
XCATEGORIES=	devel
XMASTER_SITES=	http://forge.ada-ru.org/matreshka/downloads/
X
XMAINTAINER=	draco@marino.st
XCOMMENT=	Ada framework for information systems development
X
XLICENSE=	BSD
X
XBUILD_DEPENDS=	gprbuild>=20120510:${PORTSDIR}/devel/gprbuild
X
XUSES=		ada
XUSE_GMAKE=	yes
XDESTINY=	${WRKDIR}/destino
X
XOPTIONS_DEFINE=	SQLITE3 FIREBIRD PGSQL MYSQL ORACLE AMF
XOPTIONS_DEFAULT=SQLITE3 FIREBIRD PGSQL MYSQL
X
XAMF_DESC= 	Build Ada Modeling Framework
X
XMAKE_ENV+=	SMP_MFLAGS=-j${MAKE_JOBS_NUMBER} \
X		DESTDIR=${DESTINY}
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MFIREBIRD}
XMAKE_ENV+= HAS_FIREBIRD=yes
X.endif
X
X.if ${PORT_OPTIONS:MMYSQL}
XMAKE_ENV+= HAS_MYSQL=yes
X.endif
X
X.if ${PORT_OPTIONS:MORACLE}
XMAKE_ENV+= HAS_OCI=yes
X.endif
X
X.if ${PORT_OPTIONS:MPGSQL}
XMAKE_ENV+= HAS_POSTGRESQL=yes
X.endif
X
X.if ${PORT_OPTIONS:MSQLITE3}
XMAKE_ENV+= HAS_SQLITE3=yes
X.endif
X
X.if ${PORT_OPTIONS:MAMF}
XMAKE_ENV+= WANT_AMF=yes
X.endif
X
Xpost-install:
X	${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/
X	@cd ${DESTINY}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
X	   ${SORT} > ${WRKDIR}/PLIST.all
X	@cd ${DESTINY}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | ${SORT} -r | \
X	   ${SED} -e '/lib\/gnat$$/d' -e 's/^/@dirrm /g' >> ${WRKDIR}/PLIST.all
X	@echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
X	@${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST}
X
X.include <bsd.port.mk>
END-of-matreshka/Makefile
echo x - matreshka/distinfo
sed 's/^X//' >matreshka/distinfo << 'END-of-matreshka/distinfo'
XSHA256 (matreshka-0.5.0.tar.gz) = 09b7fd82f47d0e64ceaa1b538ed7f4e96351759ca10c0f307d0d20fec3bafe98
XSIZE (matreshka-0.5.0.tar.gz) = 32055197
END-of-matreshka/distinfo
echo c - matreshka/files
mkdir -p matreshka/files > /dev/null 2>&1
echo x - matreshka/files/patch-Makefile.build
sed 's/^X//' >matreshka/files/patch-Makefile.build << 'END-of-matreshka/files/patch-Makefile.build'
X--- Makefile.build.orig	2013-03-26 10:11:24.640151000 +0000
X+++ Makefile.build
X@@ -2,7 +2,11 @@ include Makefile.config
X 
X GPRBUILD_FLAGS = -p $(SMP_MFLAGS)
X 
X-ALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql amf dd uml mofext ocl utp
X+ALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql 
X+
X+ifdef WANT_AMF
X+ALL_TARGETS += amf dd uml mofext ocl utp
X+endif
X 
X ifdef HAS_FIREBIRD
X ALL_TARGETS += firebird
END-of-matreshka/files/patch-Makefile.build
echo x - matreshka/files/patch-Makefile.install
sed 's/^X//' >matreshka/files/patch-Makefile.install << 'END-of-matreshka/files/patch-Makefile.install'
X--- Makefile.install.orig	2012-12-05 19:49:10.977713000 +0000
X+++ Makefile.install
X@@ -22,7 +22,11 @@ LIBEXT = dll
X EXEEXT = .exe
X endif
X 
X-INSTALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql amf dd uml mofext ocl utp
X+INSTALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql 
X+
X+ifdef WANT_AMF
X+INSTALL_TARGETS += amf dd uml mofext ocl utp
X+endif
X 
X ifdef HAS_FIREBIRD
X INSTALL_TARGETS += firebird
END-of-matreshka/files/patch-Makefile.install
echo x - matreshka/pkg-descr
sed 's/^X//' >matreshka/pkg-descr << 'END-of-matreshka/pkg-descr'
XMatreshka is an Ada framework to develop information systems.  It consists
Xof five major components: League, XML processor, Web framework, SQL access,
Xand the Modeling framework.
X
XLeague:
X    High level abstraction of localization and internationalization. Also
X    provides calendrical calculations, regular expressions, and JSON.
X
XXML processor: 
X    Sax reader and writer, supports XML 1.0 and 1.1 as well as namespaces.
X    It also has an XML catalogs resolver.
X
XWeb framework:
X    Supports FastCGI, SOAP 1.2 and has a WSDL to Ada translator.
X
XSQL access:
X    Database abstraction of MySQL, Oracle, PostgreSQL, SQLite and Firebird.
X
XModeling framework:
X    provides implementation of Meta Object Facility (MOF) written entirely
X    in Ada.  Extension modules assist in the analysis of UML modules and
X    extensions (MOF, OCL, and UML testing profile) and diagram definition.
X
XWWW: http://forge.ada-ru.org/matreshka
END-of-matreshka/pkg-descr
exit



>Release-Note:
>Audit-Trail:

From: John Marino <draco@marino.st>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180097: [NEW PORT] Add devel/matreshka Ada development
 framework
Date: Mon, 01 Jul 2013 18:07:16 +0200

 Redports logs:
 https://redports.org/buildarchive/20130629174700-7650/
Responsible-Changed-From-To: freebsd-ports-bugs->wg 
Responsible-Changed-By: wg 
Responsible-Changed-When: Mon Jul 1 16:11:11 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180097 

From: John Marino <draco@marino.st>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180097: [NEW PORT] Add devel/matreshka Ada development
 framework
Date: Mon, 01 Jul 2013 19:22:46 +0200

 Matreshka is not truly jobs safe.
 It may pass, but with high job numbers it can fail:
 
 https://redports.org/buildarchive/20130701170100-28564/
 
 MAKE_JOBS_SAFE should not be enabled, and perhaps MAKE_JOBS_UNSAFE=yes 
 is prudent.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180097: commit references a PR
Date: Mon,  1 Jul 2013 19:18:32 +0000 (UTC)

 Author: wg
 Date: Mon Jul  1 19:18:17 2013
 New Revision: 322140
 URL: http://svnweb.freebsd.org/changeset/ports/322140
 
 Log:
   devel/matreshka: Ada framework for information systems development
   
   Matreshka is an Ada framework to develop information systems.  It consists
   of five major components: League, XML processor, Web framework, SQL access,
   and the Modeling framework.
   
   League:
       High level abstraction of localization and internationalization. Also
       provides calendrical calculations, regular expressions, and JSON.
   
   XML processor:
       Sax reader and writer, supports XML 1.0 and 1.1 as well as namespaces.
       It also has an XML catalogs resolver.
   
   Web framework:
       Supports FastCGI, SOAP 1.2 and has a WSDL to Ada translator.
   
   SQL access:
       Database abstraction of MySQL, Oracle, PostgreSQL, SQLite and Firebird.
   
   Modeling framework:
       provides implementation of Meta Object Facility (MOF) written entirely
       in Ada.  Extension modules assist in the analysis of UML modules and
       extensions (MOF, OCL, and UML testing profile) and diagram definition.
   
   WWW: http://forge.ada-ru.org/matreshka
   
   PR:		ports/180097
   Submitted by:	John Marino <draco@marino.st>
 
 Added:
   head/devel/matreshka/
   head/devel/matreshka/Makefile   (contents, props changed)
   head/devel/matreshka/distinfo   (contents, props changed)
   head/devel/matreshka/files/
   head/devel/matreshka/files/patch-Makefile.build   (contents, props changed)
   head/devel/matreshka/files/patch-Makefile.install   (contents, props changed)
   head/devel/matreshka/pkg-descr   (contents, props changed)
 Modified:
   head/devel/Makefile
 
 Modified: head/devel/Makefile
 ==============================================================================
 --- head/devel/Makefile	Mon Jul  1 19:13:50 2013	(r322139)
 +++ head/devel/Makefile	Mon Jul  1 19:18:17 2013	(r322140)
 @@ -1210,6 +1210,7 @@
      SUBDIR += magit
      SUBDIR += make++
      SUBDIR += makedepend
 +    SUBDIR += matreshka
      SUBDIR += maven-ant-tasks
      SUBDIR += maven-wrapper
      SUBDIR += maven2
 
 Added: head/devel/matreshka/Makefile
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/matreshka/Makefile	Mon Jul  1 19:18:17 2013	(r322140)
 @@ -0,0 +1,65 @@
 +# Created by: John Marino <draco@marino.st>
 +# $FreeBSD$
 +
 +PORTNAME=	matreshka
 +PORTVERSION=	0.5.0
 +CATEGORIES=	devel
 +MASTER_SITES=	http://forge.ada-ru.org/matreshka/downloads/
 +
 +MAINTAINER=	draco@marino.st
 +COMMENT=	Ada framework for information systems development
 +
 +LICENSE=	BSD
 +
 +BUILD_DEPENDS=	gprbuild>=20120510:${PORTSDIR}/devel/gprbuild
 +
 +USES=		ada
 +USE_GMAKE=	yes
 +DESTINY=	${WRKDIR}/destino
 +
 +OPTIONS_DEFINE=	SQLITE3 FIREBIRD PGSQL MYSQL ORACLE AMF
 +OPTIONS_DEFAULT=SQLITE3 FIREBIRD PGSQL MYSQL
 +
 +AMF_DESC=	Build Ada Modeling Framework
 +
 +MAKE_JOBS_UNSAFE=	yes
 +
 +MAKE_ENV+=	SMP_MFLAGS=-j${MAKE_JOBS_NUMBER} \
 +		DESTDIR=${DESTINY}
 +
 +.include <bsd.port.options.mk>
 +
 +.if ${PORT_OPTIONS:MFIREBIRD}
 +MAKE_ENV+= HAS_FIREBIRD=yes
 +.endif
 +
 +.if ${PORT_OPTIONS:MMYSQL}
 +MAKE_ENV+= HAS_MYSQL=yes
 +.endif
 +
 +.if ${PORT_OPTIONS:MORACLE}
 +MAKE_ENV+= HAS_OCI=yes
 +.endif
 +
 +.if ${PORT_OPTIONS:MPGSQL}
 +MAKE_ENV+= HAS_POSTGRESQL=yes
 +.endif
 +
 +.if ${PORT_OPTIONS:MSQLITE3}
 +MAKE_ENV+= HAS_SQLITE3=yes
 +.endif
 +
 +.if ${PORT_OPTIONS:MAMF}
 +MAKE_ENV+= WANT_AMF=yes
 +.endif
 +
 +post-install:
 +	${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/
 +	@cd ${DESTINY}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
 +	   ${SORT} > ${WRKDIR}/PLIST.all
 +	@cd ${DESTINY}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | ${SORT} -r | \
 +	   ${SED} -e '/lib\/gnat$$/d' -e 's/^/@dirrm /g' >> ${WRKDIR}/PLIST.all
 +	@echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
 +	@${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST}
 +
 +.include <bsd.port.mk>
 
 Added: head/devel/matreshka/distinfo
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/matreshka/distinfo	Mon Jul  1 19:18:17 2013	(r322140)
 @@ -0,0 +1,2 @@
 +SHA256 (matreshka-0.5.0.tar.gz) = 09b7fd82f47d0e64ceaa1b538ed7f4e96351759ca10c0f307d0d20fec3bafe98
 +SIZE (matreshka-0.5.0.tar.gz) = 32055197
 
 Added: head/devel/matreshka/files/patch-Makefile.build
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/matreshka/files/patch-Makefile.build	Mon Jul  1 19:18:17 2013	(r322140)
 @@ -0,0 +1,15 @@
 +--- Makefile.build.orig	2013-03-26 10:11:24.640151000 +0000
 ++++ Makefile.build
 +@@ -2,7 +2,11 @@ include Makefile.config
 + 
 + GPRBUILD_FLAGS = -p $(SMP_MFLAGS)
 + 
 +-ALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql amf dd uml mofext ocl utp
 ++ALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql 
 ++
 ++ifdef WANT_AMF
 ++ALL_TARGETS += amf dd uml mofext ocl utp
 ++endif
 + 
 + ifdef HAS_FIREBIRD
 + ALL_TARGETS += firebird
 
 Added: head/devel/matreshka/files/patch-Makefile.install
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/matreshka/files/patch-Makefile.install	Mon Jul  1 19:18:17 2013	(r322140)
 @@ -0,0 +1,15 @@
 +--- Makefile.install.orig	2012-12-05 19:49:10.977713000 +0000
 ++++ Makefile.install
 +@@ -22,7 +22,11 @@ LIBEXT = dll
 + EXEEXT = .exe
 + endif
 + 
 +-INSTALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql amf dd uml mofext ocl utp
 ++INSTALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql 
 ++
 ++ifdef WANT_AMF
 ++INSTALL_TARGETS += amf dd uml mofext ocl utp
 ++endif
 + 
 + ifdef HAS_FIREBIRD
 + INSTALL_TARGETS += firebird
 
 Added: head/devel/matreshka/pkg-descr
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/matreshka/pkg-descr	Mon Jul  1 19:18:17 2013	(r322140)
 @@ -0,0 +1,24 @@
 +Matreshka is an Ada framework to develop information systems.  It consists
 +of five major components: League, XML processor, Web framework, SQL access,
 +and the Modeling framework.
 +
 +League:
 +    High level abstraction of localization and internationalization. Also
 +    provides calendrical calculations, regular expressions, and JSON.
 +
 +XML processor: 
 +    Sax reader and writer, supports XML 1.0 and 1.1 as well as namespaces.
 +    It also has an XML catalogs resolver.
 +
 +Web framework:
 +    Supports FastCGI, SOAP 1.2 and has a WSDL to Ada translator.
 +
 +SQL access:
 +    Database abstraction of MySQL, Oracle, PostgreSQL, SQLite and Firebird.
 +
 +Modeling framework:
 +    provides implementation of Meta Object Facility (MOF) written entirely
 +    in Ada.  Extension modules assist in the analysis of UML modules and
 +    extensions (MOF, OCL, and UML testing profile) and diagram definition.
 +
 +WWW: http://forge.ada-ru.org/matreshka
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: wg 
State-Changed-When: Mon Jul 1 19:20:44 UTC 2013 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180097 
>Unformatted:
