# $Id: Portfile 68417 2010-06-03 03:50:02Z rmsfisher@macports.org $

PortSystem 1.0

name		xorg-xproto
version		7.0.17
categories	x11 devel
maintainers	jeremyhu openmaintainer
description	X.org xproto
homepage	http://www.x.org
platforms	darwin
long_description The X.org xproto package contains miscellaneous X11 prototype headers.
master_sites 	http://xorg.freedesktop.org/archive/individual/proto

distname	xproto-${version}
use_bzip2	yes

checksums           md5     74abb8fb91af66f35873b1f444731220 \
                    sha1    9821548b24f812524bcf4db61a773997fece2447 \
                    rmd160  50cfe7897939a7430ad128007468553183360ff4

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog \
        ${destroot}${docdir}
}

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

livecheck.type  regex
livecheck.url   ${master_sites}?C=M&O=D
livecheck.regex xproto-(\\d+(?:\\.\\d+)*)
