Import lang/kona, an open source implementation of the K programming

language.
ok rsadowski@

Kona is the open-source implementation of the K programming language.
K is a synthesis of APL and LISP. Kona is a reimplementation that
targets K3.2 but includes features inferred from K4 or implemented
elsewhere.
This commit is contained in:
bcallah 2017-09-11 23:47:48 +00:00
parent 20f6262495
commit db61e2365a
5 changed files with 53 additions and 0 deletions

28
lang/kona/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/09/11 23:47:48 bcallah Exp $
COMMENT = open source implementation of the K programming language
DISTNAME = kona-3.2.0.20170908
CATEGORIES = lang
# No real releases... use GH_COMMIT.
GH_ACCOUNT = kevinlawler
GH_PROJECT = kona
GH_COMMIT = 6bdc2cd26bb094e028608c2ff902f179d1032b32
HOMEPAGE = https://kona.github.io/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# ISC
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m pthread
USE_GMAKE = Yes
ALL_TARGET = k
TEST_TARGET = k_test
post-test:
cd ${WRKSRC} && echo '\\\\' | ./k_test
.include <bsd.port.mk>

2
lang/kona/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (kona-3.2.0.20170908-6bdc2cd2.tar.gz) = +NumnPtVrE5NQuctoxCw+kho3cRlx9qoP0iBkaha0NU=
SIZE (kona-3.2.0.20170908-6bdc2cd2.tar.gz) = 325503

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2017/09/11 23:47:48 bcallah Exp $
Remove PREFIX and hardcoded optimization flags.
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -1,8 +1,5 @@
-PREFIX = /usr/local
-CFLAGS=-g
-PRODFLAGS = -O3 #-pg -g3
LIB=libkona.a
-DEVFLAGS = -O0 -g3 -DDEBUG -Wunused -Wreturn-type -Wimplicit-int #-Wall
+DEVFLAGS = -g3 -DDEBUG -Wunused -Wreturn-type -Wimplicit-int #-Wall
OS := $(shell uname -s | tr "[:upper:]" "[:lower:]")

4
lang/kona/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
Kona is the open-source implementation of the K programming language.
K is a synthesis of APL and LISP. Kona is a reimplementation that
targets K3.2 but includes features inferred from K4 or implemented
elsewhere.

2
lang/kona/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/09/11 23:47:48 bcallah Exp $
@bin bin/k