pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
skint: import skint-0.5.2 as lang/skint
Module Name: pkgsrc-wip
Committed By: Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By: yhardy
Date: Sun Feb 23 22:03:26 2025 +0200
Changeset: 608dd698c514358cad8e12acf3ee6d4f54f41f56
Modified Files:
Makefile
Added Files:
skint/COMMIT_MSG
skint/DESCR
skint/Makefile
skint/PLIST
skint/distinfo
skint/patches/patch-Makefile
skint/patches/patch-s.h
Log Message:
skint: import skint-0.5.2 as lang/skint
Cheap and fast R7RS Scheme Interpreter
SKINT is a portable interpreter for the R7RS Scheme programming
language. It can be built from five C source files (10K lines of
code) with a single command. There are no distributives or packages;
just compile the source files with your favorite C compiler, link
them with the standard C runtime libraries, and you're done.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=608dd698c514358cad8e12acf3ee6d4f54f41f56
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
skint/COMMIT_MSG | 9 +++++++++
skint/DESCR | 7 +++++++
skint/Makefile | 25 +++++++++++++++++++++++++
skint/PLIST | 8 ++++++++
skint/distinfo | 7 +++++++
skint/patches/patch-Makefile | 28 ++++++++++++++++++++++++++++
skint/patches/patch-s.h | 23 +++++++++++++++++++++++
8 files changed, 108 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 5e44e7c8c7..ad24e40db9 100644
--- a/Makefile
+++ b/Makefile
@@ -5332,6 +5332,7 @@ SUBDIR+= siscone
SUBDIR+= sjg-mk-files
SUBDIR+= skinlf
SUBDIR+= skippy-xd
+SUBDIR+= skint
SUBDIR+= slack-libpurple
SUBDIR+= slack-term
SUBDIR+= slackpkg2pkgsrc
diff --git a/skint/COMMIT_MSG b/skint/COMMIT_MSG
new file mode 100644
index 0000000000..5aa14ff2a5
--- /dev/null
+++ b/skint/COMMIT_MSG
@@ -0,0 +1,9 @@
+lang/skint: import skint-0.5.2 as lang/skint
+
+Cheap and fast R7RS Scheme Interpreter
+
+SKINT is a portable interpreter for the R7RS Scheme programming
+language. It can be built from five C source files (10K lines of
+code) with a single command. There are no distributives or packages;
+just compile the source files with your favorite C compiler, link
+them with the standard C runtime libraries, and you're done.
diff --git a/skint/DESCR b/skint/DESCR
new file mode 100644
index 0000000000..c0efbccfaa
--- /dev/null
+++ b/skint/DESCR
@@ -0,0 +1,7 @@
+Cheap and fast R7RS Scheme Interpreter
+
+SKINT is a portable interpreter for the R7RS Scheme programming
+language. It can be built from five C source files (10K lines of
+code) with a single command. There are no distributives or packages;
+just compile the source files with your favorite C compiler, link
+them with the standard C runtime libraries, and you're done.
diff --git a/skint/Makefile b/skint/Makefile
new file mode 100644
index 0000000000..2a05851b87
--- /dev/null
+++ b/skint/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= skint-052
+PKGNAME= skint-0.5.2
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GITHUB:=false-schemers/}
+GITHUB_TAG= v052
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/false-schemers/skint/
+COMMENT= Cheap and fast R7RS Scheme Interpreter
+LICENSE= modified-bsd
+
+USE_TOOLS+= gmake
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/${PKGNAME_NOREV}
+INSTALLATION_DIRS+= share/doc/${PKGNAME_NOREV}
+INSTALL_MAKE_FLAGS+= PREFIX=${PREFIX}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/[skint].c ${DESTDIR}${PREFIX}/share/${PKGNAME_NOREV}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/skint/PLIST b/skint/PLIST
new file mode 100644
index 0000000000..be619f4f87
--- /dev/null
+++ b/skint/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+bin/skint
+share/doc/${PKGNAME}/README.md
+share/${PKGNAME}/i.c
+share/${PKGNAME}/k.c
+share/${PKGNAME}/n.c
+share/${PKGNAME}/s.c
+share/${PKGNAME}/t.c
diff --git a/skint/distinfo b/skint/distinfo
new file mode 100644
index 0000000000..4a7c548a17
--- /dev/null
+++ b/skint/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (skint-052.tar.gz) = a4c03b0003e37ae01f2e419cc543e6ed2b71c935d6746165d4a5703d08b4586d
+SHA512 (skint-052.tar.gz) = 463fe81dfdc180c10b5875c704b18052ae28e31d6bdf735815d21d344feb9a7b4e859d7891ecc3795933a932e8ef13befbe99e7acde2eeb92d46c60862d94e9a
+Size (skint-052.tar.gz) = 193960 bytes
+SHA1 (patch-Makefile) = b55760c1ada2e73d567d05fec09e772d8dba98e7
+SHA1 (patch-s.h) = eef592fe9fe3ea15bb064dc4b67ec8c5f87e7f1f
diff --git a/skint/patches/patch-Makefile b/skint/patches/patch-Makefile
new file mode 100644
index 0000000000..e06823e2e9
--- /dev/null
+++ b/skint/patches/patch-Makefile
@@ -0,0 +1,28 @@
+$NetBSD$
+
+Use CC provided by pkgsrc.
+Use DESTDIR when installing.
+
+--- Makefile.orig 2025-02-06 23:17:15.000000000 +0000
++++ Makefile
+@@ -8,9 +8,9 @@ ARCH = unknown
+
+ ifneq ($(shell which clang),)
+ $(info clang is detected)
+- CC = clang
++ #CC = clang
+ else
+- CC = gcc
++ #CC = gcc
+ endif
+
+ ifeq ($(OS),Windows_NT)
+@@ -80,7 +80,7 @@ realclean:
+ $(RM) $(objects) $(exe)
+
+ install:
+- $(INSTALL) $(exe) $(PREFIX)/bin
++ $(INSTALL) $(exe) $(DESTDIR)$(PREFIX)/bin
+
+ uninstall:
+ $(UNINSTALL) $(exe) $(PREFIX)/bin
diff --git a/skint/patches/patch-s.h b/skint/patches/patch-s.h
new file mode 100644
index 0000000000..a39c6ba1e9
--- /dev/null
+++ b/skint/patches/patch-s.h
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Add NetBSD as a supported platform.
+
+--- s.h.orig 2024-08-09 09:42:51.172343095 +0000
++++ s.h
+@@ -93,6 +93,16 @@ typedef struct stat64 stat_t;
+ #else
+ typedef struct stat stat_t;
+ #endif
++#elif defined(__GNUC__) && defined(__NetBSD__)
++#include <sys/types.h>
++#include <sys/stat.h>
++#include <sys/wait.h>
++#include <unistd.h>
++#include <dirent.h>
++#include <fcntl.h>
++#include <signal.h>
++#define setbmode(fp) /* nothing */
++typedef struct stat stat_t;
+ #elif defined(__GNUC__) && (defined(_WIN32) || defined(__INTERIX))
+ #include <sys/types.h>
+ #include <sys/stat.h>
Home |
Main Index |
Thread Index |
Old Index