pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
harec: Update to 0.24.0
Module Name: pkgsrc-wip
Committed By: Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By: cfkoch
Date: Tue Feb 20 15:08:44 2024 -0800
Changeset: 3f83f8eb9d8414f0692cb846d485d80f0b3737b2
Modified Files:
harec/Makefile
Added Files:
harec/TODO
harec/distinfo
harec/files/config.mk
Log Message:
harec: Update to 0.24.0
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3f83f8eb9d8414f0692cb846d485d80f0b3737b2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
harec/Makefile | 20 +++++++-------------
harec/TODO | 3 +++
harec/distinfo | 5 +++++
harec/files/config.mk | 29 +++++++++++++++++++++++++++++
4 files changed, 44 insertions(+), 13 deletions(-)
diffs:
diff --git a/harec/Makefile b/harec/Makefile
index bae7320e46..bf86bc6527 100644
--- a/harec/Makefile
+++ b/harec/Makefile
@@ -1,29 +1,23 @@
# $NetBSD$
-DISTNAME= harec-0
+PKGNAME= harec-0.24.0
+DISTNAME= ${PKGVERSION_NOREV}
CATEGORIES= lang
-GIT_REPO= https://git.sr.ht/~sircmpwn/harec
-GIT_BRANCH= master
-GIT_REVISION= cfcc22785c94716c0e96be23081d8bfd1f6c0466
+MASTER_SITES= https://git.sr.ht/~sircmpwn/harec/archive/
MAINTAINER= charlotte%NetBSD.org@localhost
HOMEPAGE= https://harelang.org/
COMMENT= Hare language bootstrap compiler
LICENSE= gnu-gpl-v3
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
USE_LANGUAGES= c
USE_TOOLS+= gmake
-CONFIGURE_ARGS+= --bindir=${BINDIR}
-CONFIGURE_ARGS+= --libdir=${LIBDIR}
-CONFIGURE_ARGS+= --mandir=${MANDIR}
-CONFIGURE_ARGS+= --prefix=${PREFIX}
-CONFIGURE_ARGS+= --sharedir=${SHAREDIR}
-
-TOOL_DEPENDS+= qbe>=1.1*:../../lang/qbe
+TOOL_DEPENDS+= qbe>=1.2:../../lang/qbe
do-configure:
- ${RUN} cd ${WRKSRC} && ${CONFIG_SHELL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
+ ${RUN} cp ${FILESDIR}/config.mk ${WRKSRC}/config.mk
-.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/harec/TODO b/harec/TODO
new file mode 100644
index 0000000000..b6cca4f2da
--- /dev/null
+++ b/harec/TODO
@@ -0,0 +1,3 @@
+harec TODO
+
+- make sure the provided files/config.mk actually will work
diff --git a/harec/distinfo b/harec/distinfo
new file mode 100644
index 0000000000..3ca6af9bc6
--- /dev/null
+++ b/harec/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (0.24.0.tar.gz) = d547259007824f307839b669afc3f784120c1e4eb2f107baf2f185d4316cde94
+SHA512 (0.24.0.tar.gz) = aab347351bcd748a98e3a58f1ff9a0d194aea907d6ebfacbc7e10671e018fb5ce296e71119ab975e3a1e66ba439d7b706943082d57af2459e694856a89453d8d
+Size (0.24.0.tar.gz) = 193534 bytes
diff --git a/harec/files/config.mk b/harec/files/config.mk
new file mode 100644
index 0000000000..76b400030c
--- /dev/null
+++ b/harec/files/config.mk
@@ -0,0 +1,29 @@
+# install locations
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+
+# variables used during build
+PLATFORM ?= netbsd
+ARCH ?= x86_64
+HARECFLAGS =
+QBEFLAGS =
+ASFLAGS =
+LDLINKFLAGS = --gc-sections -z noexecstack
+CFLAGS = -g -std=c11 -D_XOPEN_SOURCE=700 -Iinclude \
+ -Wall -Wextra -Werror -pedantic -Wno-unused-parameter
+LDFLAGS ?=
+LIBS = -lm
+
+# commands used by the build script
+CC ?= cc
+AS ?= as
+LD ?= ld
+QBE ?= qbe
+
+# build locations
+HARECACHE = .cache
+BINOUT = .bin
+
+# variables that will be embedded in the binary with -D definitions
+DEFAULT_TARGET = $(ARCH)
+VERSION = $$(./scripts/version)
Home |
Main Index |
Thread Index |
Old Index