Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 287652

Summary: Mac native dev-util/glade and dependencies
Product: Gentoo/Alt Reporter: Luca Marturana <lucamarturana>
Component: Mac OSXAssignee: Gentoo Prefix <prefix>
Status: RESOLVED NEEDINFO    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glade-3.6.7.ebuild
ige-mac-integration-0.8.6.ebuild
ige-mac-integration-0.8.6-codegen.patch
glade-3.6.7.ebuild

Description Luca Marturana 2009-10-04 17:38:22 UTC
I have tested glade on Mac OSX using the build of the main portage and the ige-mac-integration software found at http://sourceforge.net/projects/gtk-osx/files/. I will attach all needed files.
Comment 1 Luca Marturana 2009-10-04 17:39:41 UTC
Created attachment 206009 [details]
glade-3.6.7.ebuild

This is the glade ebuild. The same of main portage but with ige-mac-integration dependency and x86-macos keyword
Comment 2 Luca Marturana 2009-10-04 17:41:51 UTC
Created attachment 206012 [details]
ige-mac-integration-0.8.6.ebuild

This is the ebuild of ige-mac-integration, I used old EAPI, but is very simple.
Comment 3 Luca Marturana 2009-10-04 17:43:44 UTC
Created attachment 206013 [details]
ige-mac-integration-0.8.6-codegen.patch

I needed this patch to compile the software.
Comment 4 Fabian Groffen gentoo-dev 2009-10-06 18:07:23 UTC
how does glade's build system see that it should use the mac integration package?  Can it also do X11 for instance?  I prefer to have this enabled by the aqua USE-flag instead of the quadruple *-macos.
Comment 5 Fabian Groffen gentoo-dev 2009-10-06 18:08:11 UTC
I forgot the most important message:

Thanks for the work, patches and ebuilds!
Comment 6 Luca Marturana 2009-10-06 21:33:12 UTC
(In reply to comment #4)
> how does glade's build system see that it should use the mac integration
> package?  Can it also do X11 for instance?  I prefer to have this enabled by
> the aqua USE-flag instead of the quadruple *-macos.
> 

Hi

Seeing this part of configure.ac:

-------------------------------------
dnl ================================================================
dnl Check for GDK Quartz and MacOSX integration package
dnl ================================================================
_gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0`
AM_CONDITIONAL([GDK_TARGET_QUARTZ], [test x$_gdk_tgt = xquartz])
if test "x$_gdk_tgt" = xquartz; then
   PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration)

   IGE_MAC_BUNDLE_FLAG=

   AC_ARG_ENABLE(mac-bundle,
      AS_HELP_STRING([--enable-mac-bundle], [enable mac bundling]),
      build_bundle=yes, build_bundle=no)

   if test "x$build_bundle" = xyes; then
      AC_MSG_NOTICE([enableing mac bundle..])
-----------------------

Seems that glade looks for ige-mac if gtk+ is compiled with quartz (aqua so) and with --enable-mac-bundle adds the support for mac, I've compiled with and without this last one but I didn't see the difference. In any case if you want the support for aqua, you need this library, else the software will not compile.
I didn't test X11, but I seems that it should work with ige-mac.

Anyway you are right, it's better to describe this feature with the aqua use flag. :)
I'm attaching a corrected ebuild with this modifications.

Bye and thank you too for the interest :)
Comment 7 Luca Marturana 2009-10-06 21:36:18 UTC
Created attachment 206265 [details]
glade-3.6.7.ebuild

The ebuild referenced in the last comment

A note: I also added hicolor-theme dependency, that isn't present in the ebuild of the main portage. But I think that is necessary because glade use heavily these icons (on buttons that represents the widgets).
Comment 8 Fabian Groffen gentoo-dev 2010-12-11 14:22:18 UTC
ige-mac-integration is in the tree

glade 3.6.7 seems not to do anything with --enable-mac-bundle, simply because MAC_INTEGRATION never seems to be defined by configure, the build system or included headers.