# $Id: Portfile 100402 2012-12-10 22:53:09Z ram@macports.org $

PortSystem      1.0
PortGroup       python 1.0

name            py-voeventlib
set my_name     VOEventLib
version         0.3
categories      python science devel
platforms       darwin
supported_archs noarch
maintainers     ram

description     Reference implementation and parser for VOEvent2
long_description \
  The reference implementation, and parser, for the VOEvent2 XML \
  specification \[International Virtual Observatory Alliance \
  \(IVOA\)\], which is a standardized language used to report \
  observations of astronomical events.

distname        ${my_name}-${version}
homepage        http://lib.skyalert.org/VOEventLib/
master_sites    ${homepage}

checksums       rmd160 20a8f565ce9b71621e949aea00750b78998a0481 \
                sha256 a08d4c4a4918cc47d15c2bab60a7913162e7e309420297fbfcc1f0abd9765bec

python.versions 24 25 26 27

if {${subport} != ${name}} {
  patchfiles    patch-fix_version.diff
  depends_lib-append port:py${python.version}-lxml
}

if {${name} == ${subport}} {
  livecheck.type  regex
  livecheck.url   ${homepage}
  livecheck.regex {version (\d+(?:\.\d+)*)}
} else {
  livecheck.type  none
}
