# -*- 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: $

PortSystem          1.0

name                pyfa
version             0.7
categories          games
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


default_variants    +stable

variant stable conflicts dev description {Currently released stable version} {
    master_sites        sourceforge:pyfa
    distfiles           ${name}-${version}-src.tar.gz

    checksums           md5 bed794605fa9f3bc1619cf06ff703148
}

variant dev conflicts stable description {Current repository content} {
    fetch.type          git
    git.url             git://pyfa.git.sourceforge.net/gitroot/pyfa/pyfa
    version             git
}

worksrcdir          ${name}
use_configure       no

build { }

set python_path         ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/${name}
set python_target_path  ${destroot}/${python_path}

destroot {
    xinstall -d -m 755 ${python_target_path}
    eval file 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

