<commit_before>require 'formula'

class Yarp < Formula
  homepage 'http://yarp.it'
  url 'http://downloads.sourceforge.net/yarp0/yarp-2.3.20.tar.gz'
  sha1 '7c9283bfe07b4da2f7c92ec584497d66248adb42'

  head 'https://yarp0.svn.sourceforge.net/svnroot/yarp0/trunk/yarp2'

  depends_on 'pkg-config' => :build
  depends_on 'cmake' => :build
  depends_on 'ace'
  depends_on 'gsl'
  depends_on 'gtk+'
  depends_on 'gtkmm'
  depends_on 'libglademm'
  depends_on 'sqlite'
  depends_on 'readline'
  depends_on 'jpeg'
  depends_on :x11

  def install
    args = std_cmake_args + %W[
      -DCREATE_LIB_MATH=TRUE
      -DCREATE_GUIS=TRUE
      -DCREATE_YMANAGER=TRUE
      -DYARP_USE_SYSTEM_SQLITE=TRUE
      -DCREATE_OPTIONAL_CARRIERS=TRUE
      -DENABLE_yarpcar_mjpeg_carrier=TRUE
      -DENABLE_yarpcar_rossrv_carrier=TRUE
      -DENABLE_yarpcar_tcpros_carrier=TRUE
      -DENABLE_yarpcar_xmlrpc_carrier=TRUE
      -DENABLE_yarpcar_bayer_carrier=TRUE
      -DUSE_LIBDC1394=FALSE
      -DENABLE_yarpcar_priority_carrier=TRUE
      -DCREATE_IDLS=TRUE
      -DENABLE_yarpidl_thrift=TRUE
      -DCREATE_YARPVIEW=TRUE
      -DCREATE_YARPSCOPE=TRUE
      -DCREATE_GYARPMANAGER=TRUE
      .]

    system "cmake", *args
    system "make install"
  end
end<commit_msg>yarp: fix build against gtkmm<commit_after>require 'formula'

class Yarp < Formula
  homepage 'http://yarp.it'
  url 'http://downloads.sourceforge.net/yarp0/yarp-2.3.20.tar.gz'
  sha1 '7c9283bfe07b4da2f7c92ec584497d66248adb42'

  head 'https://yarp0.svn.sourceforge.net/svnroot/yarp0/trunk/yarp2'

  depends_on 'pkg-config' => :build
  depends_on 'cmake' => :build
  depends_on 'ace'
  depends_on 'gsl'
  depends_on 'gtk+'
  depends_on 'gtkmm'
  depends_on 'libglademm'
  depends_on 'sqlite'
  depends_on 'readline'
  depends_on 'jpeg'
  depends_on :x11

  # Fix bad includes with gtkmm-2.24.3
  # Check if this is still needed with new versions of yarp and gtkmm
  def patches
    DATA
  end

  def install
    args = std_cmake_args + %W[
      -DCREATE_LIB_MATH=TRUE
      -DCREATE_GUIS=TRUE
      -DCREATE_YMANAGER=TRUE
      -DYARP_USE_SYSTEM_SQLITE=TRUE
      -DCREATE_OPTIONAL_CARRIERS=TRUE
      -DENABLE_yarpcar_mjpeg_carrier=TRUE
      -DENABLE_yarpcar_rossrv_carrier=TRUE
      -DENABLE_yarpcar_tcpros_carrier=TRUE
      -DENABLE_yarpcar_xmlrpc_carrier=TRUE
      -DENABLE_yarpcar_bayer_carrier=TRUE
      -DUSE_LIBDC1394=FALSE
      -DENABLE_yarpcar_priority_carrier=TRUE
      -DCREATE_IDLS=TRUE
      -DENABLE_yarpidl_thrift=TRUE
      -DCREATE_YARPVIEW=TRUE
      -DCREATE_YARPSCOPE=TRUE
      -DCREATE_GYARPMANAGER=TRUE
      .]

    system "cmake", *args
    system "make install"
  end
end

__END__
diff --git a/extern/gtkdataboxmm/gtkdataboxmm/gtkdatabox/gtkdataboxmm/init.cc b/extern/gtkdataboxmm/gtkdataboxmm/gtkdatabox/gtkdataboxmm/init.cc
index 42270cb..e05fa62 100644
--- a/extern/gtkdataboxmm/gtkdataboxmm/gtkdatabox/gtkdataboxmm/init.cc
+++ b/extern/gtkdataboxmm/gtkdataboxmm/gtkdatabox/gtkdataboxmm/init.cc
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <glibmm.h>
 #include <gtkmm/main.h>
 #include <gtkdataboxmmconfig.h>
 #include <gtkdataboxmm/wrap_init.h>
diff --git a/src/yarpmanager/gymanager/gymanager.cpp b/src/yarpmanager/gymanager/gymanager.cpp
index c7fee0b..8f68836 100644
--- a/src/yarpmanager/gymanager/gymanager.cpp
+++ b/src/yarpmanager/gymanager/gymanager.cpp
@@ -13,6 +13,7 @@
 #endif
 
 #include <iostream>
+#include <glibmm.h>
 #include <gtkmm/main.h>
 
 #include <yarp/os/Network.h>
diff --git a/src/yarpscope/src/main.cpp b/src/yarpscope/src/main.cpp
index 1073ca0..6afd0e2 100644
--- a/src/yarpscope/src/main.cpp
+++ b/src/yarpscope/src/main.cpp
@@ -11,6 +11,7 @@
 #include <yarp/os/ResourceFinder.h>
 #include <yarp/os/Network.h>
 
+#include <glibmm.h>
 #include <gtkmm/main.h>
 
 //#include <glibmm/i18n.h>
diff --git a/src/yarpscope/src/Graph.cpp b/src/yarpscope/src/Graph.cpp
index b825c40..8d3dec3 100644
--- a/src/yarpscope/src/Graph.cpp
+++ b/src/yarpscope/src/Graph.cpp
@@ -10,6 +10,8 @@
 #include "Debug.h"
 #include "PortReader.h"
 
+#include <glibmm.h>
+
 #include <gtkdataboxmm/lines.h>
 #include <gtkdataboxmm/bars.h>
 #include <gtkdataboxmm/points.h>
{'fraction_non_alphanumeric': 0.12020823473734027, 'fraction_numerical': 0.03951727401798391, 'mean_word_length': 3.7018909899888763, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1724072', 'n_tokens_mistral': 1936, 'n_tokens_neox': 1793, 'n_words': 251}