<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[122254] trunk/dports/gnome/mlview</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/122254">122254</a></dd>
<dt>Author</dt> <dd>devans@macports.org</dd>
<dt>Date</dt> <dd>2014-07-18 15:11:54 -0700 (Fri, 18 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>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.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsgnomemlviewPortfile">trunk/dports/gnome/mlview/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsgnomemlviewfilesautogensh">trunk/dports/gnome/mlview/files/autogen.sh</a></li>
<li><a href="#trunkdportsgnomemlviewfilespatchfixsavetofilebz587553diff">trunk/dports/gnome/mlview/files/patch-fix-save-to-file-bz587553.diff</a></li>
<li><a href="#trunkdportsgnomemlviewfilespatchgcc44compatdiff">trunk/dports/gnome/mlview/files/patch-gcc-4.4-compat.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsgnomemlviewPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/gnome/mlview/Portfile (122253 => 122254)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/mlview/Portfile        2014-07-18 21:25:15 UTC (rev 122253)
+++ trunk/dports/gnome/mlview/Portfile        2014-07-18 22:11:54 UTC (rev 122254)
</span><span class="lines">@@ -5,6 +5,7 @@
</span><span class="cx"> 
</span><span class="cx"> name            mlview
</span><span class="cx"> version         0.9.0
</span><ins>+revision        1
</ins><span class="cx"> license         GPL-2+
</span><span class="cx"> set branch      [join [lrange [split ${version} .] 0 1] .]
</span><span class="cx"> description     XML-editor for GNOME 2.
</span><span class="lines">@@ -23,7 +24,11 @@
</span><span class="cx">                 sha256  568ce3fefe83eb163b4fbd7d62954ec3cad3000e966cd9f7461c2c9a3edb4dca
</span><span class="cx"> 
</span><span class="cx"> depends_build   port:intltool \
</span><del>-                port:pkgconfig
</del><ins>+                port:pkgconfig \
+                port:autoconf \
+                port:automake \
+                port:libtool \
+                port:gnome-common
</ins><span class="cx"> 
</span><span class="cx"> depends_lib     port:desktop-file-utils \
</span><span class="cx">                 port:libxml2 \
</span><span class="lines">@@ -35,18 +40,25 @@
</span><span class="cx">                 port:libgnomeui \
</span><span class="cx">                 port:gconf \
</span><span class="cx">                 port:gtksourceview \
</span><del>-                port:vte
</del><ins>+                port:vte-gtk2-compat
</ins><span class="cx"> 
</span><span class="cx"> patchfiles      patch-assert-function.diff \
</span><span class="cx">                 patch-extra-qualification.diff \
</span><span class="cx">                 patch-missing-links.diff \
</span><span class="cx">                 patch-src-mlview-exec-command-dialog.cc.diff \
</span><del>-                patch-tests-firstplugin.xml.diff
</del><ins>+                patch-tests-firstplugin.xml.diff \
+                patch-gcc-4.4-compat.diff \
+                patch-fix-save-to-file-bz587553.diff
</ins><span class="cx"> 
</span><span class="cx"> post-patch {
</span><ins>+    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
</ins><span class="cx">     reinplace &quot;s|@@MP_PREFIX@@|${prefix}|&quot; ${worksrcpath}/tests/firstplugin.xml
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+# use upstream autogen.sh to reconfigure with our intltool.m4
+
+configure.cmd   ./autogen.sh
+
</ins><span class="cx"> # TODO: Fix buggy C++ code that clang complains about
</span><span class="cx"> compiler.blacklist *clang*
</span><span class="cx"> 
</span><span class="lines">@@ -62,6 +74,12 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> configure.args  --mandir=${prefix}/share/man \
</span><ins>+                --enable-dbus=no \
+                --enable-style=no \
+                --enable-debug=yes \
+                --enable-custom-cell-renderer=yes \
+                --enable-libxml-experimental-completion=no \
+                --enable-gtk-file-chooser=yes \
</ins><span class="cx">                 --disable-schemas-install
</span><span class="cx"> 
</span><span class="cx"> universal_variant no
</span></span></pre></div>
<a id="trunkdportsgnomemlviewfilesautogensh"></a>
<div class="addfile"><h4>Added: trunk/dports/gnome/mlview/files/autogen.sh (0 => 122254)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/mlview/files/autogen.sh                                (rev 0)
+++ trunk/dports/gnome/mlview/files/autogen.sh        2014-07-18 22:11:54 UTC (rev 122254)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+#!/bin/sh
+#Authors: Dodji Seketeli &amp; Ga\xEBl Chamoulaud.
+
+# Run this to generate all the initial makefiles, etc. srcdir=`dirname $0`
+test -z &quot;$srcdir&quot; &amp;&amp; srcdir=. 
+
+PKG_NAME=&quot;mlview&quot; 
+
+(test -f $srcdir/configure.in \
+  &amp;&amp; test -f $srcdir/ChangeLog \
+  &amp;&amp; test -d $srcdir/src) || {
+    echo -n &quot;**Error**: Directory &quot;\`$srcdir\'&quot; does not look like the&quot;
+    echo &quot; top-level $PKG_NAME directory&quot;
+    exit 1
+} 
+
+which gnome-autogen.sh || {
+    echo &quot;You need to install gnome-common from the GNOME CVS&quot;
+    exit 1
+}
+
+if test x$@ = x -a x$MLVIEW_DEVEL != x; then
+    args=&quot;--enable-verbose=yes --enable-custom-cell-renderer=yes --enable-gtk-file-chooser=yes&quot;
+else
+    args=&quot;$@&quot;
+fi
+
+REQUIRED_AUTOMAKE_VERSION=1.7.2
+
+USE_GNOME2_MACROS=1 . gnome-autogen.sh $args
</ins></span></pre></div>
<a id="trunkdportsgnomemlviewfilespatchfixsavetofilebz587553diff"></a>
<div class="addfile"><h4>Added: trunk/dports/gnome/mlview/files/patch-fix-save-to-file-bz587553.diff (0 => 122254)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/mlview/files/patch-fix-save-to-file-bz587553.diff                                (rev 0)
+++ trunk/dports/gnome/mlview/files/patch-fix-save-to-file-bz587553.diff        2014-07-18 22:11:54 UTC (rev 122254)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+From 31c2d7910c68d51bcbf1dd0d71c36cc593e07785 Mon Sep 17 00:00:00 2001
+From: Dodji Seketeli &lt;dodji@redhat.com&gt;
+Date: Wed, 1 Jul 2009 21:16:07 +0200
+Subject: Fix crash when saving to a file (#587553)
+
+        * src/mlview-old-gvc.cc (OldGVC::on_view_name_changed):
+        Do not cast IView* into Gtk::Widget*. Rather use
+        IView::get_view_widget().
+
+diff --git a/src/mlview-old-gvc.cc b/src/mlview-old-gvc.cc
+index 0feb6e1..9e6ab0c 100644
+--- src/mlview-old-gvc.cc
++++ src/mlview-old-gvc.cc
+@@ -292,7 +292,7 @@ OldGVC::on_view_name_changed (IView* a_view)

+         new_view_name = a_view-&gt;get_view_name () ;

+-        view_impl = (Gtk::Widget*) a_view ;
++        view_impl = a_view-&gt;get_view_widget ();
+         THROW_IF_FAIL (view_impl) ;

+         view_container = view_impl-&gt;get_parent () ;
+-- 
+cgit v0.10.1
+
</ins></span></pre></div>
<a id="trunkdportsgnomemlviewfilespatchgcc44compatdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/gnome/mlview/files/patch-gcc-4.4-compat.diff (0 => 122254)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/mlview/files/patch-gcc-4.4-compat.diff                                (rev 0)
+++ trunk/dports/gnome/mlview/files/patch-gcc-4.4-compat.diff        2014-07-18 22:11:54 UTC (rev 122254)
</span><span class="lines">@@ -0,0 +1,156 @@
</span><ins>+From 0b113e4bf6add76fa7c23d3bad31eb7217632eb6 Mon Sep 17 00:00:00 2001
+From: Dodji Seketeli &lt;dodji@redhat.com&gt;
+Date: Wed, 1 Jul 2009 20:59:49 +0200
+Subject: Bring mlview back to live wrt gcc 4.4
+
+        * configure.in: Bump to 0.10
+        Cleanup to make it pass autogen.sh
+        * src/mlview-editor.cc (Editor::select_view_to_open):
+        Don't cast int into enum.
+        * src/mlview-validator.cc (ViewManager::get_views_of_document):
+        Avoid returning a non initialized variable.
+        (ViewManager::select_view_to_open): Don't cast int into enum.
+        * src/recent-files/egg-recent-util.c (egg_recent_util_get_unique_id):
+        Use the right variable.
+
+diff --git a/configure.in b/configure.in
+index 06b3620..177727c 100644
+--- configure.in
++++ configure.in
+@@ -1,7 +1,7 @@
+ dnl **************************************************************
+ dnl Process this file with autoconf to produce a configure script.
+ dnl **************************************************************
+-AC_INIT(mlview,0.9.0, http://bugzilla.gnome.org/enter_bug.cgi?product=mlview)
++AC_INIT(mlview,0.9.0)
+ AC_PREREQ(2.59)
+ AC_CONFIG_SRCDIR(src/main.cc)
+ AC_CANONICAL_TARGET
+@@ -10,7 +10,7 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
+ AM_CONFIG_HEADER(config.h)

+ MLVIEW_MAJOR_VERSION=0
+-MLVIEW_MINOR_VERSION=9
++MLVIEW_MINOR_VERSION=10
+ MLVIEW_MICRO_VERSION=0


+@@ -77,11 +77,9 @@ MLVIEW_VERSION_NUMBER=`expr $MLVIEW_MAJOR_VERSION \
+ MLVIEW_EXE=$prefix/bin/mlv
+ AC_SUBST(MLVIEW_VERSION_NUMBER)
+ AC_SUBST(MLVIEW_VERSION)
+-AC_SUBST(AC_PACKAGE_VERSION)
+ AC_SUBST(LIBMLVIEW_VERSION_NUMBER)
+ AC_SUBST(LIBMLVIEW_VERSION_INFO)
+ AC_SUBST(LIBMLVIEW_VERSION)
+-AC_SUBST(AC_PACKAGE_VERSION)
+ AC_SUBST(MLVIEW_EXE)

+ dnl *********************
+diff --git a/src/mlview-editor.cc b/src/mlview-editor.cc
+index bc48206..ed9b2cf 100644
+--- src/mlview-editor.cc
++++ src/mlview-editor.cc
+@@ -352,7 +352,7 @@ Editor::select_view_to_open (void)
+         GtkWidget *button6 = NULL ;
+         GtkWidget *sel_menu_item = NULL ;

+-        enum MLVIEW_SELECTED_BUTTON button;
++        int button;
+         ViewDescriptor const *result = NULL;
+         ViewDescriptor const *view_desc_ptr = NULL ;
+         gchar *base_name = NULL;
+@@ -421,8 +421,7 @@ Editor::select_view_to_open (void)
+         GTK_WIDGET_SET_FLAGS (button6, GTK_CAN_DEFAULT);

+         /* show dialog */
+-        button = (enum MLVIEW_SELECTED_BUTTON)
+-                 gtk_dialog_run (GTK_DIALOG (dialog));
++        button = gtk_dialog_run (GTK_DIALOG (dialog));


+         switch (button) {
+diff --git a/src/mlview-validator-window.cc b/src/mlview-validator-window.cc
+index 6c863e9..ec3c726 100644
+--- src/mlview-validator-window.cc
++++ src/mlview-validator-window.cc
+@@ -23,9 +23,7 @@
+  *See COPYRIGHT file for copyright information.
+  */
+ #include &lt;string.h&gt;
+-
+ #include &lt;glade/glade.h&gt;
+-
+ #include &quot;mlview-validator-window.h&quot;
+ #include &quot;mlview-validator.h&quot;

+diff --git a/src/mlview-validator.cc b/src/mlview-validator.cc
+index 3712962..77ec4c3 100644
+--- src/mlview-validator.cc
++++ src/mlview-validator.cc
+@@ -23,9 +23,12 @@
+  *See COPYRIGHT file for copyright information.
+  */

++#include &lt;memory&gt;
+ #include &quot;mlview-validator.h&quot;
+ #include &quot;mlview-safe-ptr-utils.h&quot;

++using namespace std;
++
+ #define MESSAGE_LINE_LENGTH 55
+ namespace mlview
+ {
+diff --git a/src/mlview-view-manager.cc b/src/mlview-view-manager.cc
+index 7df4e03..e6a7cb4 100644
+--- src/mlview-view-manager.cc
++++ src/mlview-view-manager.cc
+@@ -523,13 +523,13 @@ list&lt;IView*&gt;
+ ViewManager::get_views_of_document (const MlViewXMLDocument *a_doc) const
+ {
+         THROW_IF_FAIL (a_doc) ;
+-        list&lt;IView*&gt; *result ;
++        list&lt;IView*&gt; *result = 0;

+         DocToViewsMap::iterator it = m_priv-&gt;doc_to_views_map.find
+                                      (const_cast&lt;MlViewXMLDocument*&gt;(a_doc))  ;

+         if (it == m_priv-&gt;doc_to_views_map.end ()) {
+-                return *result ;
++                return list&lt;IView*&gt; ();
+         }
+         result = it-&gt;second ;
+         return *result ;
+@@ -641,7 +641,7 @@ ViewManager::select_view_to_open (void)
+         GtkWidget *button6 = NULL ;
+         GtkWidget *sel_menu_item = NULL ;

+-        enum MLVIEW_SELECTED_BUTTON button;
++        int button;
+         struct ViewDescriptor *result = NULL;
+         ViewDescriptor const *view_desc_ptr = NULL ;
+         gchar *base_name = NULL;
+@@ -714,8 +714,7 @@ ViewManager::select_view_to_open (void)
+         GTK_WIDGET_SET_FLAGS (button6, GTK_CAN_DEFAULT);

+         /* show dialog */
+-        button = (enum MLVIEW_SELECTED_BUTTON)
+-                 gtk_dialog_run (GTK_DIALOG (dialog));
++        button = gtk_dialog_run (GTK_DIALOG (dialog));


+         switch (button) {
+diff --git a/src/recent-files/egg-recent-util.c b/src/recent-files/egg-recent-util.c
+index 6780cd1..8eb13ff 100644
+--- src/recent-files/egg-recent-util.c
++++ src/recent-files/egg-recent-util.c
+@@ -134,5 +134,5 @@ egg_recent_util_get_unique_id (void)
+         rand = g_random_int ();
+         pid = getpid ();

+-        return g_strdup_printf (&quot;%s-%d-%d-%d&quot;, hostname, (int)time, (int)rand, (int)pid);
++        return g_strdup_printf (&quot;%s-%d-%d-%d&quot;, hostname, (int)the_time, (int)rand, (int)pid);
+ }
+-- 
+cgit v0.10.1
+
</ins></span></pre>
</div>
</div>

</body>
</html>