# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       python 1.0

name            py-voeventlib
set my_name     VOEventLib
version         0.3
categories      python science devel
platforms       {darwin any}
supported_archs noarch
maintainers     nomaintainer

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    https://software.igwn.org/lscsoft/source/
#master_sites    ${homepage}

checksums       rmd160 20a8f565ce9b71621e949aea00750b78998a0481 \
                sha256 a08d4c4a4918cc47d15c2bab60a7913162e7e309420297fbfcc1f0abd9765bec

python.versions 27

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

# disable livecheck as project page is currently down
livecheck.type  none
#if {${name} eq ${subport}} {
#  livecheck.type  regex
#  livecheck.url   ${homepage}
#  livecheck.regex {version (\d+(?:\.\d+)*)}
#} else {
#  livecheck.type  none
#}
