source: trunk/dports/editors/zim/Portfile

Last change on this file was 148880, checked in by khindenburg@…, 18 months ago

zim: update to 0.65 maintainer timeout #49884

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 148880 2016-05-21 14:01:15Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5PortGroup           app 1.0
6
7name                zim
8version             0.65
9platforms           darwin
10categories          editors
11maintainers         gmail.com:gabriel.ben.jamin
12license             GPL-2
13
14description         Personal desktop wiki
15long_description \
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.
23
24homepage            http://zim-wiki.org
25master_sites        ${homepage}/downloads/
26distname            zim-${version}
27
28checksums           rmd160  ac37a9ba1f67de129caa89c7038391d379cc5ce5 \
29                    sha256  5442f3334395a2beafc5b9a2bbec2e53e38270d4bad696b5c4053dd51dc1ed96
30
31depends_run-append  port:desktop-file-utils
32
33use_configure       no
34build               {}
35
36set app.icon        icons/zim48.png
37set app.executable  ${workpath}/zim-app
38
39python.link_binaries    no
40set python.bindir       ""
41
42variant python27 conflicts python26 description {Configure to use Python version 2.7} {
43    python.default_version 27
44    set python.bindir   ${python.prefix}/bin
45    depends_lib-append  port:py27-gobject \
46                        port:py27-pygtk \
47                        port:py27-xdg
48    destroot.destdir-append     --install-data=${prefix} \
49                                --skip-xdg-cmd
50}
51
52variant python26 conflicts python27 description {Configure to use Python version 2.6} {
53    python.default_version 26
54    set python.bindir   ${python.prefix}/bin
55    depends_lib-append  port:py26-gobject \
56                        port:py26-gtk \
57                        port:py26-xdg
58    destroot.destdir-append     --install-data=${prefix} \
59                                --skip-xdg-cmd
60}
61
62if {![variant_isset python26] && ![variant_isset python27]} {
63    default_variants +python27
64}
65
66pre-destroot {
67    xinstall -m 755 ${filespath}/zim ${destroot}${prefix}/bin
68    reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/zim
69    reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${destroot}${prefix}/bin/zim
70    file copy ${filespath}/zim-app ${workpath}/zim-app
71    reinplace "s|__PREFIX__|${prefix}|g" ${workpath}/zim-app
72    reinplace "s|__PYTHON_BINDIR__|${python.bindir}|g" ${workpath}/zim-app
73}
74
75post-activate {
76    exec update-desktop-database
77    exec update-mime-database ${destroot}${prefix}/share/mime 2> /dev/null
78}
79
80universal_variant   no
Note: See TracBrowser for help on using the repository browser.