# -*- 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 59024 2009-10-08 17:05:54Z devans@macports.org $

PortSystem      1.0

name            jessyink
version         1.3.1
categories      graphics
maintainers     devans
platforms       darwin
homepage        http://code.google.com/p/${name}/
master_sites    googlecode

use_zip         yes

set gname       JessyInk
set gvers       [regsub -all "\\." ${version} "_"]

distname        ${gname}_${gvers}

description \
    JessyInk is a JavaScript that turns a layered Inkscape SVG image into a presentation.

long_description \
    JessyInk is a JavaScript that can be incorporated into an Inkscape SVG image containing \
    several layers. Each layer will be converted into one slide of a presentation. Current \
    features include: slide transitions, effects, an index sheet, a master slide and auto-texts \
    like slide title, slide number and number of slides.

universal_variant  no

checksums       md5     922afce466348bec33f81aab6805b2e2 \
                sha1    51265b8eea0a2e0cbefca58deeb53a66a631a8ff \
                rmd160  680aa8dbf3d7e276982acace388c7fdc6f7df769

depends_lib     path:bin/inkscape:inkscape

patchfiles      patch-inkscapeExtensions-jessyInk_autoTexts.py.diff \
                patch-inkscapeExtensions-jessyInk_masterSlide.py.diff \
                patch-inkscapeExtensions-jessyInk_effects.py.diff \
                patch-inkscapeExtensions-jessyInk_transitions.py.diff \
                patch-inkscapeExtensions-jessyInk_install.py.diff \
                patch-inkscapeExtensions-jessyInk_uninstall.py.diff

use_configure   no

build           {}

destroot {
                xinstall -d ${destroot}${prefix}/share/doc/${name}
                xinstall -d ${destroot}${prefix}/share/inkscape/extensions
                xinstall -m 644 -W ${worksrcpath} README.txt gpl.txt ${destroot}${prefix}/share/doc/${name}
                eval xinstall -m 644 [glob -directory ${worksrcpath}/inkscapeExtensions *.js *.inx] ${destroot}${prefix}/share/inkscape/extensions
                eval xinstall -m 755 [glob -directory ${worksrcpath}/inkscapeExtensions *.py] ${destroot}${prefix}/share/inkscape/extensions
}

post-activate {
               ui_msg "

Please see the JessyInk wiki at http://code.google.com/p/jessyink/ for detailed information on using JessyInk.

"
}
livecheck.version ${gvers}
livecheck.regex "${gname}_(\\d+(?:_\\d+)*)${extract.suffix}"
