# $Id: Portfile 120116 2014-05-16 02:02:23Z jeremyhu@macports.org $

PortSystem              1.0
name                    cctools-headers
version                 855
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  82e2a198ceedd3aae8b22b8455c6d0aacf36705f \
                        sha256  751748ddf32c8ea84c175f32792721fa44424dad6acbf163f84f41e9617dbc58

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.\]+)"
