[MacPorts] #21613: hatari: new port, version 1.3.1

MacPorts noreply at macports.org
Sun Sep 27 22:33:56 PDT 2009


#21613: hatari: new port, version 1.3.1
------------------------------------------+---------------------------------
 Reporter:  christer.solskogen@…          |       Owner:  ryandesign@…           
     Type:  submission                    |      Status:  assigned               
 Priority:  Normal                        |   Milestone:                         
Component:  ports                         |     Version:  1.8.0                  
 Keywords:                                |        Port:  hatari                 
------------------------------------------+---------------------------------

Comment(by ryandesign@…):

 Thanks for the port. I committed it in r58388 with these changes:

  * changed whitespace to align things into columns and rearrange lines
  * obfuscated your email address
  * allowed libsdl-devel to satisfy the libsdl dependency
  * added dependencies on libpng and readline because these do get used
  * removed "for UNIX systems" from description
  * changed category to emulators
  * removed --disable-dependency-tracking from universal configure args
 because it says it's an unknown option

 -----

 I don't know what to do about hatariui. It is a python script and it needs
 pygtk. So I wanted to make these additional changes:

 {{{
 depends_run             port:py26-gtk

 post-patch {
     reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|g" \
                         ${worksrcpath}/python-ui/hatari-console.py \
                         ${worksrcpath}/python-ui/config.py \
                         ${worksrcpath}/python-ui/debugui.py \
                         ${worksrcpath}/python-ui/dialogs.py \
                         ${worksrcpath}/python-ui/hatari.py \
                         ${worksrcpath}/python-ui/hatariui.py \
                         ${worksrcpath}/python-ui/uihelpers.py
 }
 }}}

 Two problems with this are that a) py26-gtk is a heavy dependency since it
 pulls in a lot of other stuff, and b) hatariui doesn't work:

 {{{
 Configuration file /opt/local/etc/hatari.cfg not found.
 Configuration file /Users/rschmidt/.hatari/hatari.cfg not found.
 close failed in file object destructor:
 IOError: [Errno 10] No child processes
 Loaded configuration file: /Users/rschmidt/.hatari.cfg
 Traceback (most recent call last):
   File "/opt/local/share/hatari/hatariui/hatariui.py", line 743, in
 <module>
     main()
   File "/opt/local/share/hatari/hatariui/hatariui.py", line 694, in main
     actions = UIActions()
   File "/opt/local/share/hatari/hatariui/hatariui.py", line 391, in
 __init__
     ("forward", gtk.STOCK_MEDIA_FORWARD, "Forward", "<Ctrl>F", "Whether to
 fast forward Hatari (needs fast machine)", cb.set_fastforward,
 cb.get_fastforward())
   File "/opt/local/share/hatari/hatariui/hatariui.py", line 330, in
 get_fastforward
     return self.config.get_fastforward()
   File "/opt/local/share/hatari/hatariui/hatari.py", line 348, in
 get_fastforward
     return self.get("[System]", "bFastForward")
   File "/opt/local/share/hatari/hatariui/config.py", line 186, in get
     return self.sections[section][key]
 KeyError: 'bFastForward'
 }}}

 If we can make hatariui work, then we could either add the above to the
 portfile and accept the heavy dependency, or make it a variant, or make it
 a separate port altogether.

 If we can't make hatariui work, then the hatari port should not install
 it.

 What are your thoughts on this?

-- 
Ticket URL: <http://trac.macports.org/ticket/21613#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list