New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21613 (closed submission: fixed)

Opened 2 years ago

Last modified 21 months ago

hatari: new port, version 1.3.1

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

Description (last modified by ryandesign@…) (diff)

See attachment.

Attachments

Portfile Download (0.7 KB) - added by christer.solskogen@… 2 years ago.

Change History

Changed 2 years ago by christer.solskogen@…

Changed 2 years ago by christer.solskogen@…

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

Changed 2 years ago by vince@…

Does it run Gauntlet II with the joystick doubler?

"Green elf shot the food!" :)

Changed 2 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! :)

Changed 2 years ago by ryandesign@…

  • description modified (diff)

Changed 2 years ago by ryandesign@…

  • status changed from new to assigned
  • owner changed from macports-tickets@… to ryandesign@…
  • port set to hatari
  • summary changed from new port - emulators/hatari to hatari: new port, version 1.3.1

Changed 2 years ago 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?

Changed 2 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.

Changed 21 months ago by jmr@…

  • status changed from assigned to closed
  • version 1.8.0 deleted
  • resolution set to fixed
Note: See TracTickets for help on using tickets.