# $Id: Portfile 106465 2013-05-27 18:08:56Z jeremyhu@macports.org $

PortSystem              1.0
name                    cctools-headers
version                 839
categories              devel
platforms               darwin
maintainers             jeremyhu openmaintainer
license                 APSL-2
description             Headers for compiler on Mac OS X and Darwin
long_description        A set of essential headers for compiler on Mac OS X \
                        and Darwin. Similar to binutils on other platforms.

homepage                http://opensource.apple.com/source/cctools/
master_sites            http://opensource.apple.com/tarballs/cctools/

distname                cctools-${version}

checksums               rmd160  4f502f686b59a9788099e6ff3c1d4c8182053e82 \
                        sha256  b39b6354a000d876effb72919ff4826735616e383b2b35cc273f09c3ff66ce4c

supported_archs         noarch
universal_variant       no
use_configure           no
build {}

destroot.args           DSTROOT=${destroot}${prefix} RC_ProjectSourceVersion=${version}
destroot.target         installhdrs

post-destroot {
    file rename -force ${destroot}${prefix}/usr/include ${destroot}${prefix}/
    file delete -force ${destroot}${prefix}/usr
}

livecheck.type          regex
livecheck.regex         "cctools-(\[\\d.\]+)"
