Skip to content

Commit

Permalink
devel/matreshka: revive port
Browse files Browse the repository at this point in the history
Restore Matreshka Project, partially, the i386 build is running out of
stack space and failing.

 * port{clippy,fmt,lint} maintenance
 * switch to new home https://github.com/godunko/matreshka
 * update to 21.0

PR:		273241
  • Loading branch information
Alastair Hogge authored and clausecker committed Sep 10, 2023
1 parent 83a394f commit 959ad65
Show file tree
Hide file tree
Showing 6 changed files with 6,362 additions and 1 deletion.
1 change: 0 additions & 1 deletion MOVED
Expand Up @@ -6467,7 +6467,6 @@ devel/alog||2022-02-28|Removed, depends on expired lang/gcc6-aux
devel/aunit||2022-02-28|Removed, depends on expired lang/gcc6-aux
devel/florist-gpl||2022-02-28|Removed, depends on expired lang/gcc6-aux
devel/libspark2012||2022-02-28|Removed, depends on expired lang/gcc6-aux
devel/matreshka||2022-02-28|Removed, depends on expired lang/gcc6-aux
devel/pcsc-ada||2022-02-28|Removed, depends on expired lang/gcc6-aux
devel/pragmarcs||2022-02-28|Removed, depends on expired lang/gcc6-aux
devel/sdl_gnat||2022-02-28|Removed, depends on expired lang/gcc6-aux
Expand Down
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -1571,6 +1571,7 @@
SUBDIR += marl
SUBDIR += massif-visualizer
SUBDIR += mate-common
SUBDIR += matreshka
SUBDIR += maven
SUBDIR += maven-wrapper
SUBDIR += maven39
Expand Down
67 changes: 67 additions & 0 deletions devel/matreshka/Makefile
@@ -0,0 +1,67 @@
PORTNAME= matreshka
DISTVERSION= 21.0
CATEGORIES= devel

MAINTAINER= agh@riseup.net
COMMENT= Ada framework for information systems development
WWW= https://github.com/godunko/matreshka

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BROKEN_i386= segfault: raised STORAGE_ERROR : s-intman.adb:136 explicit raise

BUILD_DEPENDS= gprbuild>0:devel/gprbuild

USES= ada:12,run gmake pkgconfig
USE_GCC= yes:build
USE_GITHUB= yes
GH_ACCOUNT= godunko
USE_LDCONFIG= yes

HAS_CONFIGURE= yes
CONFIGURE_ARGS= --gprdir="${PREFIX}/share/gpr"

MAKE_ENV+= SMP_MFLAGS="-j${MAKE_JOBS_NUMBER}"

NO_MTREE= yes

WRKSRC_SUBDIR= ${PORTNAME}

OPTIONS_DEFINE= AMF
OPTIONS_DEFAULT= AMF POSTGRES SQLITE
OPTIONS_GROUP= DBSUPPORT
OPTIONS_GROUP_DBSUPPORT= FIREBIRD MYSQL ORACLE POSTGRES SQLITE
OPTIONS_SUB= yes

AMF_DESC= Build Ada Modeling Framework
DBSUPPORT_DESC= Database backend for generic SQL library
POSTGRES_DESC= Postgres database support

AMF_CONFIGURE_ENABLE= amf
FIREBIRD_USES= firebird
FIREBIRD_CONFIGURE_ENABLE= firebird
MYSQL_LIB_DEPENDS= libunwind.so:devel/libunwind
MYSQL_USES= mysql ssl
MYSQL_CONFIGURE_ENABLE= mysql
ORACLE_CONFIGURE_ENABLE= oracle
POSTGRES_USES= pgsql
POSTGRES_CONFIGURE_ENABLE= postgresql
SQLITE_USES= sqlite
SQLITE_CONFIGURE_ENABLE= sqlite3

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFIREBIRD}
CONFIGURE_ARGS+= --with-firebird-libdir=${LOCALBASE}/lib
.endif

pre-configure:
(cd ${WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${MAKE_CMD} config)

post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so \
${STAGEDIR}${PREFIX}/bin/*

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/matreshka/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1692494248
SHA256 (godunko-matreshka-21.0_GH0.tar.gz) = 24bee1b61091211d513f7cfa53a3be479078a32dab90da83b5ccb2c9c9103218
SIZE (godunko-matreshka-21.0_GH0.tar.gz) = 40700684
24 changes: 24 additions & 0 deletions devel/matreshka/pkg-descr
@@ -0,0 +1,24 @@
Matreshka is an Ada framework to develop information systems:

League - a set of reusable components aimed at providing high level
abstractions for internationalization of applications, as well as a portable
interface to different operating systems. Other features, include advanced
calendrical calculations, regular expressions, and JSON support for processing
and generation.

XML processor - manipulating of streams and documents; including SAX reader,
and writer; XML1.0, XML1.1, Namespaces support and XML Base specifications;
DOM API to process XML documents 0.8; XML Catalogs resolver; Markup Templates
Engine to process XML templates and generates XML or HTML/XHTML output 0.6.

Web framework SpikeDog - implemented over AWS (Ada Web Server) with Servlet
API 0.7. FastCGI. SOAP 1.2 supported, including WS-Security module 1.1.

SQL database access - provides a generic API for accessing SQL databases:
Firebird, MySQL, Oracle, PostgreSQL, SQLite3.

Ada Modeling Framework - an implementation of OMG's Meta Object
Facility (MOF) written completely in Ada. Extension modules are provided to
assist in the analysis and modification of, UML models and their
extensions. MOF Extensions to support metamodeling OCL models UML Testing
Profile to support Model-Driven Testing Diagram Definition

0 comments on commit 959ad65

Please sign in to comment.