# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                keepnote
version             0.7.8
categories          office python
license             GPL-2
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         Cross-platform note-taking and organization

long_description    KeepNote is a note taking application that works on \
                    Windows, Linux, and Mac OS X. With KeepNote, you can \
                    store your class notes, to-do lists, research notes, \
                    journal entries, paper outlines, etc. in a simple \
                    notebook hierarchy with rich-text formatting, images, \
                    and more. Using full-text search, you can retrieve any \
                    note for later reference.

homepage            http://keepnote.org/
master_sites        ${homepage}download

checksums           rmd160  4b3868b56ad6dc19136992f86e7b6344934c0ad1 \
                    sha256  b015a21ff22c9bd3788fb03a4824e53c6c9f1f2bafdf13ec1f0e5360c39e135a

python.default_version  27

depends_lib-append  port:py${python.version}-pygtk

post-destroot {
    xinstall -d ${destroot}${prefix}/share/applications/
    xinstall -d ${destroot}${prefix}/share/icons/hicolor/48x48/apps/
    ln -s ${python.prefix}/share/applications/keepnote.desktop ${destroot}${prefix}/share/applications/
    ln -s ${python.prefix}/share/icons/hicolor/48x48/apps/keepnote.png ${destroot}${prefix}/share/icons/hicolor/48x48/apps/
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "Released KeepNote (\[0-9.\]+)"
