Ticket #26074: Portfile.2.diff

File Portfile.2.diff, 3.4 KB (added by gabriel.ben.jamin@…, 10 years ago)
  • Portfile

    old new  
    11# $Id$
    22
    33PortSystem          1.0
    4 
     4PortGroup           python26 1.0
     5               
    56name                zim
    6 version             0.28
     7version             0.60
    78revision            1
     9platforms           darwin
    810categories          editors
    9 license             {Artistic-1 GPL}
    10 maintainers         nomaintainer
    11 description         Desktop-based wiki
     11maintainers         burkhard@ualberta.ca
     12license             GPLv2
     13description         Personal desktop wiki
    1214long_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.
    20 
    21 platforms           darwin
    22 supported_archs     noarch
    23 
    24 homepage            http://www.zim-wiki.org
    25 master_sites        ${homepage}/downloads/
    26 distname            Zim-${version}
    27 
    28 checksums           md5     fce152562b57d4753edfcdc635a26e42 \
    29                     sha1    c0d1d5ad956ee682f01ecbd89009eb9f0852f34c \
    30                     rmd160  b6ecc7c6f094670754b4219e7506edefd00b2ca1
    31 
    32 depends_lib         port:p5.18-gtk2 port:p5.18-module-build port:p5.18-file-mimeinfo \
    33                     port:p5.18-file-basedir port:p5.18-file-desktopentry
     15    Zim is a graphical text editor used to maintain a collection of wiki pages. \
     16    Each page can contain links to other pages, simple formatting and images. \
     17    Pages are stored in a folder structure, like in an outliner, and can have \
     18    attachments. Creating a new page is as easy as linking to a nonexistent \
     19    page. All data is stored in plain text files with wiki formatting. Various \
     20    plugins provide additional functionality, like a task list manager, an \
     21    equation editor, a tray icon, and support for version control.
     22
     23homepage            http://zim-wiki.org
     24master_sites        ${homepage}/downloads
     25
     26checksums           md5     f781cefa9f8c669b1a664e03361977e2 \
     27                    sha1    f6abef969687ca09467031def1ddbcb611cb9f92 \
     28                    rmd160  896facd152cf7403479a2307efe0763d9d2c37fe
     29
     30depends_lib-append  port:py26-gobject \
     31                    port:py26-gtk \
     32                    port:py26-xdg
     33
     34use_configure       no
     35build               {}
     36
     37set python.prefix   ${frameworks_dir}/Python.framework/Versions/2.6
     38set python.bindir   ${python.prefix}/bin
     39
     40#destroot.cmd        ${python.bin} setup.py
     41#destroot.target     install
     42destroot.args       --skip-xdg-cmd
     43destroot.destdir    --install-lib=${destroot}${python.pkgd} \
     44                    --install-scripts=${destroot}${python.bindir} \
     45                    --install-data=${destroot}${prefix}
     46
     47python.link_binaries    no
     48
     49post-destroot {
     50    xinstall -m 755 ${filespath}/zim ${destroot}${prefix}/bin
     51    reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/zim
     52    reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${destroot}${prefix}/bin/zim
     53}
    3454
    35 configure.cmd       ${prefix}/bin/perl5.18
    36 configure.pre_args  ./Makefile.PL
     55universal_variant   no