Commits
David B. Evans authored 129213ed5a7
1 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
2 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup active_variants 1.1 |
5 5 | PortGroup compiler_blacklist_versions 1.0 |
6 6 | PortGroup gobject_introspection 1.0 |
7 7 | |
8 8 | name gedit |
9 9 | version 3.28.1 |
10 + | revision 1 |
10 11 | license GPL-2 |
11 12 | set branch [join [lrange [split ${version} .] 0 1] .] |
12 13 | description GNOME editor. |
13 14 | long_description ${description} |
14 15 | maintainers {devans @dbevans} openmaintainer |
15 16 | categories gnome editors |
16 17 | platforms darwin |
17 18 | homepage https://wiki.gnome.org/Apps/Gedit |
18 19 | master_sites gnome:sources/${name}/${branch}/ |
19 20 | |
58 59 | |
59 60 | |
60 61 | configure.cmd ./autogen.sh |
61 62 | |
62 63 | # blacklist compilers that do not support C11 (redefinition of typedef ‘GtkSourceTag’ at gtksourceview/gtksourcetag.h:35) |
63 64 | compiler.blacklist *gcc* {clang < 300} |
64 65 | |
65 66 | configure.cflags-append \ |
66 67 | -Wno-error=format-nonliteral |
67 68 | |
68 - | configure.args --disable-python \ |
69 + | configure.args --disable-gvfs-metadata \ |
70 + | --disable-python \ |
69 71 | --disable-schemas-compile \ |
70 72 | --disable-silent-rules |
71 73 | |
72 74 | # minimum python version is 3.2.3 |
73 75 | |
74 76 | variant python35 conflicts python36 description {Use python 3.5} { |
75 77 | depends_lib-append port:py35-gobject3 |
76 78 | configure.python ${prefix}/bin/python3.5 |
77 79 | set python_framework ${frameworks_dir}/Python.framework/Versions/3.5 |
78 80 | configure.pkg_config_path ${python_framework}/lib/pkgconfig |
84 86 | configure.python ${prefix}/bin/python3.6 |
85 87 | set python_framework ${frameworks_dir}/Python.framework/Versions/3.6 |
86 88 | configure.pkg_config_path ${python_framework}/lib/pkgconfig |
87 89 | configure.args-replace --disable-python --enable-python |
88 90 | } |
89 91 | |
90 92 | variant quartz {} |
91 93 | |
92 94 | if {[variant_isset quartz]} { |
93 95 | require_active_variants gtk3 quartz |
94 - | configure.args-append --disable-gvfs-metadata |
95 96 | depends_lib-append port:gtk-osx-application-gtk3 |
96 97 | } else { |
97 98 | require_active_variants gtk3 x11 |
98 - | configure.args-append --enable-gvfs-metadata |
99 - | depends_lib-append port:gvfs |
100 99 | depends_run-append port:yelp |
101 100 | } |
102 101 | |
103 102 | if {![variant_isset python35]} { |
104 103 | default_variants +python36 |
105 104 | } |
106 105 | |
107 106 | notes "For extra functionality install gedit-plugins" |
108 107 | |
109 108 | post-activate { |