# -*- 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
categories sysutils textproc devel
description GNU diff utilities
diffutils contains the GNU diff, diff3, sdiff, and cmp utilities. \
Their features are a superset of the Unix features and they are \
homepage https://www.gnu.org/software/diffutils/
checksums rmd160 55c286ed697eb5987eca7abfc33bdab34c3021fb \
sha256 b3a7a6221c3dc916085f0d205abf6b8e1ba443d4dd965118da364a1dc1cb3a26 \
patchfiles patch-src_system.h.diff
configure.args --program-prefix=g \
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man
set docdir ${prefix}/share/doc/${name}
xinstall -m 0755 -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README THANKS \
xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
livecheck.url https://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)