# -*- 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
# $Id: Portfile 108285 2013-07-17 22:37:30Z aronnax@macports.org $

PortSystem          1.0

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

checksums           sha1    412d22938b05110eb86f7b01a874c17447ad2f19 \
                    rmd160  f9844132424fd0a6c0b797bd2edb91669511440d

use_configure       no

build.args-append   -f Makefile.osx

destroot {
    xinstall -d ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/man/man1
    eval xinstall [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin
    eval xinstall [glob ${worksrcpath}/man/man1/*] ${destroot}${prefix}/man/man1
}

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