# -*- 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 muniversal 1.0
name yash
version 2.47
categories shells
platforms darwin
license GPL-2+
maintainers {larryv @larryv}
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 http://yash.osdn.jp
depends_lib port:gettext port:ncurses
# This number changes with each release.
master_sites osdn:${name}/69353
use_xz yes
checksums rmd160 9b89714a687d1974bcb392eb7b08a571893223b1 \
sha256 931f2e7451d8b1eca2a98caeef7eda0527d96376f9f2c9bec90bc5938e39992e
patchfiles respect-destdir.patch
# 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 README.ja 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'
"
# A source with more structure would be nice.
livecheck.type regex
livecheck.url https://osdn.jp/projects/${name}/releases/rss
livecheck.regex {(\d+(?:\.\d+)+)</title>}