[101392] trunk/dports/x11/gobby

ryandesign at macports.org ryandesign at macports.org
Wed Jan 9 16:23:08 PST 2013


Revision: 101392
          https://trac.macports.org/changeset/101392
Author:   ryandesign at macports.org
Date:     2013-01-09 16:23:08 -0800 (Wed, 09 Jan 2013)
Log Message:
-----------
gobby: fix build with latest clang

Modified Paths:
--------------
    trunk/dports/x11/gobby/Portfile

Added Paths:
-----------
    trunk/dports/x11/gobby/files/
    trunk/dports/x11/gobby/files/patch-code-util-config.hpp.diff

Modified: trunk/dports/x11/gobby/Portfile
===================================================================
--- trunk/dports/x11/gobby/Portfile	2013-01-10 00:18:06 UTC (rev 101391)
+++ trunk/dports/x11/gobby/Portfile	2013-01-10 00:23:08 UTC (rev 101392)
@@ -39,6 +39,8 @@
 # libinfinity is not universal
 universal_variant       no
 
+patchfiles              patch-code-util-config.hpp.diff
+
 livecheck.type          regex
 livecheck.url           [lindex ${master_sites} 0]
 livecheck.regex         ${name}-(\\d+(?:\\.\\d+)*\\.(?:\\d|\[0-8\]\\d))\\.tar

Added: trunk/dports/x11/gobby/files/patch-code-util-config.hpp.diff
===================================================================
--- trunk/dports/x11/gobby/files/patch-code-util-config.hpp.diff	                        (rev 0)
+++ trunk/dports/x11/gobby/files/patch-code-util-config.hpp.diff	2013-01-10 00:23:08 UTC (rev 101392)
@@ -0,0 +1,109 @@
+http://gobby.0x539.de/trac/ticket/600
+--- code/util/config.hpp.orig	2012-10-01 19:01:55.000000000 -0400
++++ code/util/config.hpp	2012-10-01 19:09:37.000000000 -0400
+@@ -34,6 +34,52 @@
+ namespace Gobby
+ {
+ 
++namespace serialize
++{
++
++/** @brief Used to convert Gdk::Color to a string.
++ */
++template<>
++class default_context_to<Gdk::Color>: public context_base_to<Gdk::Color>
++{
++public:
++        typedef Gdk::Color data_type;
++
++        virtual std::string to_string(const data_type& from) const;
++};
++
++/** @brief Used to convert a string to Gdk::Color.
++ */
++template<>
++class default_context_from<Gdk::Color>: public context_base_from<Gdk::Color>
++{
++public:
++        typedef Gdk::Color data_type;
++
++        virtual data_type from_string(const std::string& from) const;
++};
++
++template<>
++class default_context_to<Glib::ustring>: public context_base_to<Glib::ustring>
++{
++public:
++        typedef Glib::ustring data_type;
++
++        virtual std::string to_string(const data_type& from) const;
++};
++
++template<>
++class default_context_from<Glib::ustring>:
++        public context_base_from<Glib::ustring>
++{
++public:
++        typedef Glib::ustring data_type;
++
++        virtual data_type from_string(const std::string& from) const;
++};
++
++} // namespace serialize
++
+ class Config
+ {
+ public:
+@@ -426,52 +472,6 @@
+ 	m_map[name] = new TypedValueEntry<DataType>(name, value, ctx);
+ }
+ 
+-namespace serialize
+-{
+-
+-/** @brief Used to convert Gdk::Color to a string.
+- */
+-template<>
+-class default_context_to<Gdk::Color>: public context_base_to<Gdk::Color>
+-{
+-public:
+-	typedef Gdk::Color data_type;
+-
+-	virtual std::string to_string(const data_type& from) const;
+-};
+-
+-/** @brief Used to convert a string to Gdk::Color.
+- */
+-template<>
+-class default_context_from<Gdk::Color>: public context_base_from<Gdk::Color>
+-{
+-public:
+-	typedef Gdk::Color data_type;
+-
+-	virtual data_type from_string(const std::string& from) const;
+-};
+-
+-template<>
+-class default_context_to<Glib::ustring>: public context_base_to<Glib::ustring>
+-{
+-public:
+-	typedef Glib::ustring data_type;
+-
+-	virtual std::string to_string(const data_type& from) const;
+-};
+-
+-template<>
+-class default_context_from<Glib::ustring>:
+-	public context_base_from<Glib::ustring>
+-{
+-public:
+-	typedef Glib::ustring data_type;
+-
+-	virtual data_type from_string(const std::string& from) const;
+-};
+-
+-} // namespace serialize
+-
+ } // namespace Gobby
+ 
+ #endif // _GOBBY_CONFIG_HPP_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130109/da7446ef/attachment-0001.html>


More information about the macports-changes mailing list