# -*- 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
PortGroup legacysupport 1.0
maintainers {khindenburg @kurthindenburg} openmaintainer
description a collection of the unix tools that nobody thought \
to write thirty years ago.
long_description moreutils includes the following utilities: \
\n- chronic: runs a command quietly unless it fails \
\n- combine: combine the lines in two files using boolean operations \
\n- errno: look up errno names and descriptions \
\n- ifne: run a program if the standard input is not empty \
\n- isutf8: check if a file or standard input is utf-8 \
\n- lckdo: run a program with a lock held. \
\n- mispipe: pipe two commands, returning the exit status of the first \
\n- pee: tee standard input to pipes \
\n- sponge: soak up standard input and write to a file \
\n- ts: timestamp standard input \
\n- vidir: edit a directory in your text editor \
\n- vipe: insert a text editor into a pipe \
\n- zrun: automatically uncompress arguments to command
homepage http://joeyh.name/code/moreutils
checksums rmd160 056a6e43e2fb5f1d9474145853bf92a067f0e304 \
sha256 4fc86d56a8a276a0cec71cdabda5ccca50c7a44a2a1ccd888476741d1ce6831d \
# set pbranch to desired perl version
depends_run port:perl${pbranch} \
port:p${pbranch}-ipc-run \
port:p${pbranch}-timedate \
port:p${pbranch}-time-duration
patchfiles patch-Makefile.diff \
patch-is_utf8-Makefile.diff
reinplace "s|/usr/bin/perl|${prefix}/bin/perl${pbranch}|" \
${worksrcpath}/vidir ${worksrcpath}/vipe \
${worksrcpath}/ts ${worksrcpath}/combine \
${worksrcpath}/zrun ${worksrcpath}/chronic
build.args-append CC=${configure.cc} \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \