Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2023 16:34:27 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 16f844ab7cc8 - main - lang/inko: Add STD library that was missing
Message-ID:  <202310311634.39VGYRPg097766@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=16f844ab7cc8a2e914d82d4ebda188609736476c

commit 16f844ab7cc8a2e914d82d4ebda188609736476c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-10-31 16:33:06 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-10-31 16:34:25 +0000

    lang/inko: Add STD library that was missing
    
    PR:             274829
    Reported by:    Ashish SHUKLA <ashish@FreeBSD.org>
---
 lang/inko/Makefile  |  9 ++++----
 lang/inko/pkg-plist | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 4 deletions(-)

diff --git a/lang/inko/Makefile b/lang/inko/Makefile
index 7864a51f4706..e725929a390a 100644
--- a/lang/inko/Makefile
+++ b/lang/inko/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	inko
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.13.1
+PORTREVISION=	1
 CATEGORIES=	lang devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -18,7 +19,8 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	inko-lang
 
 MAKE_ENV=	LLVM_SYS_150_PREFIX=${LLVM_PREFIX} \
-		INKO_RT=${PREFIX}/lib/inko/runtime
+		INKO_RT=${PREFIX}/lib/inko/runtime \
+		INKO_STD=${PREFIX}/lib/inko
 
 CARGO_CRATES=	addr2line-0.19.0 \
 		adler-1.0.2 \
@@ -108,14 +110,13 @@ CARGO_CRATES=	addr2line-0.19.0 \
 		windows_x86_64_msvc-0.42.2 \
 		windows_x86_64_msvc-0.48.0
 
-PLIST_FILES=	bin/${PORTNAME} \
-		lib/inko/runtime/libinko.a
-
 do-install:
 	# executable
 	${INSTALL_PROGRAM} ${WRKDIR}/target/*-freebsd/release/inko ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	# runtime library
 	${MKDIR} ${STAGEDIR}${PREFIX}/lib/inko/runtime
 	${INSTALL_DATA} ${WRKDIR}/target/*-freebsd/release/libinko.a ${STAGEDIR}${PREFIX}/lib/inko/runtime
+	# standard library
+	cd ${WRKSRC}/std/src && ${COPYTREE_SHARE} std ${STAGEDIR}${PREFIX}/lib/inko
 
 .include <bsd.port.mk>
diff --git a/lang/inko/pkg-plist b/lang/inko/pkg-plist
new file mode 100644
index 000000000000..9c524987aa41
--- /dev/null
+++ b/lang/inko/pkg-plist
@@ -0,0 +1,60 @@
+bin/inko
+lib/inko/runtime/libinko.a
+lib/inko/std/array.inko
+lib/inko/std/bool.inko
+lib/inko/std/byte_array.inko
+lib/inko/std/channel.inko
+lib/inko/std/clone.inko
+lib/inko/std/cmp.inko
+lib/inko/std/crypto/chacha.inko
+lib/inko/std/crypto/cipher.inko
+lib/inko/std/crypto/hash.inko
+lib/inko/std/crypto/math.inko
+lib/inko/std/crypto/md5.inko
+lib/inko/std/crypto/poly1305.inko
+lib/inko/std/crypto/sha1.inko
+lib/inko/std/crypto/sha2.inko
+lib/inko/std/debug.inko
+lib/inko/std/drop.inko
+lib/inko/std/endian/big.inko
+lib/inko/std/endian/little.inko
+lib/inko/std/env.inko
+lib/inko/std/float.inko
+lib/inko/std/fmt.inko
+lib/inko/std/fs.inko
+lib/inko/std/fs/file.inko
+lib/inko/std/fs/path.inko
+lib/inko/std/hash.inko
+lib/inko/std/hash/siphash.inko
+lib/inko/std/init.inko
+lib/inko/std/int.inko
+lib/inko/std/io.inko
+lib/inko/std/iter.inko
+lib/inko/std/json.inko
+lib/inko/std/libc/bsd/errors.inko
+lib/inko/std/libc/freebsd/dir.inko
+lib/inko/std/libc/linux/dir.inko
+lib/inko/std/libc/linux/errors.inko
+lib/inko/std/libc/mac/amd64/dir.inko
+lib/inko/std/libc/mac/arm64/dir.inko
+lib/inko/std/libc/mac/errors.inko
+lib/inko/std/libc/unix/alloc.inko
+lib/inko/std/libc/unix/dir.inko
+lib/inko/std/map.inko
+lib/inko/std/net/ip.inko
+lib/inko/std/net/socket.inko
+lib/inko/std/nil.inko
+lib/inko/std/ops.inko
+lib/inko/std/option.inko
+lib/inko/std/process.inko
+lib/inko/std/rand.inko
+lib/inko/std/range.inko
+lib/inko/std/result.inko
+lib/inko/std/set.inko
+lib/inko/std/stdio.inko
+lib/inko/std/string.inko
+lib/inko/std/sys.inko
+lib/inko/std/test.inko
+lib/inko/std/time.inko
+lib/inko/std/tuple.inko
+lib/inko/std/utf8.inko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310311634.39VGYRPg097766>