# -*- 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 61459 2009-12-11 22:02:13Z snc@macports.org $

PortSystem          1.0

name                Fluid
version             0.9.6
categories          aqua
maintainers         snc openmaintainer
description         create site-specific-browsers to run favorite web apps

long_description    Site Specific Browsers (SSBs) provide a great solution for \
                    your WebApp woes. Using Fluid, you can create SSBs to run \
                    each of your favorite WebApps as a separate Cocoa desktop \
                    application. Fluid gives any WebApp a home on your Mac OS X\
                    desktop complete with Dock icon, standard menu bar, logical\
                    separation from your other web browsing activity, and many,\
                    many other goodies.

platforms           darwin
homepage            http://fluidapp.com
master_sites        ${homepage}/dist/
distname            ${name}_${version}
use_zip             yes

platform darwin 8 {
pre-fetch {
return -code error "\n
    ${name} requires Mac OS X 10.5 or later.\n"
}
}

checksums           md5 29d111176ed9e8111a43610592deac92 \
                    sha1 d4e1425875f3706e8368f96f9980119978f2c8e8 \
                    rmd160 d3eab2f6d61cf7db361666eef428e48df8dcf0ec

worksrcdir          ${name}.app

universal_variant   no

use_configure       no

build {}

destroot {
    move ${worksrcpath}  ${destroot}${applications_dir}
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "Version (\\d+\\.\\d+\\.\\d+)"
