diff --git a/textproc/meld/Portfile b/textproc/meld/Portfile
index 34f9b2a..316033a 100644
a
|
b
|
|
1 | 1 | # -*- 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 |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
| 4 | PortGroup python 1.0 |
| 5 | PortGroup app 1.0 |
4 | 6 | |
5 | 7 | name meld |
6 | | version 1.8.6 |
| 8 | version 3.18.0 |
7 | 9 | categories textproc devel |
8 | 10 | license GPL-2+ |
9 | 11 | platforms darwin |
10 | | supported_archs noarch |
11 | 12 | maintainers nomaintainer |
12 | 13 | homepage http://meldmerge.org/ |
13 | 14 | description Visual diff and merge tool. |
… |
… |
long_description Meld is a visual diff and merge tool. You can compare \ |
22 | 23 | master_sites gnome:sources/${name}/[join [lrange [split $version .] 0 1] .] |
23 | 24 | use_xz yes |
24 | 25 | |
25 | | checksums rmd160 7c981c08a015a1a0706cbe98416a25e0963af0cb \ |
26 | | sha256 af96682b8f4bf3ad4221c853b1516218d62a17ff43c38f4a83e7e8ac6736e8a5 |
| 26 | checksums rmd160 04a24763fd112b787824145cd18eff48faeb63bc \ |
| 27 | sha256 848158b1e5c7473b9da3ddc16e057aad8951ec82979beb5914b8b4acdf97223e |
27 | 28 | |
28 | 29 | depends_build port:intltool |
29 | 30 | |
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 |
| 31 | python.versions 34 35 36 |
| 32 | python.default_version 34 |
37 | 33 | |
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" |
| 36 | destroot.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... |
| 38 | destroot.destdir "--prefix=${prefix} --install-lib=[python_get_defaults pkgd] --root=${destroot}" |
39 | 39 | |
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 |
| 40 | depends_lib port:gtk3 \ |
| 41 | port:gtksourceview3 \ |
| 42 | port:py${python.version}-gobject3 |
50 | 43 | |
51 | 44 | post-activate { |
52 | | system "${prefix}/bin/scrollkeeper-update" |
53 | 45 | system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" |
54 | 46 | system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" |
55 | 47 | system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/HighContrast" |
56 | 48 | system "${prefix}/bin/update-mime-database ${prefix}/share/mime" |
| 49 | system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" |
57 | 50 | } |
| 51 | |
| 52 | # yelp is a heavy dependency (webkit2-gtk3, gstreamer, etc.) so only |
| 53 | # require it as an option |
| 54 | variant 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 | |
| 61 | app.icon data/icons/hicolor/scalable/apps/meld.svg |
| 62 | |
| 63 | app.executable "${prefix}/bin/meld" |