# -*- 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 88664 2012-01-07 10:58:06Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                keepnote
version             0.7.7
categories          office python
license             GPL-2
platforms           darwin
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
distname            keepnote-${version}

checksums           rmd160  6a1b8eb2dfeb9beccc41fc3a5a5d13d9f1ad4bba \
                    sha256  17577738199220f3b92e1dadaa71db806365655dc0c04194909bc481b08abb74

depends_lib         port:py27-gtk

post-destroot {
    xinstall -d ${destroot}${prefix}/share/applications/
    xinstall -d ${destroot}${prefix}/share/icons/hicolor/48x48/apps/
    ln -s ${python.prefix}/bin/keepnote ${destroot}${prefix}/bin/
    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     "<a href=\"keepnote-(\\d+\\.\\d+)"
