# -*- 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
# some executables are GPL, libs and everything else are public domain
license {public-domain GPL-2+}
maintainers {ryandesign @ryandesign} openmaintainer
XZ utils consist of a few relatively separate submodules: \
* LZMA/XZ encoder/decoder command line tool similar to gzip/bzip2 \
* Scripts to ease grepping, diffing and viewing (lz*grep, lzdiff/lzcmp, lzmore/lzless)
homepage https://tukaani.org/xz/
master_sites sourceforge:project/lzmautils
checksums rmd160 0c5a6ffd47d657fed0c7192f413422e503b79c69 \
sha256 3313fd2a95f43d88e44264e6b015e7d03053e681860b0d5d3f9baca79c57b7bf \
depends_lib port:libiconv port:gettext
configure.args --with-libiconv-prefix=${prefix} --with-libintl-prefix=${prefix}
# document that we always need legacy symlinks now that "lzmautils" refers here
configure.args-append --enable-lzma-links
# the internal "check.h" header conflicts with port check's <check.h>
configure.cppflags -I${worksrcpath}/src/liblzma/check -I${prefix}/include
livecheck.url ${homepage}
livecheck.regex xz-(\[0-9.a-z\]*)${extract.suffix}