<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/57a587e353720a3f5147eb46589d438830fc86a7">https://github.com/macports/macports-ports/commit/57a587e353720a3f5147eb46589d438830fc86a7</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 57a587e3537 py-jfricas: new port (version 1.0.0)
</span>57a587e3537 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 57a587e353720a3f5147eb46589d438830fc86a7
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Wed May 31 01:30:22 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> py-jfricas: new port (version 1.0.0)
</span>---
python/py-jfricas/Portfile | 57 +++++++++++++++++++++++++++++++++++++
python/py-jfricas/files/kernel.json | 12 ++++++++
2 files changed, 69 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-jfricas/Portfile b/python/py-jfricas/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..038eb0e8f4a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-jfricas/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,57 @@
</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 python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-jfricas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.0.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append math
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@catap korins.ky:kirill} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description FriCAS Jupyter Kernel.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://github.com/fricas/jfricas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 5b532a21160c063436c3e161f7300ee541aee17e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 663f42c0b11077a6195933a175cbde696842c9abf263c0cffdd889ed87db84be \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 12168
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 37 38 39 310 311
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|^install_kernel_spec()||" ${worksrcpath}/setup.py
</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;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fricas \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:cl-hunchentoot \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-jupyter \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-requests
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set dst ${destroot}${python.prefix}/share/jupyter/kernels/fricas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${dst}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${filespath}/kernel.json ${dst}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|%%PYTHON_PREFIX%%|${python.prefix}|g" ${dst}/kernel.json
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by some reason it is installed with permissions 0640 and 0750, fix it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse item ${destroot}${python.prefix} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file isfile ${item}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${item} -permissions 0644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${item} -permissions 0755
</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;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-jfricas/files/kernel.json b/python/py-jfricas/files/kernel.json
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..04e4b13ed31
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-jfricas/files/kernel.json
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "argv": [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "%%PYTHON_PREFIX%%/Resources/Python.app/Contents/MacOS/Python",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-m",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "jfricas.fricaskernel",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-f",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "{connection_file}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "display_name": "FriCAS",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "language": "spad",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "name": "FriCAS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>