From 95f7683eef501affa66a297a6ad9bcf6072751b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Sun, 25 Jan 2026 03:24:53 +0100 Subject: [PATCH] arturo: new port, version 0.10.0 Arturo is a simple, expressive & portable programming language for efficient scripting. Homepage: https://arturo-lang.io --- lang/arturo/Portfile | 60 ++++++++++++++++++++++++++++++ lang/arturo/files/patch-paths.diff | 29 +++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 lang/arturo/Portfile create mode 100644 lang/arturo/files/patch-paths.diff diff --git a/lang/arturo/Portfile b/lang/arturo/Portfile new file mode 100644 index 00000000000..8cce80d2706 --- /dev/null +++ b/lang/arturo/Portfile @@ -0,0 +1,60 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 + +PortSystem 1.0 +PortGroup github 1.0 +PortGroup openssl 1.0 + +github.setup arturo-lang arturo 0.10.0 v +github.tarball_from archive +revision 0 +categories lang +license MIT +maintainers {@drkameleon gmail.com:yaniszaf} openmaintainer + +description Simple, expressive & portable programming language for efficient scripting + +long_description Arturo is a simple, modern programming language with a focus on \ + simplicity, expressiveness, and portability. It features a clean \ + syntax, powerful metaprogramming capabilities, and minimal dependencies. \ + The language is designed for efficient scripting and supports multiple \ + programming paradigms. + +homepage https://arturo-lang.io + +checksums rmd160 b96a0148bb17de94a1ae5d74aefa4249006461e9 \ + sha256 408646496895753608ad9dc6ddfbfa25921c03c4c7356f2832a9a63f4a7dc351 \ + size 31294342 + +depends_build port:nim \ + path:bin/pkg-config:pkgconfig + +depends_lib port:gmp \ + port:mpfr + +patchfiles patch-paths.diff + +post-patch { + reinplace "s|@@OPENSSL_PREFIX@@|[openssl::install_area]|g" ${worksrcpath}/.config/buildmode.nims + reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/.config/buildmode.nims +} + +supported_archs arm64 x86_64 + +use_configure no + +build { + system -W ${worksrcpath} "./build.nims --log" +} + +destroot { + xinstall -m 755 ${worksrcpath}/bin/arturo ${destroot}${prefix}/bin/ +} + +test.run yes +test.cmd ${prefix}/bin/arturo +test.args --version + +notes " +Arturo has been installed. You can verify the installation by running: + arturo --version +" diff --git a/lang/arturo/files/patch-paths.diff b/lang/arturo/files/patch-paths.diff new file mode 100644 index 00000000000..4938a13a436 --- /dev/null +++ b/lang/arturo/files/patch-paths.diff @@ -0,0 +1,29 @@ +--- .config/buildmode.nims.orig 2026-01-21 17:28:15 ++++ .config/buildmode.nims 2026-01-21 17:30:54 +@@ -21,21 +21,15 @@ + --define:useOpenssl3 + if hostOS == "macosx": + # Headers +- --passC:"-I/opt/homebrew/include" # ARM64 Homebrew +- --passC:"-I/usr/local/include" # Intel Homebrew +- --passC:"-I/opt/local/include" # MacPorts ++ --passC:"-I@@PREFIX@@/include" # MacPorts ++ --passC:"-I@@OPENSSL_PREFIX@@/include" # OpenSSL 3 + + # Library paths +- --passL:"-L/opt/homebrew/lib" # ARM64 Homebrew +- --passL:"-L/usr/local/lib" # Intel Homebrew +- --passL:"-L/opt/local/lib" # MacPorts ++ --passL:"-L@@PREFIX@@/lib" # MacPorts ++ --passL:"-L@@OPENSSL_PREFIX@@/lib" # OpenSSL 3 + + # Runtime search paths +- --passL:"-Wl,-rpath,/opt/homebrew/opt/mpfr/lib" +- --passL:"-Wl,-rpath,/opt/homebrew/opt/gmp/lib" +- --passL:"-Wl,-rpath,/usr/local/opt/mpfr/lib" +- --passL:"-Wl,-rpath,/usr/local/opt/gmp/lib" +- --passL:"-Wl,-rpath,/opt/local/lib" ++ --passL:"-Wl,-rpath,@@PREFIX@@/lib" + + --passL:"-Wl,-headerpad_max_install_names" + --define:ssl \ No newline at end of file