# -*- 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 63036 2010-01-24 10:43:40Z jmr@macports.org $

PortSystem      1.0
PortGroup       python26 1.0

name            py26-impressive
version         0.10.2
categories      python graphics
maintainers     openmaintainer takeshi
description     slide presentation tool
long_description \
    Impressive is a program that displays presentation slides.       \
    But unlike OpenOffice.org Impress or other similar applications, \
    it does so with style. Smooth alpha-blended slide transitions    \
    are provided for the sake of eye candy, but in addition to this, \
    Impressive offers some unique tools that are really useful       \
    for presentations.
homepage        http://impressive.sourceforge.net/
platforms       darwin
master_sites    sourceforge:impressive

distname        Impressive-${version}
checksums       md5    492eda5e3e09beb2f6dc997ed94f5349         \
                sha1   636515909f2b2e06bed46162a6f648ef0d348c84 \
                rmd160 44f5d6d7d76f3128f1780caba33432a4866cb1b2

depends_lib     port:python26   \
                port:py26-opengl   \
                port:py26-game     \
                port:py26-pil      \
                port:xpdf        \
                port:ghostscript \
                port:pdftk

patch {
    reinplace "s|env python|env python2.6|" ${worksrcpath}/impressive.py
}
build {}

python.link_binaries no
destroot {
    xinstall -d ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/share/impressive
    xinstall -d ${destroot}${prefix}/share/doc/impressive
    xinstall -m 775 ${worksrcpath}/impressive.py \
                    ${worksrcpath}/demo.pdf \
                    ${destroot}${prefix}/share/impressive
    xinstall -m 644 ${worksrcpath}/impressive.1 \
                    ${destroot}${prefix}/share/man/man1
    xinstall -m 664 ${worksrcpath}/license.txt \
                    ${worksrcpath}/changelog.txt \
                    ${worksrcpath}/impressive.html \
                    ${destroot}${prefix}/share/doc/impressive
    ln -s ${prefix}/share/impressive/impressive.py ${destroot}${prefix}/bin/impressive
}
