/
Portfile
80 lines (65 loc) · 3.15 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# -*- 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
PortSystem 1.0
PortGroup python 1.0
PortGroup app 1.0
PortGroup active_variants 1.1
name meld
version 3.18.1
categories textproc devel
license GPL-2+
platforms darwin
maintainers {elelay @elelay} openmaintainer
homepage http://meldmerge.org/
description Visual diff and merge tool.
long_description Meld is a visual diff and merge tool. You can compare \
two or three files and edit them in place (diffs \
update dynamically). You can compare two or three \
folders and launch file comparisons. You can browse \
and view a working copy from popular version control \
systems such such as CVS, Subversion, Bazaar-ng and \
Mercurial.
master_sites gnome:sources/${name}/[join [lrange [split $version .] 0 1] .]
use_xz yes
checksums rmd160 92e0d17b0b60843a8f7de72d4923a5287e76489e \
sha256 3af68caeab5f38e82de66567346722db47ed6a6fa6d9d595de4ae7e15c88e879 \
size 563516
python.versions 36
python.default_version 36
# see #55092
# prevent running gtk-update-icon-cache and glib-compile-schema during install
destroot.cmd "${python.bin} setup.py [python_get_defaults setup_args] --no-update-icon-cache --no-compile-schemas"
# install everything under prefix, except libraries, that go under Library/Frameworks/Python...
destroot.destdir "--prefix=${prefix} --install-lib=[python_get_defaults pkgd] --root=${destroot}"
depends_build port:intltool \
port:itstool
depends_lib port:gtk3 \
port:gtksourceview3 \
port:py${python.version}-gobject3 \
port:shared-mime-info
depends_run port:desktop-file-utils
post-activate {
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/HighContrast"
system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}
# yelp is a heavy dependency (webkit2-gtk3, gstreamer, etc.) so only
# require it as an option
variant help description {Meld user manual (requires yelp)} {
depends_run-append port:yelp
post-activate {
system "${prefix}/bin/scrollkeeper-update"
}
}
app.icon data/icons/hicolor/scalable/apps/meld.svg
app.use_launch_script yes
variant x11 conflicts quartz {
require_active_variants gtk3 x11 quartz
}
variant quartz conflicts x11 {
require_active_variants gtk3 quartz x11
}
if {![variant_isset quartz]} {
default_variants-append +x11
}