Opened 11 years ago

Closed 11 years ago

#21613 closed submission (fixed)

hatari: new port, version 1.3.1

Reported by: christer.solskogen@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: hatari

Attachments (1)

Portfile (761 bytes) - added by christer.solskogen@… 11 years ago.

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by christer.solskogen@…

Attachment: Portfile added

comment:1 Changed 11 years ago by christer.solskogen@…

Gah, sorry. The Portfile was *not* meant to be pasted in the description!

comment:2 Changed 11 years ago by Veence (Vincent)

Does it run Gauntlet II with the joystick doubler?

"Green elf shot the food!" :)

comment:3 Changed 11 years ago by christer.solskogen@…

Heh, I guess. I'm not that big fan of Gauntlet. But it ran last time i tried, so give it a shot! :)

comment:4 Changed 11 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)

comment:5 Changed 11 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Port: hatari added
Status: newassigned
Summary: new port - emulators/hatarihatari: new port, version 1.3.1

comment:6 Changed 11 years ago by ryandesign (Ryan Schmidt)

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/ \
                        ${worksrcpath}/python-ui/ \
                        ${worksrcpath}/python-ui/ \
                        ${worksrcpath}/python-ui/ \
                        ${worksrcpath}/python-ui/ \
                        ${worksrcpath}/python-ui/ \

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/", line 743, in <module>
  File "/opt/local/share/hatari/hatariui/", line 694, in main
    actions = UIActions()
  File "/opt/local/share/hatari/hatariui/", 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/", line 330, in get_fastforward
    return self.config.get_fastforward()
  File "/opt/local/share/hatari/hatariui/", line 348, in get_fastforward
    return self.get("[System]", "bFastForward")
  File "/opt/local/share/hatari/hatariui/", 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?

comment:7 Changed 11 years ago by christer.solskogen@…

I did not enable py26-gtk as a dependency because that I've never gotten hatariui to work(And I really don't care /that/ much). If you really want to delete the python files after installation please do. But I have to admit that I really dont see what we gain. IMHO to enable hatariui(and install add python stuff as dependency) we should make it a variant. Its more easier to maintain the port that way. I'll contact the developers if I don't find a solution to hatariui.

comment:8 Changed 11 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed
Version: 1.8.0
Note: See TracTickets for help on using tickets.