# -*- 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
# $Id: Portfile 68617 2010-06-08 07:14:15Z jmr@macports.org $

PortSystem          1.0
PortGroup  python26 1.0

name                pyfa
version             0.9
categories          games python
platforms           darwin
maintainers         gmail.com:yacoob
description         Python fitting assistant for EVE-Online
long_description    pyfa is the Python Fitting Assistant, a standalone \
                    application to create ship fittings for the \
                    EVE-Online SciFi MMORPG.
homepage            http://pyfa.sourceforge.net/
platforms           darwin
depends_run         port:py26-gtk

master_sites        sourceforge
distname            ${name}-${version}-src
checksums           md5     63779fc6fba58c54284426d9c0a11dfd \
                    sha1    04314374e96d3b859dc91633e67fe86e626fa6ad \

worksrcdir          ${name}
dist_subdir         ${name}

build { }

set python_path         ${python.pkgd}/${name}
set python_target_path  ${destroot}${python_path}

python.link_binaries no
destroot {
    xinstall -d -m 755 ${python_target_path}
    eval copy [glob ${worksrcpath}/*] ${python_target_path}
    ln -s ${python_path}/launch.py ${destroot}${prefix}/bin/pyfa
    ln -s ${python_path}/downloadData.py ${destroot}${prefix}/bin/pyfa-download-data
}

livecheck.url       http://sourceforge.net/api/file/index/project-id/270992/rss
livecheck.regex     ${name}-(\[a-z0-9\.\]+)-src.tar.gz
