PortSystem              1.0
PortGroup               xcode 1.0

name                    ihook
set my_name             iHook
version                 1.2.0
categories              aqua
license                 MIT
maintainers             nomaintainer

description             A graphical interface frontend for commandline executables
long_description        iHook is a graphical frontend for any commandline \
                        executable. It gives scripts a pleasant Aqua face, \
                        allows script writers to provide graphical feedback \
                        without having to learn one of the higher APIs \
                        available for Mac OS X.

homepage                http://ihook.sourceforge.net/
master_sites            sourceforge

extract.suffix          -src.tgz

checksums               md5     7d2f3820d17331010b884d0b49cc5e68 \
                        sha1    1173026e5cfdc64f041067935fe8110296d467f1 \
                        rmd160  abc8a288c061336b3546df7a14ef89a8ca95becd

patchfiles              project.pbxproj.patch

post-destroot {
    fs-traverse dir ${destroot} {
        if {[file isdirectory ${dir}]} {
            file attributes ${dir} -permissions u+w
        }
    }
    move ${destroot}${applications_dir}/shookexec \
        ${destroot}${applications_dir}/${my_name}.app/Contents/Resources
}

livecheck.regex         /ihook-(\\d+(?:\\.\\d+)*)-src.tgz