Files

69 lines
2.2 KiB
Tcl
Raw Permalink Normal View History

2024-02-26 19:26:54 -05: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
2025-07-20 13:32:14 -04:00
PortGroup legacysupport 1.1
# dprintf
legacysupport.newest_darwin_requires_legacy 10
2024-02-26 19:26:54 -05:00
name oilshell
2025-11-30 20:14:42 -05:00
version 0.37.0
2024-02-26 19:26:54 -05:00
revision 0
2025-05-07 10:24:05 -04:00
homepage https://oils.pub
2024-02-26 19:26:54 -05:00
description \
Oils is our upgrade path from bash to a better language and runtime.
long_description \
{*}${description} Compared to POSIX shell and bash, Oil is easier to \
learn, write, and debug. It's designed for programmers who know Python, \
JavaScript, or Ruby, but avoid shell. Oil will do everything bash can, \
and more. For example, it will have dynamic types and structured data, \
not just strings.
categories shells
installs_libs no
license {Apache-2 PSF}
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
2025-11-30 20:14:42 -05:00
checksums rmd160 e6868227e5515c7efd193d3d7de9695535e4d5b2 \
sha256 f4d41d20a0523dbcfbd4ba231f82edf25b08d4965d65bc71fcb56666d6743000 \
size 873449
2024-02-26 19:26:54 -05:00
2025-05-07 10:24:05 -04:00
set archivename oils-for-unix
2024-02-26 19:26:54 -05:00
master_sites ${homepage}/download/
2025-05-07 10:24:05 -04:00
distname ${archivename}-${version}
2024-02-26 19:26:54 -05:00
2025-07-20 13:32:14 -04:00
# cpp/stdlib.cc: error: expected unqualified-id before 'sizeof'
patchfiles-append patch-fix-cmath.diff
2024-02-26 19:26:54 -05:00
depends_lib-append port:readline
2025-07-20 13:32:14 -04:00
# cc1plus: error: unrecognized command line option "-std=c++11"
compiler.cxx_standard 2011
2024-02-26 19:26:54 -05:00
configure.args-append \
2025-07-20 13:32:14 -04:00
--cxx-for-configure=${configure.cxx} \
2024-02-26 19:26:54 -05:00
--with-readline
2025-05-07 10:24:05 -04:00
build.cmd _build/oils.sh
build.pre_args {}
2025-07-20 13:32:14 -04:00
build.args --cxx ${configure.cxx}
build.env-append CXXFLAGS=${configure.cxxflags} \
LDFLAGS=${configure.ldflags}
2024-02-26 19:26:54 -05:00
destroot {
2025-05-07 10:24:05 -04:00
foreach oilbin {oils-for-unix osh ysh} {
2025-07-20 13:32:14 -04:00
copy ${worksrcpath}/_bin/${configure.cxx}-opt-sh/${oilbin} \
2025-05-07 10:24:05 -04:00
${destroot}${prefix}/bin/
2024-02-26 19:26:54 -05:00
}
xinstall -d ${destroot}${prefix}/share/man/man1
xinstall -m 0444 \
${worksrcpath}/doc/osh.1 ${destroot}${prefix}/share/man/man1/
}
2024-03-15 21:15:45 -04:00
2025-05-07 10:24:05 -04:00
livecheck.regex "${archivename}-(\[0-9.\]+)${extract.suffix}"