pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
inform: start a package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Thu May 9 15:05:45 2024 +0200
Changeset: 567dc6e24a753a1ebe09396dfcb6976566ef0898
Modified Files:
Makefile
Added Files:
inform/DESCR
inform/Makefile
inform/PLIST
inform/TODO
inform/distinfo
inform/patches/patch-inweb_Materials_platforms_inweb-on-unix.mk
inform/patches/patch-inweb_Materials_platforms_unix.mkscript
Log Message:
inform: start a package
upstream build instructions do not work, bug filed upstream
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=567dc6e24a753a1ebe09396dfcb6976566ef0898
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
inform/DESCR | 9 +++++
inform/Makefile | 38 ++++++++++++++++++++++
inform/PLIST | 4 +++
inform/TODO | 2 ++
inform/distinfo | 10 ++++++
...atch-inweb_Materials_platforms_inweb-on-unix.mk | 16 +++++++++
.../patch-inweb_Materials_platforms_unix.mkscript | 16 +++++++++
8 files changed, 96 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 2ff51527a7..5b7ee6b6b7 100644
--- a/Makefile
+++ b/Makefile
@@ -1636,6 +1636,7 @@ SUBDIR+= incron
SUBDIR+= inetdxtra
SUBDIR+= influx-cli
SUBDIR+= influxdb
+SUBDIR+= inform
SUBDIR+= infraarcana
SUBDIR+= inicpp
SUBDIR+= initware-git
diff --git a/inform/DESCR b/inform/DESCR
new file mode 100644
index 0000000000..298ca3a400
--- /dev/null
+++ b/inform/DESCR
@@ -0,0 +1,9 @@
+Inform is a programming language for creating interactive fiction,
+using natural language syntax. Using natural language and drawing
+on ideas from linguistics and from literate programming, Inform is
+widely used as a medium for literary writing, as a prototyping tool
+in the games industry, and in education, both at school and university
+level (where Inform is often assigned material for courses on
+digital narrative). It has several times ranked in the top 100 most
+influential programming languages according to the TIOBE index.
+Created in April 2006, it was open-sourced in April 2022.
diff --git a/inform/Makefile b/inform/Makefile
new file mode 100644
index 0000000000..bf54ba45e7
--- /dev/null
+++ b/inform/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+DISTNAME= inform-10.1.2
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ganelson/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+DISTFILES= ${DEFAULT_DISTFILES} inweb-7.2.0.tar.gz
+# TODO: fix for inweb download
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/ganelson/inform/
+COMMENT= Inform 7 programming language
+LICENSE= artistic-2.0
+
+TOOL_DEPENDS+= clang-[0-9]*:../../lang/clang
+
+# Package builds with clang specific switches
+PKGSRC_COMPILER= clang
+
+INSTALLATION_DIRS+= bin
+
+USE_TOOLS+= bash gmake
+
+WRKSRC= ${WRKDIR}
+
+post-extract:
+ ${MV} ${WRKDIR}/inweb-* ${WRKDIR}/inweb
+ ${MV} ${WRKDIR}/inform-* ${WRKDIR}/inform
+ ${MKDIR} ${WRKDIR}/inweb/Tangled
+
+do-build: inweb inform
+.PHONY: inweb inform
+inweb:
+ cd ${WRKDIR} && ${BASH} inweb/scripts/first.sh unix
+inform: #inweb
+ cd ${WRKDIR}/inform && ${BASH} scripts/first.sh
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/inform/PLIST b/inform/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/inform/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/inform/TODO b/inform/TODO
new file mode 100644
index 0000000000..c7b0314f28
--- /dev/null
+++ b/inform/TODO
@@ -0,0 +1,2 @@
+inweb builds, but inform build per upstream instructions fails.
+https://inform7.atlassian.net/browse/I7-2498
diff --git a/inform/distinfo b/inform/distinfo
new file mode 100644
index 0000000000..22ba51dda8
--- /dev/null
+++ b/inform/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+BLAKE2s (inform-10.1.2.tar.gz) = d781f552bd0b15a66e787f7f58b3b2ebdf896d2b6a0057c3010df5aaab499961
+SHA512 (inform-10.1.2.tar.gz) = 0f3fb193f156cf145ca55b1d1ecea1262ad93141ee670c8f27fda3b07ec7df5c387faf7085eab0eebed4eb7422d98683b4f76ebc4a27d1a510a7b9b05682f7c7
+Size (inform-10.1.2.tar.gz) = 57676237 bytes
+BLAKE2s (inweb-7.2.0.tar.gz) = f4e6ae2959a7bdeefbac4ceda004b6a81386b4765271fe02768eeafb1302fb8f
+SHA512 (inweb-7.2.0.tar.gz) = 3f929f4172214656da061040c0013a24366cd68626c986b6bba4e1bc39f8fc53f2596e1f48e67b459739ef74413c51afdb4af97ad82891e18aaab2f324c33aac
+Size (inweb-7.2.0.tar.gz) = 22072094 bytes
+SHA1 (patch-inweb_Materials_platforms_inweb-on-unix.mk) = 88ebdd2bcbf5e82a3987454a23ffbcd37646495b
+SHA1 (patch-inweb_Materials_platforms_unix.mkscript) = 71a62fad859126017e229501a90f8bc20cd13dcd
diff --git a/inform/patches/patch-inweb_Materials_platforms_inweb-on-unix.mk b/inform/patches/patch-inweb_Materials_platforms_inweb-on-unix.mk
new file mode 100644
index 0000000000..7573e5c08b
--- /dev/null
+++ b/inform/patches/patch-inweb_Materials_platforms_inweb-on-unix.mk
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Generated file.
+https://github.com/ganelson/inweb/pull/45
+
+--- inweb/Materials/platforms/inweb-on-unix.mk.orig 2022-08-20 10:02:58.000000000 +0000
++++ inweb/Materials/platforms/inweb-on-unix.mk
+@@ -70,7 +70,7 @@ safe:
+
+ define make-me-once-tangled
+ clang -std=c11 -c $(MANYWARNINGS) $(CCOPTS) -g -o $(ME)/Tangled/$(ME).o $(ME)/Tangled/$(ME).c
+- clang -lm -lpthread -static -g -o $(ME)/Tangled/$(ME)$(EXEEXTENSION) $(ME)/Tangled/$(ME).o
++ clang -static -g -o $(ME)/Tangled/$(ME)$(EXEEXTENSION) $(ME)/Tangled/$(ME).o -lm -lpthread
+ endef
+
+ define make-me
diff --git a/inform/patches/patch-inweb_Materials_platforms_unix.mkscript b/inform/patches/patch-inweb_Materials_platforms_unix.mkscript
new file mode 100644
index 0000000000..1513e9f033
--- /dev/null
+++ b/inform/patches/patch-inweb_Materials_platforms_unix.mkscript
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Fix build on NetBSD.
+https://github.com/ganelson/inweb/pull/45
+
+--- inweb/Materials/platforms/unix.mkscript.orig 2022-08-20 10:02:58.000000000 +0000
++++ inweb/Materials/platforms/unix.mkscript
+@@ -72,7 +72,7 @@ INWEB = inweb/Tangled/inweb
+ {end-define}
+
+ {define: link to: TO from: FROM ?options: OPTS}
+- clang -lm -lpthread -static -g -o {TO} {FROM} {OPTS}
++ clang -static -g -o {TO} {FROM} {OPTS} -lm -lpthread
+ {end-define}
+
+ # Where:
Home |
Main Index |
Thread Index |
Old Index