import lang/rsm. BSDmakefile improvements and ok bcallah@

DESCR:
M or MUMPS is a a high performance transaction processing key-value database
with integrated programming language. It was originally developed at
Massachusetts General Hospital for managing hospital laboratory information
systems. It is widely used in the healthcare and banking sectors.

Reference Standard M (RSM) is an implementation of the M programming language
and database, which was originally created by Ray Douglas Newman as MUMPS V1
(MV1). The name change to Reference Standard M reflects its role as a reference
implementation for the M Development Committee (MDC). RSM attempts to track and
implement the latest M standard that is released by the MDC, currently ANSI
X11.1-1995.

RSM is developed and maintained by David Wicksell.
This commit is contained in:
thfr 2022-04-15 02:08:40 +00:00
parent 09f7aff89a
commit a2df76db40
5 changed files with 94 additions and 0 deletions

28
lang/rsm/Makefile Normal file
View File

@ -0,0 +1,28 @@
COMMENT = Reference Standard M, implementation of M/MUMPS
DISTNAME = ${GL_PROJECT}-${GL_TAGNAME}
PKGNAME = ${GL_PROJECT}-${GL_TAGNAME:S/v//}
GL_ACCOUNT = Reference-Standard-M
GL_PROJECT = rsm
GL_TAGNAME = v1.76.2
CATEGORIES = lang
HOMEPAGE = https://gitlab.com/${GL_ACCOUNT}/${GL_TAGNAME}
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# AGPL-3.0+
PERMIT_PACKAGE = Yes
WANTLIB += c m
MASTER_SITES = https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/-/archive/${GL_TAGNAME}/
NO_TEST = Yes
MAKE_FILE = BSDmakefile
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/rsm
${INSTALL_DATA} ${WRKBUILD}/utils.rsm ${PREFIX}/share/rsm/
${INSTALL_DATA} ${WRKBUILD}/COPYING ${PREFIX}/share/rsm/
${INSTALL_DATA} ${WRKBUILD}/README.adoc ${PREFIX}/share/rsm/
.include <bsd.port.mk>

2
lang/rsm/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (rsm-v1.76.2.tar.gz) = 36MI0HSyt6onJZuMQrP90aDsrF8fN4waNLVVbbiSNmQ=
SIZE (rsm-v1.76.2.tar.gz) = 383608

View File

@ -0,0 +1,46 @@
don't hardcode gcc
remove -O flags
honor CFLAGS
disable root check for install target
set DIR (for install) to PREFIX
Index: BSDmakefile
--- BSDmakefile.orig
+++ BSDmakefile
@@ -26,14 +26,12 @@
# along with this program. If not, see http://www.gnu.org/licenses/.
OS != uname
-CC = gcc
+CC ?= cc
FLAGS = -fsigned-char -fwrapv -Wall -std=gnu99 -Iinclude
LIBS = -lm -lcrypt
.ifmake debug
- EXTRA = -O0 -g3
.else
- EXTRA = -O3
FLAGS += -DNDEBUG
.endif
@@ -49,6 +47,8 @@ LIBS = -lm -lcrypt
.if ($(OS) == OpenBSD)
LIBS = -lm
+ FLAGS += $(CFLAGS)
+ DIR=${PREFIX}/bin
.endif
DIRS = compile database init runtime seqio symbol util xcall
@@ -115,11 +115,6 @@ debug: ${OBJS}
${CC} ${EXTRA} ${FLAGS} -o ${PROG} ${OBJS} ${LIBS}
install: ${PROG}
- @if [ "$${USER}" != "root" ]; then \
- echo "You must install ${PROG} as root"; \
- exit 1; \
- fi
-
@if [ ! -d ${DIR} ]; then \
mkdir -p ${DIR}; \
fi

13
lang/rsm/pkg/DESCR Normal file
View File

@ -0,0 +1,13 @@
M or MUMPS is a a high performance transaction processing key-value database
with integrated programming language. It was originally developed at
Massachusetts General Hospital for managing hospital laboratory information
systems. It is widely used in the healthcare and banking sectors.
Reference Standard M (RSM) is an implementation of the M programming language
and database, which was originally created by Ray Douglas Newman as MUMPS V1
(MV1). The name change to Reference Standard M reflects its role as a reference
implementation for the M Development Committee (MDC). RSM attempts to track and
implement the latest M standard that is released by the MDC, currently ANSI
X11.1-1995.
RSM is developed and maintained by David Wicksell.

5
lang/rsm/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
@bin bin/rsm
share/rsm/
share/rsm/COPYING
share/rsm/README.adoc
share/rsm/utils.rsm