[120945] trunk/dports/editors/zim

mf2k at macports.org mf2k at macports.org
Thu Jun 12 07:06:07 PDT 2014


Revision: 120945
          https://trac.macports.org/changeset/120945
Author:   mf2k at macports.org
Date:     2014-06-12 07:06:07 -0700 (Thu, 12 Jun 2014)
Log Message:
-----------
zim: Update to version 0.60. Add python variants. (#26074)

Modified Paths:
--------------
    trunk/dports/editors/zim/Portfile

Added Paths:
-----------
    trunk/dports/editors/zim/files/
    trunk/dports/editors/zim/files/zim
    trunk/dports/editors/zim/files/zim-app

Modified: trunk/dports/editors/zim/Portfile
===================================================================
--- trunk/dports/editors/zim/Portfile	2014-06-12 13:04:54 UTC (rev 120944)
+++ trunk/dports/editors/zim/Portfile	2014-06-12 14:06:07 UTC (rev 120945)
@@ -1,36 +1,78 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           python 1.0
+PortGroup           app 1.0
 
 name                zim
-version             0.28
-revision            1
+version             0.60
+platforms           darwin
 categories          editors
-license             {Artistic-1 GPL}
-maintainers         nomaintainer
-description         Desktop-based wiki
+maintainers         gmail.com:gabriel.ben.jamin
+license             GPL-2
+
+description         Personal desktop wiki
 long_description \
-   Zim is a WYSIWYG text editor written in Gtk2-Perl. It aims to bring the \
-   concept of a wiki to your desktop. Every page is saved as a text file \
-   with wiki markup. Pages can contain links to other pages, and are saved \
-   automatically. Creating a new page is as easy as linking to a \
-   non-existing page. This tool is intended to keep track of TODO lists or \
-   to serve as a personal scratch book. But it will also serve you when \
-   writing longer and more complicated documents.
+    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.
 
-platforms           darwin
-supported_archs     noarch
-
-homepage            http://www.zim-wiki.org
+homepage            http://zim-wiki.org
 master_sites        ${homepage}/downloads/
-distname            Zim-${version}
+distname            zim-${version}
 
-checksums           md5     fce152562b57d4753edfcdc635a26e42 \
-                    sha1    c0d1d5ad956ee682f01ecbd89009eb9f0852f34c \
-                    rmd160  b6ecc7c6f094670754b4219e7506edefd00b2ca1
+checksums           rmd160  896facd152cf7403479a2307efe0763d9d2c37fe \
+                    sha256  1093f7bf0051eda8eaad33f037b03df66b30c24da275d59cedbf8f792011196b
 
-depends_lib         port:p5.12-gtk2 port:p5.12-module-build port:p5.12-file-mimeinfo \
-                    port:p5.12-file-basedir port:p5.12-file-desktopentry
+use_configure       no
+build               {}
 
-configure.cmd       ${prefix}/bin/perl5.12
-configure.pre_args  ./Makefile.PL
+set app.icon        icons/zim48.png
+set app.executable  ${workpath}/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-pygtk \
+                        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
+    file copy ${filespath}/zim-app ${workpath}/zim-app
+    reinplace "s|__PREFIX__|${prefix}|g" ${workpath}/zim-app
+    reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${workpath}/zim-app
+}
+
+post-activate {
+    exec update-desktop-database
+    exec update-mime-database ${destroot}${prefix}/share/mime 2> /dev/null
+}
+
+universal_variant   no

Added: trunk/dports/editors/zim/files/zim
===================================================================
--- trunk/dports/editors/zim/files/zim	                        (rev 0)
+++ trunk/dports/editors/zim/files/zim	2014-06-12 14:06:07 UTC (rev 120945)
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+XDG_DATA_DIRS=__PREFIX__/share:$XDG_DATA_DIRS __PYTHON_BINDIR__/zim $@

Added: trunk/dports/editors/zim/files/zim-app
===================================================================
--- trunk/dports/editors/zim/files/zim-app	                        (rev 0)
+++ trunk/dports/editors/zim/files/zim-app	2014-06-12 14:06:07 UTC (rev 120945)
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+XDG_DATA_DIRS=__PREFIX__/share:$XDG_DATA_DIRS __PYTHON_BINDIR__/zim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140612/95e3deff/attachment.html>


More information about the macports-changes mailing list