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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup active_variants 1.1 |
---|
5 | PortGroup gobject_introspection 1.0 |
---|
6 | |
---|
7 | name gedit-app |
---|
8 | version 3.22.0 |
---|
9 | license GPL-2 |
---|
10 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
11 | description An App bundle for gedit. |
---|
12 | long_description ${description} |
---|
13 | maintainers hotmail.co.uk:ethansherriff |
---|
14 | categories gnome editors |
---|
15 | platforms darwin |
---|
16 | homepage https://wiki.gnome.org/Apps/Gedit |
---|
17 | |
---|
18 | fetch.type git |
---|
19 | git.url https://git.gnome.org/browse/gedit.git |
---|
20 | git.branch ${version} |
---|
21 | |
---|
22 | # Initialise libgd |
---|
23 | post-fetch { |
---|
24 | system -W ${worksrcpath} "git submodule update --init" |
---|
25 | } |
---|
26 | |
---|
27 | depends_build port:gtk-mac-bundler \ |
---|
28 | port:autoconf \ |
---|
29 | port:automake \ |
---|
30 | port:gettext \ |
---|
31 | port:gtk-doc \ |
---|
32 | port:intltool \ |
---|
33 | port:libtool \ |
---|
34 | port:yelp-tools |
---|
35 | |
---|
36 | depends_lib port:gedit |
---|
37 | |
---|
38 | depends_run port:gnome-themes-standard |
---|
39 | |
---|
40 | # Patch the bundle specification and the launcher script |
---|
41 | patchfiles patch-gedit.bundle.diff \ |
---|
42 | patch-gedit-launcher.diff |
---|
43 | |
---|
44 | # We need to configure to generate an Info.plist |
---|
45 | configure.cmd ./autogen.sh |
---|
46 | |
---|
47 | # Create the bundle. |
---|
48 | build { |
---|
49 | system -W ${worksrcpath} "MACPORTS_PREFIX=${prefix} ${prefix}/bin/gtk-mac-bundler osx/bundle/data/gedit.bundle" |
---|
50 | } |
---|
51 | |
---|
52 | # Place the bundle into the destroot |
---|
53 | destroot { |
---|
54 | copy ${worksrcpath}/osx/bundle/data/Gedit.app ${destroot}${applications_dir} |
---|
55 | } |
---|
56 | |
---|