source: trunk/dports/gnome/mlview/Portfile @ 122254

Last change on this file since 122254 was 122254, checked in by devans@…, 6 years ago

mlview: apply upstream patches, update dependencies, configuration, depend on vte-gtk2-compat instead of vte, reconfigure using upstream autogen.sh to fix intltool configuration, increment revision to rebuild.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
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# $Id: Portfile 122254 2014-07-18 22:11:54Z devans@macports.org $
3
4PortSystem      1.0
5
6name            mlview
7version         0.9.0
8revision        1
9license         GPL-2+
10set branch      [join [lrange [split ${version} .] 0 1] .]
11description     XML-editor for GNOME 2.
12long_description \
13                The MlView project is an ongoing effort to develop \
14                an XML editor for the GNOME 2 environment.
15maintainers     nomaintainer
16categories      gnome
17platforms       darwin
18homepage        http://www.freespiders.org/projects/gmlview/
19master_sites    gnome:sources/${name}/${branch}/
20
21use_bzip2       yes
22
23checksums       rmd160  6b810b478dbdb76dd4bb28fe627e455410f89ea7 \
24                sha256  568ce3fefe83eb163b4fbd7d62954ec3cad3000e966cd9f7461c2c9a3edb4dca
25
26depends_build   port:intltool \
27                port:pkgconfig \
28                port:autoconf \
29                port:automake \
30                port:libtool \
31                port:gnome-common
32
33depends_lib     port:desktop-file-utils \
34                port:libxml2 \
35                port:libxslt \
36                port:gtkmm \
37                port:libglademm \
38                port:libgnome \
39                port:gnome-vfs \
40                port:libgnomeui \
41                port:gconf \
42                port:gtksourceview \
43                port:vte-gtk2-compat
44
45patchfiles      patch-assert-function.diff \
46                patch-extra-qualification.diff \
47                patch-missing-links.diff \
48                patch-src-mlview-exec-command-dialog.cc.diff \
49                patch-tests-firstplugin.xml.diff \
50                patch-gcc-4.4-compat.diff \
51                patch-fix-save-to-file-bz587553.diff
52
53post-patch {
54    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
55    reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/tests/firstplugin.xml
56}
57
58# use upstream autogen.sh to reconfigure with our intltool.m4
59
60configure.cmd   ./autogen.sh
61
62# TODO: Fix buggy C++ code that clang complains about
63compiler.blacklist *clang*
64
65platform darwin {
66    if {${os.major} >= 13} {
67        depends_lib
68        depends_run
69        pre-fetch {
70            ui_error "$name does not build on Mavericks or later."
71            error "unsupported platform"
72        }
73    }
74}
75
76configure.args  --mandir=${prefix}/share/man \
77                --enable-dbus=no \
78                --enable-style=no \
79                --enable-debug=yes \
80                --enable-custom-cell-renderer=yes \
81                --enable-libxml-experimental-completion=no \
82                --enable-gtk-file-chooser=yes \
83                --disable-schemas-install
84
85universal_variant no
86
87post-activate {
88    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
89    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
90        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
91}
92
93livecheck.type  gnome-with-unstable
Note: See TracBrowser for help on using the repository browser.