Files

69 lines
2.2 KiB
Tcl

# -*- 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 legacysupport 1.1
# dprintf
legacysupport.newest_darwin_requires_legacy 10
name oilshell
version 0.37.0
revision 0
homepage https://oils.pub
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
checksums rmd160 e6868227e5515c7efd193d3d7de9695535e4d5b2 \
sha256 f4d41d20a0523dbcfbd4ba231f82edf25b08d4965d65bc71fcb56666d6743000 \
size 873449
set archivename oils-for-unix
master_sites ${homepage}/download/
distname ${archivename}-${version}
# cpp/stdlib.cc: error: expected unqualified-id before 'sizeof'
patchfiles-append patch-fix-cmath.diff
depends_lib-append port:readline
# cc1plus: error: unrecognized command line option "-std=c++11"
compiler.cxx_standard 2011
configure.args-append \
--cxx-for-configure=${configure.cxx} \
--with-readline
build.cmd _build/oils.sh
build.pre_args {}
build.args --cxx ${configure.cxx}
build.env-append CXXFLAGS=${configure.cxxflags} \
LDFLAGS=${configure.ldflags}
destroot {
foreach oilbin {oils-for-unix osh ysh} {
copy ${worksrcpath}/_bin/${configure.cxx}-opt-sh/${oilbin} \
${destroot}${prefix}/bin/
}
xinstall -d ${destroot}${prefix}/share/man/man1
xinstall -m 0444 \
${worksrcpath}/doc/osh.1 ${destroot}${prefix}/share/man/man1/
}
livecheck.regex "${archivename}-(\[0-9.\]+)${extract.suffix}"