<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ebf614678b4a89ee12bab1ad322d2e798d824105">https://github.com/macports/macports-ports/commit/ebf614678b4a89ee12bab1ad322d2e798d824105</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new ebf614678b4 loli: new port in lang
</span>ebf614678b4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ebf614678b4a89ee12bab1ad322d2e798d824105
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Tue Jun 13 13:54:28 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> loli: new port in lang
</span>---
lang/loli/Portfile | 55 +++++++++++++++++++++++++++++++++++++++++++
lang/loli/files/loli-fix.diff | 42 +++++++++++++++++++++++++++++++++
2 files changed, 97 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/loli/Portfile b/lang/loli/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..43a483325ef
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/loli/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,55 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup LoLi-Lang LoLi 9306a531a42df9e81b75de4bc278aa8dc9c22a3f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name loli
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2016.07.01
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description LoLi is another approach to System F-sub in a LISPy way
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 0a3044fd065d652d849788d218ae7c9ddf872081 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 486f93b9b022048a22c38610f2c4766837ec121bbb2b16a920e6f5753dc2ee75 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1234615
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.dir ${worksrcpath}/src/LoLi2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles loli-fix.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,@CC@,${configure.cxx},g" ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,@ARCHFLAGS@,[get_canonical_archflags cc],g" ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${build.dir}/currentc ${build.dir}/test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target CURRENTC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${build.dir}/currentc ${build.dir}/loli
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target CURRENTG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${build.dir}/currentg ${build.dir}/loli
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${build.dir}/loli ${destroot}${prefix}/bin/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/include/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach h [glob ${build.dir}/include/*] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file isfile ${h}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${h} ${destroot}${prefix}/include/${name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# FIXME: at least on ppc EVAL does not seem to work as intended:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/LoLi-Lang/LoLi/issues/14
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/loli/files/loli-fix.diff b/lang/loli/files/loli-fix.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cea271e08c6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/loli/files/loli-fix.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,42 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/LoLi2/include/loli_obj.h.orig 2016-07-01 10:02:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/LoLi2/include/loli_obj.h 2023-01-26 22:33:21.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24,6 +24,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <typeinfo>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iostream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++typedef unsigned long ulong;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //Macros
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define lnum(x) ((loliNum*)x)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define lint(x) ((loliInt*)x)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/LoLi2/Makefile.orig 2016-07-01 10:02:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/LoLi2/Makefile 2023-01-26 22:31:56.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,7 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CC = g++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CLANG = clang++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGSG = -std=c++11 -stdlib=libstdc++ -Wall -Og -Wextra -g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGSC = -std=c++11 -stdlib=libstdc++ -Wall -O0 -Wextra -g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC = @CXX@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGSG = @ARCHFLAGS@ -std=gnu++11 -Wall -Og -Wextra -g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGSC = @ARCHFLAGS@ -std=c++11 -Wall -O0 -Wextra -g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HEADERS = \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include/loli_obj.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,13 +44,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ loli2test.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CURRENTG:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC) $(CFLAGSG) -o currentg $(MAIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(CFLAGSG) -o currentg $(MAIN) -lstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CURRENTC:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CLANG) $(CFLAGSC) -o currentc $(MAIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(CFLAGSC) -o currentc $(MAIN) -lc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TEST: $(HEADERS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CLANG) $(CFLAGSC) $(GCINCLUDE) $(GC) -o test $(TEST)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(CFLAGSC) $(GCINCLUDE) $(GC) -o test $(TEST)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ .PHONY: clean
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ clean:
</span></pre><pre style='margin:0'>
</pre>