how to detect installed gtk variant

2008-10-15 Thread MySchizoBuddy

For webkit-gtk it has a quartz variant. I want to detect if gtk2 was
installed with the quartz variant or not. if not then spit an error and tell
the users to uninstall gtk and install it with quartz

one problem, since gtk2 is a dependency and i cannot select the variant of
it. the user will be installing gtk2 with X11 and then will have to
uninstall it and reinstall it manually with quartz.
kinda messy. is quartz variant worth the hassle.
-- 
View this message in context: 
http://www.nabble.com/how-to-detect-installed-gtk-variant-tp19993089p19993089.html
Sent from the MacPorts - Users mailing list archive at Nabble.com.

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: how to detect installed gtk variant

2008-10-15 Thread Bryan Blackburn
On Wed, Oct 15, 2008 at 06:07:04AM -0700, MySchizoBuddy said:
 
 For webkit-gtk it has a quartz variant. I want to detect if gtk2 was
 installed with the quartz variant or not. if not then spit an error and tell
 the users to uninstall gtk and install it with quartz
 

You might be able to use a test in a pre-fetch phase like (not tested at
all):

pre-fetch {
   if {![file exists ${prefix}/path/only/installed/by/variant]} {
  return -code error Please install gtk2 with the +quartz
   }
}

Though this is quite fragile, and really a bug in the dependency engine.
The real way around it is to get ticket #126 done:

http://trac.macports.org/ticket/126

Bryan


 one problem, since gtk2 is a dependency and i cannot select the variant of
 it. the user will be installing gtk2 with X11 and then will have to
 uninstall it and reinstall it manually with quartz.
 kinda messy. is quartz variant worth the hassle.
 -- 
 View this message in context: 
 http://www.nabble.com/how-to-detect-installed-gtk-variant-tp19993089p19993089.html
 Sent from the MacPorts - Users mailing list archive at Nabble.com.
 
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users