Hi,

When we last had lang/haxe in ports, it was broken because of fetching
online OPAM packages during the build until we removed it. I wanted to
take a shot at resurrecting it. This is the latest release 4.3.6 and
the OCaml dependencies are now in a tarball of a locally created OPAM
root directory. This way no internet connection is needed during the
build. A convenience target `make opamroot-helper` can help with future
updates.

chrisz@, I would appreciate a look at this approach to handling OPAM
dependencies during the build.

This builds now and I can run the basic hello world program as expected.

I am also including an update to lang/nekovm to 2.4.0 that is what Haxe
4.3.6 expects. It's not used by anything else in ports FWIW. Re-import
of haxe would of course require adjustment to devel/quirks.

ok? comments?

Attachment: haxe-4.3.6.tgz
Description: application/compressed-tar

? CHECK_SYM
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/nekovm/Makefile,v
diff -u -p -r1.5 Makefile
--- Makefile	26 Sep 2023 12:02:02 -0000	1.5
+++ Makefile	19 Dec 2024 18:51:23 -0000
@@ -1,10 +1,11 @@
 COMMENT =	Neko scripting language runtime and virtual machine
 
-V =		2.3.0
-DISTNAME =	v${V:S/./-/g}
+V =		2.4.0
 PKGNAME =	nekovm-${V}
-REVISION =	0
+DIST_TUPLE +=	github HaxeFoundation neko v${V:S/./-/g} .
+
 SHARED_LIBS =	neko	0.0	# 2.3.0
+
 CATEGORIES =	lang
 HOMEPAGE =	https://nekovm.org
 MAINTAINER =	Thomas Frohwein <t...@openbsd.org>
@@ -14,7 +15,6 @@ PERMIT_PACKAGE =	Yes
 
 WANTLIB += c gc m pthread z
 
-SITES =			https://github.com/HaxeFoundation/neko/archive/
 MODULES =		devel/cmake
 BUILD_DEPENDS =		devel/git
 LIB_DEPENDS =		devel/boehm-gc,-main
@@ -30,7 +30,6 @@ CONFIGURE_ARGS =	-DNEKO_JIT_DISABLE=ON \
 			-DWITH_UI=OFF
 
 NO_TEST =		Yes
-WRKDIST =		${WRKDIR}/neko-${V:S/./-/g}
 
 do-gen:
 	${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
Index: distinfo
===================================================================
RCS file: /cvs/ports/lang/nekovm/distinfo,v
diff -u -p -r1.1.1.1 distinfo
--- distinfo	24 Nov 2019 02:59:19 -0000	1.1.1.1
+++ distinfo	19 Dec 2024 18:51:23 -0000
@@ -1,2 +1,2 @@
-SHA256 (v2-3-0.tar.gz) = hQ5+MXva8k7WUu/v+JwcshOAyhnyDmiilshPa61O6ZU=
-SIZE (v2-3-0.tar.gz) = 514044
+SHA256 (HaxeFoundation-neko-v2-4-0.tar.gz) = Iy0DDOJ85kjzs90R453KCmCTRzNrQ5pKWemlwKRlzhU=
+SIZE (HaxeFoundation-neko-v2-4-0.tar.gz) = 530457
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: /cvs/ports/lang/nekovm/patches/patch-CMakeLists_txt,v
diff -u -p -r1.3 patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt	18 Mar 2022 21:19:06 -0000	1.3
+++ patches/patch-CMakeLists_txt	19 Dec 2024 18:51:23 -0000
@@ -1,7 +1,7 @@
 Index: CMakeLists.txt
 --- CMakeLists.txt.orig
 +++ CMakeLists.txt
-@@ -14,6 +14,12 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+@@ -20,6 +20,12 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
    link_directories(/usr/local/lib)
  endif()
  

Reply via email to