From bbaa432d77f7cb858e0166b58edd0cf7a7f744c3 Mon Sep 17 00:00:00 2001 From: Herby Gillot Date: Tue, 28 Apr 2026 18:19:55 -0400 Subject: [PATCH] cjit: new port (v1.1.2) --- lang/cjit/Portfile | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 lang/cjit/Portfile diff --git a/lang/cjit/Portfile b/lang/cjit/Portfile new file mode 100644 index 00000000000..2400ea2d9b5 --- /dev/null +++ b/lang/cjit/Portfile @@ -0,0 +1,51 @@ +# -*- 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 makefile 1.0 + +github.setup dyne cjit 1.1.2 v +github.tarball_from archive +revision 0 + +homepage https://dyne.org/cjit/ + +description Tiny and portable C compiler + +long_description \ + CJIT is a TinyCC-powered C runner and lightweight compiler frontend. \ + It can: compile and execute one or more C inputs directly from memory, \ + compile one source file to an object, and build an executable without \ + running it. CJIT is designed for fast iteration, scripting-style \ + execution, and small deployment footprints. + +categories lang devel +license {GPL-3 MIT BSD} +maintainers {gmail.com:herby.gillot @herbygillot} \ + openmaintainer + +checksums rmd160 dd8d68f3f0a066924279acaeb5e2fff3ecdf37b9 \ + sha256 be76e54bc3d14dc703691c61ad68da5015c7fb19cf9da59182bd0e39143c558a \ + size 26176393 \ + +use_parallel_build no + +makefile.has_destdir \ + yes + +patch { + reinplace -E {s|@cp -ra|@cp -r|} ${worksrcpath}/GNUmakefile +} + +post-build { + file rename -force ${worksrcpath}/${name}.command ${worksrcpath}/${name} +} + +platform darwin { + build.target apple-osx +} + +platform linux { + build.target linux +}