<!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>[138006] users/elelay/ports</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/138006">138006</a></dd>
<dt>Author</dt> <dd>elelay@macports.org</dd>
<dt>Date</dt> <dd>2015-06-25 12:28:41 -0700 (Thu, 25 Jun 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>new gtk-osx-application as subports</pre>
<h3>Added Paths</h3>
<ul>
<li>users/elelay/ports/devel/</li>
<li>users/elelay/ports/devel/gtk-osx-application/</li>
<li><a href="#userselelayportsdevelgtkosxapplicationPortfile">users/elelay/ports/devel/gtk-osx-application/Portfile</a></li>
<li>users/elelay/ports/devel/gtk-osx-application/files/</li>
<li><a href="#userselelayportsdevelgtkosxapplicationfilespatchbindingspythongtk_osxapplicationMakefileindiff">users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtk_osxapplication-Makefile-in.diff</a></li>
<li><a href="#userselelayportsdevelgtkosxapplicationfilespatchbindingspythongtkmacintegrationMakefileindiff">users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtkmacintegration-Makefile-in.diff</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="userselelayportsdevelgtkosxapplicationPortfile"></a>
<div class="addfile"><h4>Added: users/elelay/ports/devel/gtk-osx-application/Portfile (0 => 138006)</h4>
<pre class="diff"><span>
<span class="info">--- users/elelay/ports/devel/gtk-osx-application/Portfile         (rev 0)
+++ users/elelay/ports/devel/gtk-osx-application/Portfile        2015-06-25 19:28:41 UTC (rev 138006)
</span><span class="lines">@@ -0,0 +1,185 @@
</span><ins>+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup active_variants 1.1
+
+name gtk-osx-application
+conflicts ige-mac-integration
+version 2.0.8
+license LGPL-2.1
+set branch [join [lrange [split ${version} .] 0 1] .]
+categories devel
+maintainers elelay openmaintainer
+
+description        Mac OS X menu bar integration library for GTK2 quartz
+
+long_description \
+                A simple library whose purpose is to \
+                allow GTK2 quartz applications to integrate with \
+                the Mac OS X menu bar. Requires gtk2 and its \
+ dependencies to be built with variants +no_x11 +quartz
+
+homepage https://wiki.gnome.org/Projects/GTK%2B/OSX/Integration
+
+platforms darwin
+
+set myname gtk-mac-integration
+master_sites gnome:sources/gtk-mac-integration/${branch}/
+distname ${myname}-${version}
+use_xz yes
+
+# sha256 from upstream, rmd160 computed locally
+checksums sha256 74fce9dbc5efe4e3d07a20b24796be1b1d6c3ac10a0ee6b1f1d685c809071b79 \
+ rmd160 53fd44172a3fa076e4401b6aac1adb10b76a5b7c
+
+
+depends_build port:pkgconfig
+
+variant gtk2 description {Dummy gtk2 variant} {
+}
+
+variant gtk3 description {Dummy gtk3 variant} {
+}
+
+set gtk_version gtk2
+
+pre-configure {
+
+ if {${name} eq ${subport}} {
+ ui_error "
+*** The gtk-osx-application port has been replaced by 'gtk-osx-application-gtk2'
+*** and 'gtk-osx-application-gtk3'. Please `sudo port deactivate gtk-osx-application`
+*** followed by the `sudo port upgrade -u outdated` or another command to update.
+*** Then if all works as intended `sudo port uninstall gtk-osx-application`
+***"
+ return -code error
+ }
+
+ if {![active_variants $gtk_version quartz x11]} {
+ ui_error "
+
+****
+**** gtk-osx-application is meant to be used only in a GTK quartz
+**** development environment but your version of GTK does not
+**** support quartz. Please make sure that port $gtk_version and all its
+**** dependencies are built with variants +no_x11 +quartz and try again.
+****
+"
+ error "$gtk_version +no_x11 +quartz not installed."
+ }
+}
+
+# py27-gtk-osx-application-gtk3 is not needed (only gir matters).
+# If a python gtk3 program requires gtk-osx-application, add
+# depends_lib-append port:gtk-osx-application-gtk3 \
+# port:py27-gobject3
+
+subport py27-gtk-osx-application-gtk2 {
+ set gtk_version gtk2
+
+ depends_lib-append port:py27-pygtk \
+ port:gtk-osx-application-gtk2
+
+ set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
+
+ configure.python ${python_prefix}/bin/python2.7
+ configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
+ configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
+ configure.pkg_config_path ${python_prefix}/lib/pkgconfig/
+ configure.pre_args --prefix=${python_prefix}
+
+
+ configure.args-append --with-gtk2 --without-gtk3 --disable-introspection
+
+ # enable-python defaults to all, but it must be set to
+ # 'yes' otherwise pygtk bindings are not built.
+ # By the way, I had no success configuring with --python=all
+ # as per README (configure rejected the option).
+ # So no gir for gtk2 variant
+ configure.args-append --enable-python=yes
+
+ post-destroot {
+ delete ${destroot}${prefix}/include
+ delete ${destroot}${prefix}/lib
+ delete ${destroot}${prefix}/share
+ }
+}
+
+subport gtk-osx-application-gtk3 {
+ set gtk_version gtk3
+
+ depends_lib-append port:gtk3 \
+ path:include/gtkmacintegration/gtk-mac-bundle.h:gtk-osx-application-common-gtk3
+
+
+ # force gtk version
+ configure.args-append --with-gtk3 --without-gtk2
+
+ configure.args-append --enable-python=no
+
+ post-destroot {
+ delete ${destroot}${prefix}/include
+ delete ${destroot}${prefix}/lib/pkgconfig/gtk-mac-integration.pc
+ delete ${destroot}${prefix}/share/strings
+ }
+}
+
+subport gtk-osx-application-common-gtk3 {
+ set gtk_version gtk3
+
+ depends_lib-append port:gtk3
+
+
+ # force gtk version
+ configure.args-append --with-gtk3 --without-gtk2
+
+ configure.args-append --enable-python=no
+
+ post-destroot {
+ delete ${destroot}${prefix}/lib
+ delete ${destroot}${prefix}/share/gir-1.0
+ }
+}
+
+subport gtk-osx-application-gtk2 {
+ set gtk_version gtk2
+
+ depends_lib-append port:gtk2 \
+ path:include/gtkmacintegration/gtk-mac-bundle.h:gtk-osx-application-common-gtk2
+
+ # force gtk version to 2.0
+ configure.args-append --with-gtk2 --without-gtk3 --disable-introspection
+
+ configure.args-append --enable-python=no
+
+ post-destroot {
+ delete ${destroot}${prefix}/include
+ delete ${destroot}${prefix}/lib/pkgconfig/gtk-mac-integration.pc
+ delete ${destroot}${prefix}/share/strings
+ }
+}
+
+subport gtk-osx-application-common-gtk2 {
+ set gtk_version gtk2
+
+ depends_lib-append port:gtk2
+
+ # force gtk version to 2.0
+ configure.args-append --with-gtk2 --without-gtk3 --disable-introspection
+
+ configure.args-append --enable-python=no
+
+ post-destroot {
+ delete ${destroot}${prefix}/lib
+ }
+}
+
+configure.ccache no
+configure.cmd-append --libdir=${prefix}/lib --includedir=${prefix}/include
+
+patchfiles-append patch-bindings-python-gtkmacintegration-Makefile-in.diff \
+ patch-bindings-python-gtk_osxapplication-Makefile-in.diff
+
+livecheck.type gnome
+livecheck.name ${myname}
</ins><span class="cx">Property changes on: users/elelay/ports/devel/gtk-osx-application/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="userselelayportsdevelgtkosxapplicationfilespatchbindingspythongtk_osxapplicationMakefileindiff"></a>
<div class="addfile"><h4>Added: users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtk_osxapplication-Makefile-in.diff (0 => 138006)</h4>
<pre class="diff"><span>
<span class="info">--- users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtk_osxapplication-Makefile-in.diff         (rev 0)
+++ users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtk_osxapplication-Makefile-in.diff        2015-06-25 19:28:41 UTC (rev 138006)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- bindings/python/gtkosx_application/Makefile.in.old        2013-01-25 08:40:08.000000000 +0100
++++ bindings/python/gtkosx_application/Makefile.in        2013-01-25 08:41:39.000000000 +0100
+@@ -344,7 +344,7 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ AM_CPPFLAGS = -I$(top_srcdir)/src $(PYTHON_INCLUDES)
+-gtkosx_applicationdir = $(libdir)/python$(PYTHON_VERSION)/site-packages/gtkosx_application
++gtkosx_applicationdir = @pythondir@/gtkosx_application
+ gtkosx_application_PYTHON = __init__.py
+ gtkosx_application_LTLIBRARIES = _gtkosx_application.la
+ headers = $(top_srcdir)/src/gtkosxapplication.h
</ins></span></pre></div>
<a id="userselelayportsdevelgtkosxapplicationfilespatchbindingspythongtkmacintegrationMakefileindiff"></a>
<div class="addfile"><h4>Added: users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtkmacintegration-Makefile-in.diff (0 => 138006)</h4>
<pre class="diff"><span>
<span class="info">--- users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtkmacintegration-Makefile-in.diff         (rev 0)
+++ users/elelay/ports/devel/gtk-osx-application/files/patch-bindings-python-gtkmacintegration-Makefile-in.diff        2015-06-25 19:28:41 UTC (rev 138006)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- bindings/python/gtkmacintegration/Makefile.in.orig        2015-06-22 19:51:48.000000000 +0200
++++ bindings/python/gtkmacintegration/Makefile.in        2015-06-22 19:48:03.000000000 +0200
+@@ -399,7 +399,7 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ AM_CPPFLAGS = -I$(top_srcdir)/src $(PYTHON_INCLUDES)
+-gtkmacintegrationdir = $(libdir)/python$(PYTHON_VERSION)/site-packages/gtkmacintegration
++gtkmacintegrationdir = @pythondir@/gtkmacintegration
+ gtkmacintegration_PYTHON = __init__.py
+ gtkmacintegration_LTLIBRARIES = $(am__append_1) $(am__append_2)
+ headers = \
</ins></span></pre>
</div>
</div>
</body>
</html>