# $Id$ PortSystem 1.0 PortGroup python 1.0 PortGroup app 1.0 name zim version 0.56 platforms darwin categories editors maintainers ualberta.ca:burkhard license GPLv2 description Personal desktop wiki long_description \ Zim is a graphical text editor used to maintain a collection of wiki pages. \ Each page can contain links to other pages, simple formatting and images. \ Pages are stored in a folder structure, like in an outliner, and can have \ attachments. Creating a new page is as easy as linking to a nonexistent \ page. All data is stored in plain text files with wiki formatting. Various \ plugins provide additional functionality, like a task list manager, an \ equation editor, a tray icon, and support for version control. homepage http://zim-wiki.org master_sites ${homepage}/downloads checksums sha256 a4708a0e1f63a4b51ace7460d9324dc806b5b0221b51c1c821a24fdf5deaf1da use_configure no build {} set app.icon ${filespath}/zim.png set app.executable ${filespath}/zim-app python.link_binaries no set python.bindir "" variant python27 conflicts python26 description {Configure to use Python version 2.7} { python.default_version 27 set python.bindir ${python.prefix}/bin depends_lib-append port:py27-gobject \ port:py27-gtk \ port:py27-xdg destroot.destdir-append --install-data=${prefix} \ --skip-xdg-cmd } variant python26 conflicts python27 description {Configure to use Python version 2.6} { python.default_version 26 set python.bindir ${python.prefix}/bin depends_lib-append port:py26-gobject \ port:py26-gtk \ port:py26-xdg destroot.destdir-append --install-data=${prefix} \ --skip-xdg-cmd } if {![variant_isset python26] && ![variant_isset python27]} { default_variants +python27 } pre-destroot { xinstall -m 755 ${filespath}/zim ${destroot}${prefix}/bin reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/zim reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${destroot}${prefix}/bin/zim reinplace "s|__PREFIX__|${prefix}|g" ${filespath}/zim-app reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${filespath}/zim-app } post-activate { exec update-desktop-database exec update-mime-database ${destroot}${prefix}/share/mime 2> /dev/null } universal_variant no