# $Id: Portfile 87333 2011-11-17 08:27:04Z jmr@macports.org $

PortSystem        1.0
PortGroup         python 1.0

name              py-dap
version           2.2.6.7
categories        python
platforms         darwin
maintainers       ram openmaintainer

description       Python implementation of the Data Access Protocol
long_description  A scientific protocol for data access developed by the \
  OPeNDAP team (http://opendap.org). This implementation is developed from \
  scratch, following the latest specification of the protocol (DAP 2.0 \
  Draft Community Standard 2005/04/27).

homepage          http://pydap.org/
master_sites      http://pypi.python.org/packages/source/d/dap/
distname          dap-${version}

python.versions   24 25 26 27

checksums         md5 3c66004a63eec7ecc9e471a29f4ccc8a \
                  sha1 2d1d02997da79f42330406efb8b45c819f77744b \
                  rmd160 acd38d6c66b14660b09696a6405a4aab6ed6fa9b

universal_variant no

if {${name} == ${subport}} {
  livecheck.type    regex
  livecheck.url     http://pypi.python.org/pypi/dap/
  livecheck.regex   {dap (\d+(?:\.\d+)*)}
} else {
  depends_lib-append port:py${python.version}-distribute \
                     port:py${python.version}-httplib2
  patchfiles        patch-egg_namespace.diff
  livecheck.type    none
}
