# -*- 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 90725 2012-03-13 19:34:41Z snc@macports.org $

PortSystem          1.0

name                Fluid
version             1.3
revision            1
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

dist_subdir         ${name}/${version}_1
pre-fetch {
    if {${os.major} < 10} {
        return -code error "\n
            ${name} requires Mac OS X 10.6 or later.\n"
    }
}
supported_archs     x86_64

checksums           rmd160  a3196da3eda053fedc08a4f26299587fb5eac082 \
                    sha256  53c82490ccaad11d6dce17ebb212d32c0881b20506a20512760db2a360f767ca

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+)+)"
