Files

65 lines
2.0 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
# Using ar(1) with universal objects doesn't work so well.
PortGroup github 1.0
PortGroup muniversal 1.0
github.setup magicant yash 2.58.1
github.tarball_from releases
revision 0
categories shells
installs_libs no
license GPL-2+
maintainers {larryv @larryv} \
openmaintainer
description Yet Another Shell
long_description Yet another shell (yash) is a POSIX-compliant \
command line shell, featuring more strict POSIX \
compliance than those of other shells, as well as \
powerful command line editing.
homepage https://magicant.github.io/${name}
depends_build-append \
port:asciidoc
depends_lib-append port:gettext \
port:ncurses
use_xz yes
checksums rmd160 3e47138ae2d5ae2fddb6e02b5203bf22bd14838b \
sha256 7674ece98dc77bcc753db49c4311c30532f981682205f9047f20213a3a6755bb \
size 784816
patchfiles respect-destdir.patch
configure.env-append A2X=${prefix}/bin/a2x
# Some older compilers (e.g., gcc-4.2) default to gnu89.
configure.cflags-append -std=c99
# The configure script doesn't recognize "--disable-dependency-tracking".
configure.universal_args
test.run yes
destroot.target-append install-html
post-destroot {
xinstall -m 0644 -W ${worksrcpath} \
COPYING NEWS NEWS.ja README.md README.ja.md THANKS \
${destroot}${prefix}/share/doc/${name}
}
notes "
To set MacPorts' ${name} as default login shell, run:
sudo chpass -s '${prefix}/bin/${name}' \$USER
To be able to switch default shells to or from ${name} without superuser\
privileges, add it to /etc/shells:
sudo sh -c 'echo ${prefix}/bin/${name} >>/etc/shells'
"