mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
nim, revbump, use nodejs20 and add upstream patch for nimble (#12467)
This commit is contained in:
@@ -12,10 +12,11 @@ HOMEPAGE="https://nim-lang.org/"
|
||||
COPYRIGHT="2006-2024 Andreas Rumpf
|
||||
2017-2024 Nim contributors"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://nim-lang.org/download/nim-$portVersion.tar.xz"
|
||||
SOURCE_DIR="nim-$portVersion"
|
||||
CHECKSUM_SHA256="f82b419750fcce561f3f897a0486b180186845d76fb5d99f248ce166108189c7"
|
||||
PATCHES="nim-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="
|
||||
config.nims
|
||||
nim.rdef.in
|
||||
@@ -65,7 +66,7 @@ BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpcre$secondaryArchSuffix >= 1
|
||||
cmd:git
|
||||
cmd:node >= 16
|
||||
cmd:node >= 20
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
@@ -75,7 +76,7 @@ BUILD_PREREQUIRES="
|
||||
TEST_REQUIRES="
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libgc$secondaryArchSuffix
|
||||
cmd:node >= 16
|
||||
cmd:node >= 20
|
||||
"
|
||||
|
||||
BUILD()
|
||||
|
||||
22
dev-lang/nim/patches/nim-2.2.4.patchset
Normal file
22
dev-lang/nim/patches/nim-2.2.4.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From ac12649151df3f5397fb47bbac4755f6b629be16 Mon Sep 17 00:00:00 2001
|
||||
From: Al Hoang <13622+hoanga@users.noreply.github.com>
|
||||
Date: Mon, 19 May 2025 04:18:55 +0000
|
||||
Subject: add haiku to os options
|
||||
|
||||
|
||||
diff --git a/dist/nimble/src/nimblepkg/downloadnim.nim b/dist/nimble/src/nimblepkg/downloadnim.nim
|
||||
index 03614ff..6ef5c26 100644
|
||||
--- a/dist/nimble/src/nimblepkg/downloadnim.nim
|
||||
+++ b/dist/nimble/src/nimblepkg/downloadnim.nim
|
||||
@@ -140,6 +140,8 @@ proc getNightliesUrl*(parsedContents: JsonNode, arch: int): (string, string) =
|
||||
"osx"
|
||||
elif defined(freebsd):
|
||||
"freebsd"
|
||||
+ elif defined(haiku):
|
||||
+ "haiku"
|
||||
for jn in parsedContents.getElems():
|
||||
if jn["name"].getStr().contains("devel"):
|
||||
let tagName = jn{"tag_name"}.getStr("")
|
||||
--
|
||||
2.48.1
|
||||
|
||||
Reference in New Issue
Block a user