pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
harec: Update to 0.24.2
Module Name: pkgsrc-wip
Committed By: Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By: cfkoch
Date: Sat Sep 7 18:17:40 2024 -0700
Changeset: 6b529d1c40468a475096f45d37f3415096b1422a
Modified Files:
harec/Makefile
harec/distinfo
Added Files:
harec/patches/patch-scripts_version
Removed Files:
harec/TODO
harec/files/config.mk
Log Message:
harec: Update to 0.24.2
Based on work by Mallory Adams
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6b529d1c40468a475096f45d37f3415096b1422a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
harec/Makefile | 23 +++++++++++++----------
harec/TODO | 3 ---
harec/distinfo | 7 ++++---
harec/files/config.mk | 29 -----------------------------
harec/patches/patch-scripts_version | 15 +++++++++++++++
5 files changed, 32 insertions(+), 45 deletions(-)
diffs:
diff --git a/harec/Makefile b/harec/Makefile
index 04a759d3fd..e46537e6ea 100644
--- a/harec/Makefile
+++ b/harec/Makefile
@@ -1,25 +1,28 @@
# $NetBSD$
-PKGNAME= harec-0.24.0
-DISTNAME= ${PKGVERSION_NOREV}
+DISTNAME= 0.24.2
+PKGNAME= harec-${DISTNAME}
CATEGORIES= lang
MASTER_SITES= https://git.sr.ht/~sircmpwn/harec/archive/
+DIST_SUBDIR= harec
MAINTAINER= charlotte%NetBSD.org@localhost
HOMEPAGE= https://harelang.org/
-COMMENT= Hare language bootstrap compiler
+COMMENT= Compiler for the Hare language
LICENSE= gnu-gpl-v3
-WRKSRC= ${WRKDIR}/${PKGNAME}
+WRKSRC= ${WRKDIR}/harec-${DISTNAME}
-USE_LANGUAGES= c
-USE_TOOLS+= gmake
+TOOL_DEPENDS+= binutils>=2.41:../../devel/binutils
+DEPENDS+= qbe>=1.2:../../lang/qbe
-TOOL_DEPENDS+= qbe>=1.2:../../lang/qbe
+TEST_TARGET= check
+MAKE_FLAGS+= LD=gld
+INSTALL_MAKE_FLAGS+= PREFIX=${PREFIX}
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS+= bin
-do-configure:
- ${RUN} cp ${FILESDIR}/config.mk ${WRKSRC}/config.mk
+pre-configure:
+ cp ${WRKSRC}/configs/${OPSYS:tl}.mk ${WRKSRC}/config.mk
.include "../../mk/bsd.pkg.mk"
diff --git a/harec/TODO b/harec/TODO
deleted file mode 100644
index b6cca4f2da..0000000000
--- a/harec/TODO
+++ /dev/null
@@ -1,3 +0,0 @@
-harec TODO
-
-- make sure the provided files/config.mk actually will work
diff --git a/harec/distinfo b/harec/distinfo
index 3ca6af9bc6..88a4bc4aa6 100644
--- a/harec/distinfo
+++ b/harec/distinfo
@@ -1,5 +1,6 @@
$NetBSD$
-BLAKE2s (0.24.0.tar.gz) = d547259007824f307839b669afc3f784120c1e4eb2f107baf2f185d4316cde94
-SHA512 (0.24.0.tar.gz) = aab347351bcd748a98e3a58f1ff9a0d194aea907d6ebfacbc7e10671e018fb5ce296e71119ab975e3a1e66ba439d7b706943082d57af2459e694856a89453d8d
-Size (0.24.0.tar.gz) = 193534 bytes
+BLAKE2s (harec/0.24.2.tar.gz) = cf1004a97988ee274cef80339d10263ec55c3112f066b3ef1f429c5eee358492
+SHA512 (harec/0.24.2.tar.gz) = 3b32e82df937de1fdd2af20a2162bc3754cb9178cd67e56f3e7bc7fc9eb9e9bad5609ca1c328d42ac5cdd527edf6d9c381dc384df72c2d7666c7ce5684871a17
+Size (harec/0.24.2.tar.gz) = 201789 bytes
+SHA1 (patch-scripts_version) = ba5b8f77fddada9fc02c85379bb9edefaa275058
diff --git a/harec/files/config.mk b/harec/files/config.mk
deleted file mode 100644
index 76b400030c..0000000000
--- a/harec/files/config.mk
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
diff --git a/harec/patches/patch-scripts_version b/harec/patches/patch-scripts_version
new file mode 100644
index 0000000000..4a291e9862
--- /dev/null
+++ b/harec/patches/patch-scripts_version
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Slight portability tweak.
+
+--- scripts/version.orig 2024-07-14 11:47:02.508104182 +0000
++++ scripts/version
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+ # Distro packagers may set the LOCALVER variable to add their distribution to
+ # the version, e.g. 1.0-alpine.
+-VERSION=${VERSION:0.24.2}
++VERSION=${VERSION:-0.24.2}
+
+ ver=$(git describe 2>/dev/null)
+ if [ $? -ne 0 ]
Home |
Main Index |
Thread Index |
Old Index