# -*- 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

PortSystem          1.0

name                wcstools
version             3.9.7
revision            0
license             GPL-2
maintainers         {aronnax @lpsinger} openmaintainer
categories          science
description         Programs for manipulating world coordinate systems (WCSs) in FITS images
long_description    ${description}
homepage            http://tdc-www.harvard.edu/wcstools/
master_sites        http://tdc-www.harvard.edu/software/${name}/

checksums           sha256  525f6970eb818f822db75c1526b3122b1af078affa572dce303de37df5c7b088 \
                    rmd160  ed7e76ce0e707a8d8a4af5a0395c6ea3398a9998 \
                    size    8652114

use_configure       no

build.args-append   -f Makefile.osx

destroot {
    xinstall {*}[glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin
    xinstall {*}[glob ${worksrcpath}/man/man1/*] ${destroot}${prefix}/share/man/man1
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     {wcstools-([0-9]+(\.[0-9]+)*)}
