Ignore:
Timestamp:
Jun 12, 2014, 2:06:07 PM (5 years ago)
Author:
mf2k@…
Message:

zim: Update to version 0.60. Add python variants. (#26074)

Location:
trunk/dports/editors/zim
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/editors/zim/Portfile

    r103278 r120945  
    22
    33PortSystem          1.0
     4PortGroup           python 1.0
     5PortGroup           app 1.0
    46
    57name                zim
    6 version             0.28
    7 revision            1
     8version             0.60
     9platforms           darwin
    810categories          editors
    9 license             {Artistic-1 GPL}
    10 maintainers         nomaintainer
    11 description         Desktop-based wiki
     11maintainers         gmail.com:gabriel.ben.jamin
     12license             GPL-2
     13
     14description         Personal desktop wiki
    1215long_description \
    13    Zim is a WYSIWYG text editor written in Gtk2-Perl. It aims to bring the \
    14    concept of a wiki to your desktop. Every page is saved as a text file \
    15    with wiki markup. Pages can contain links to other pages, and are saved \
    16    automatically. Creating a new page is as easy as linking to a \
    17    non-existing page. This tool is intended to keep track of TODO lists or \
    18    to serve as a personal scratch book. But it will also serve you when \
    19    writing longer and more complicated documents.
     16    Zim is a graphical text editor used to maintain a collection of wiki pages. \
     17    Each page can contain links to other pages, simple formatting and images. \
     18    Pages are stored in a folder structure, like in an outliner, and can have \
     19    attachments. Creating a new page is as easy as linking to a nonexistent \
     20    page. All data is stored in plain text files with wiki formatting. Various \
     21    plugins provide additional functionality, like a task list manager, an \
     22    equation editor, a tray icon, and support for version control.
    2023
    21 platforms           darwin
    22 supported_archs     noarch
     24homepage            http://zim-wiki.org
     25master_sites        ${homepage}/downloads/
     26distname            zim-${version}
    2327
    24 homepage            http://www.zim-wiki.org
    25 master_sites        ${homepage}/downloads/
    26 distname            Zim-${version}
     28checksums           rmd160  896facd152cf7403479a2307efe0763d9d2c37fe \
     29                    sha256  1093f7bf0051eda8eaad33f037b03df66b30c24da275d59cedbf8f792011196b
    2730
    28 checksums           md5     fce152562b57d4753edfcdc635a26e42 \
    29                     sha1    c0d1d5ad956ee682f01ecbd89009eb9f0852f34c \
    30                     rmd160  b6ecc7c6f094670754b4219e7506edefd00b2ca1
     31use_configure       no
     32build               {}
    3133
    32 depends_lib         port:p5.12-gtk2 port:p5.12-module-build port:p5.12-file-mimeinfo \
    33                     port:p5.12-file-basedir port:p5.12-file-desktopentry
     34set app.icon        icons/zim48.png
     35set app.executable  ${workpath}/zim-app
    3436
    35 configure.cmd       ${prefix}/bin/perl5.12
    36 configure.pre_args  ./Makefile.PL
     37python.link_binaries    no
     38set python.bindir       ""
     39
     40variant python27 conflicts python26 description {Configure to use Python version 2.7} {
     41    python.default_version 27
     42    set python.bindir   ${python.prefix}/bin
     43    depends_lib-append  port:py27-gobject \
     44                        port:py27-pygtk \
     45                        port:py27-xdg
     46    destroot.destdir-append     --install-data=${prefix} \
     47                                --skip-xdg-cmd
     48}
     49
     50variant python26 conflicts python27 description {Configure to use Python version 2.6} {
     51    python.default_version 26
     52    set python.bindir   ${python.prefix}/bin
     53    depends_lib-append  port:py26-gobject \
     54                        port:py26-gtk \
     55                        port:py26-xdg
     56    destroot.destdir-append     --install-data=${prefix} \
     57                                --skip-xdg-cmd
     58}
     59
     60if {![variant_isset python26] && ![variant_isset python27]} {
     61    default_variants +python27
     62}
     63
     64pre-destroot {
     65    xinstall -m 755 ${filespath}/zim ${destroot}${prefix}/bin
     66    reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/zim
     67    reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${destroot}${prefix}/bin/zim
     68    file copy ${filespath}/zim-app ${workpath}/zim-app
     69    reinplace "s|__PREFIX__|${prefix}|g" ${workpath}/zim-app
     70    reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${workpath}/zim-app
     71}
     72
     73post-activate {
     74    exec update-desktop-database
     75    exec update-mime-database ${destroot}${prefix}/share/mime 2> /dev/null
     76}
     77
     78universal_variant   no
Note: See TracChangeset for help on using the changeset viewer.