Ticket #55092: meld-3.18.diff

File meld-3.18.diff, 3.6 KB (added by elelay (Eric Le Lay), 7 years ago)

diff against 2a94add

  • textproc/meld/Portfile

    diff --git a/textproc/meld/Portfile b/textproc/meld/Portfile
    index 34f9b2a..316033a 100644
    a b  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
    33PortSystem              1.0
     4PortGroup               python 1.0
     5PortGroup               app 1.0
    46
    57name                    meld
    6 version                 1.8.6
     8version                 3.18.0
    79categories              textproc devel
    810license                 GPL-2+
    911platforms               darwin
    10 supported_archs noarch
    1112maintainers             nomaintainer
    1213homepage                http://meldmerge.org/
    1314description             Visual diff and merge tool.
    long_description Meld is a visual diff and merge tool. You can compare \ 
    2223master_sites            gnome:sources/${name}/[join [lrange [split $version .] 0 1] .]
    2324use_xz                  yes
    2425
    25 checksums               rmd160  7c981c08a015a1a0706cbe98416a25e0963af0cb \
    26                         sha256  af96682b8f4bf3ad4221c853b1516218d62a17ff43c38f4a83e7e8ac6736e8a5
     26checksums               rmd160  04a24763fd112b787824145cd18eff48faeb63bc \
     27                        sha256  848158b1e5c7473b9da3ddc16e057aad8951ec82979beb5914b8b4acdf97223e
    2728
    2829depends_build           port:intltool
    2930
    30 depends_lib             port:desktop-file-utils \
    31                         port:shared-mime-info \
    32                         port:rarian \
    33                         port:gtk2 \
    34                         port:py27-pygtk \
    35                         port:py27-gobject \
    36                         port:py27-pygtksourceview
     31python.versions         34 35 36
     32python.default_version  34
    3733
    38 # yelp is required to display help files
     34# prevent running gtk-update-icon-cache and glib-compile-schema during build
     35#build.cmd               "${python.bin} setup.py [python_get_defaults setup_args] --no-update-icon-cache --no-compile-schemas"
     36destroot.cmd            "${python.bin} setup.py [python_get_defaults setup_args] --no-update-icon-cache --no-compile-schemas"
     37# install everything under prefix, except libraries, that go under Library/Frameworks/Python...
     38destroot.destdir        "--prefix=${prefix} --install-lib=[python_get_defaults pkgd] --root=${destroot}"
    3939
    40 depends_run             port:yelp
    41 
    42 post-patch {
    43     reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/INSTALL
    44     reinplace "s|#! /usr/bin/env python|#! ${prefix}/bin/python2.7|" ${worksrcpath}/bin/meld
    45 }
    46 
    47 use_configure           no
    48 
    49 build.args              PYTHON=${prefix}/bin/python2.7
     40depends_lib             port:gtk3 \
     41                        port:gtksourceview3 \
     42                        port:py${python.version}-gobject3
    5043
    5144post-activate {
    52     system "${prefix}/bin/scrollkeeper-update"
    5345    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    5446    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    5547    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/HighContrast"
    5648    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
     49    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
    5750}
     51
     52# yelp is a heavy dependency (webkit2-gtk3, gstreamer, etc.) so only
     53# require it as an option
     54variant help description {Meld user manual (requires yelp)} {
     55    depends_run-append port:yelp
     56    post-activate {
     57        system "${prefix}/bin/scrollkeeper-update"
     58    }
     59}
     60
     61app.icon                data/icons/hicolor/scalable/apps/meld.svg
     62
     63app.executable          "${prefix}/bin/meld"