[47209] trunk/dports/emulators/free42/Portfile
Martin Krischik
krischik at macports.org
Tue Feb 24 01:29:58 PST 2009
Ryan Schmidt schrieb:
>
> On Feb 23, 2009, at 08:00, krischik at macports.org wrote:
>
>> Revision: 47209
>> http://trac.macports.org/changeset/47209
>> Author: krischik at macports.org
>> Date: 2009-02-23 06:00:16 -0800 (Mon, 23 Feb 2009)
>> Log Message:
>> -----------
>> Using application bundles to start the program - id.
[... skip Portfile fine tuning - patches are applied]
> Now all that remains is that the items you install in
> ${applications_dir} don't actually open the calculator. They appear in
> the Dock for a split-second, then disappear.
That is normal behaviour - note the & at the end of
"/opt/local/bin/free42bin &". If you remove the & then you get an bouncy
icon.
But thinking of it a little more: If gtk2 is build with +quarz then the
& is wrong (see start-up script for the atar800). How could one detect that?
> When I tried running
> ${prefix}/bin/free42dec directly I noticed one problem was that X11 was
> not started.
Adding an X-Server autostart to the *.commands would not be a problem.
There is a TCP packet for Z-Shell - I could check for the existence of
an X-Server and start when needed. Just 2 Problems:
1) Does the Z-Shell which comes with Tiger include
/usr/lib/zsh/4.3.4/zsh/net/tcp.so ?
2) What about users which compiled gtk2 with +quarz variant?
> I'm on Tiger, and X11 only auto-starts on Leopard and
> later, so on Tiger and earlier, you have to start X11 first. But even if
> X11 is started, your application wrappers do not open the calculator
> when double-clicked. They do open the calculator when I run
> ${applications_dir}/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command
> from the Terminal. So I'm not sure what's up.
That is tricky indeed. Maybe Tiger does not support application bundles
with shell scripts. One can create an application bundle with
AppleScript - but that leaves two icons on the dock. Not so nice.
One could also remove the command file and link the executable itself.
But then you would be left with the two default skins. And it does not
solve the X-Server problem.
BTW: did you try: "open ${applications_dir}/Free42-Decimal.app" on the
terminal? *Sometimes* it gives helpful error message.
Martin
--
Martin Krischik
krischik at users.sourceforge.net
More information about the macports-dev
mailing list