# -*- 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-gtfs
set real_name           googletransitdatafeed
version                 1.2.6
license                 Apache-2
platforms               darwin
supported_archs         noarch
maintainers             nomaintainer
description             General Transit Feed Specification library
long_description        \
    This is an effort to offer tools for reading, writing, and converting to \
    and from the General Transit Feed Specification format, to help make \
    public transit information projects more successful for agencies and \
    other interested parties.

homepage                https://code.google.com/p/${real_name}/
master_sites            googlecode:${real_name}
distname                transitfeed-${version}
checksums               md5     cfde6c7b6e2e56798b43c070b56fcc54 \
                        sha1    19e3a9fe1a00d31d50351e63ff966c5b5be16f93 \
                        rmd160  c9deebc45d9be9746fc463c527c15e73c2c1dcc3

python.versions         27

if {${name} ne ${subport}} {
    configure {
        reinplace "s|#!/usr/bin/python.*|#!${prefix}/bin/python${python.branch}|" {*}[glob ${worksrcpath}/transitfeed/*]
    }
}