ports/emulators/loemu/files/patch-setup.py
John Marino 5a118a14bf emulators/loemu: Fix runtime after mame upgrade
This port has probably be broken (at least by default) for many years.
It was trying to call sdlmame (I think) but the name was "mame" and now
for amd64, the name is "mame64".  Attempt to fix this (not testing was
done, however).

While here, clean up post-patch which was doing a lot of nothing, leverage
shebangfix, and regenerate patch accordingly.

Note that RUN_DEPENDS had to be changed to deal with the morphing
executable name.
2015-05-25 10:13:35 +00:00

24 lines
757 B
Python

--- setup.py.orig 2008-02-21 22:23:10 UTC
+++ setup.py
@@ -7,21 +7,6 @@ import sys
if sys.hexversion < 0x020400f0:
sys.stderr.write("python version failed: current version = %s.%s, needed version >= 2.4\n" % (sys.version_info[0],sys.version_info[1]))
sys.exit(1)
-try:
- import libxml2
-except ImportError:
- sys.stderr.write("dependencies failed: python libxml2\n")
- sys.exit(1)
-try:
- import libxslt
-except ImportError:
- sys.stderr.write("dependencies failed: python libxslt1\n")
- sys.exit(1)
-try:
- import gtk.glade
-except ImportError:
- sys.stderr.write("dependencies failed: python glade\n")
- sys.exit(1)
# make sure that the mo files are generated and up-to-date
os.system("cd po; make update-po")