# $Id: Portfile 66151 2010-04-06 06:54:50Z jmr@macports.org $

PortSystem 1.0

name		xorg-xcb-proto
version		1.6
categories	x11 devel
maintainers	jeremyhu openmaintainer
description	X.org xcb-proto
homepage	http://xcb.freedesktop.org
platforms	darwin macosx
long_description XML-XCB protocol descriptions
master_sites	 ${homepage}/dist/

distname	xcb-proto-${version}
checksums           md5     04313e1d914b44d0e457f6c494fc178b \
                    sha1    e82418557c7f59f29da9ec18e0906d6d78e3a164 \
                    rmd160  61ffea8c3ab4b745f04eccc10c64f7f1c356692c
use_bzip2	yes

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

depends_run     port:libxml2

variant python25 conflicts python26 description {Use python 2.5 for xcbgen} {
    depends_run-append      port:python25
    configure.python        ${prefix}/bin/python2.5
}

variant python26 conflicts python25 description {Use python 2.6 for xcbgen} {
    depends_run-append      port:python26
    configure.python        ${prefix}/bin/python2.6
    destroot.target-append  pythondir=${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages
}

# Default to 2.6 since 2.5 fails universal for me on Leopard... Ticket #17501
if {![variant_isset python25]} {
    default_variants +python26
}

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