# $Id: Portfile 100601 2012-12-17 18:10:58Z jeremyhu@macports.org $

PortSystem 1.0

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

distname	xcb-proto-${version}
checksums           sha1    a8e71b9a09066870ff12049f45e8bccaaf83fc31 \
                    rmd160  743781a3b84c146e1640a59a1890b727a1f48fe3 \
                    sha256  233d16c7a019235b3092111e7c11429119357eb13754a607b75eea04453121b0
use_bzip2	yes

depends_run     port:libxml2

variant python25 conflicts python26 python27 python31 python32 python33 description {Use python 2.5} {
    depends_run-append      port:python25
    configure.python        ${prefix}/bin/python2.5
}

variant python26 conflicts python25 python27 python31 python32 python33 description {Use python 2.6} {
    depends_run-append      port:python26
    configure.python        ${prefix}/bin/python2.6
}

variant python27 conflicts python25 python26 python31 python32 python33 description {Use python 2.7} {
    depends_run-append      port:python27
    configure.python        ${prefix}/bin/python2.7
}

variant python31 conflicts python25 python26 python27 python32 python33 description {Use python 3.1} {
    depends_run-append      port:python31
    configure.python        ${prefix}/bin/python3.1
}

variant python32 conflicts python25 python26 python27 python31 python33 description {Use python 3.2} {
    depends_run-append      port:python32
    configure.python        ${prefix}/bin/python3.2
}

variant python33 conflicts python25 python26 python27 python31 python32 description {Use python 3.3} {
    depends_run-append      port:python33
    configure.python        ${prefix}/bin/python3.3
}

if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python31] && ![variant_isset python32] && ![variant_isset python33]} {
    default_variants +python27
}

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