2021-05-28 19:40:12 +00:00
|
|
|
# -*- 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
|
2023-10-28 00:48:44 +08:00
|
|
|
PortGroup luarocks 1.0
|
2021-11-29 07:30:37 -07:00
|
|
|
PortGroup select 1.0
|
2021-05-28 19:40:12 +00:00
|
|
|
|
2023-10-28 01:23:14 +08:00
|
|
|
if {${subport} ne "lua-fennel-docs"} {
|
|
|
|
|
luarocks.branches 5.1 5.2 5.3 5.4
|
|
|
|
|
}
|
|
|
|
|
luarocks.setup fennel 1.3.1-1
|
2021-05-28 19:40:12 +00:00
|
|
|
revision 0
|
|
|
|
|
license MIT
|
|
|
|
|
categories lua lang
|
2023-10-28 00:48:44 +08:00
|
|
|
supported_archs noarch
|
|
|
|
|
platforms any
|
2021-05-28 19:40:12 +00:00
|
|
|
maintainers {l2dy @l2dy} openmaintainer
|
|
|
|
|
|
|
|
|
|
description a lisp that compiles to Lua
|
2022-12-04 22:06:20 +11:00
|
|
|
long_description Fennel is {*}${description}.
|
2021-05-28 19:40:12 +00:00
|
|
|
|
|
|
|
|
homepage https://fennel-lang.org/
|
|
|
|
|
|
2023-10-28 01:23:14 +08:00
|
|
|
checksums rmd160 f587c235991ee959d05978a8c3632ae528ecb5c2 \
|
|
|
|
|
sha256 21f02f58793b2214284c018d43b4fb0460d70b25f4a025a290f3cc230972389e \
|
|
|
|
|
size 231142
|
2021-11-29 07:30:37 -07:00
|
|
|
|
2023-10-28 01:23:14 +08:00
|
|
|
subport lua-fennel-docs {
|
|
|
|
|
depends_lib
|
|
|
|
|
|
|
|
|
|
build.cmd ${luarocks.bin}
|
|
|
|
|
build.pre_args --lua-version ${luarocks.branch} --tree ${destroot}${prefix}
|
|
|
|
|
build.args unpack
|
|
|
|
|
build.post_args ${worksrcpath}/${luarocks.distname}.src.rock
|
|
|
|
|
build {
|
|
|
|
|
command_exec build
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
destroot {
|
|
|
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/${luarocks.distname}/fennel-*/*.1] ${destroot}${prefix}/share/man/man1
|
|
|
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/${luarocks.distname}/fennel-*/*.3] ${destroot}${prefix}/share/man/man3
|
|
|
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/${luarocks.distname}/fennel-*/*.5] ${destroot}${prefix}/share/man/man5
|
|
|
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/${luarocks.distname}/fennel-*/*.7] ${destroot}${prefix}/share/man/man7
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if {${subport} ne ${name} && ${subport} ne "lua-fennel-docs"} {
|
2021-11-29 07:30:37 -07:00
|
|
|
select.entries [list ${luarocks.module} ${subport} ${subport}]
|
|
|
|
|
|
|
|
|
|
depends_run-append \
|
2023-10-28 01:23:14 +08:00
|
|
|
port:fennel_select \
|
|
|
|
|
port:lua-fennel-docs
|
2021-11-29 07:30:37 -07:00
|
|
|
|
|
|
|
|
notes "
|
|
|
|
|
To make this the default fennel (i.e., the version run by\
|
|
|
|
|
the 'fennel' command), run:
|
|
|
|
|
|
|
|
|
|
sudo port select --set fennel ${subport}
|
|
|
|
|
"
|
|
|
|
|
}
|