openbsd-ports/games/gcompris/patches/patch-src_electric-activity_electric_py
2011-01-14 21:29:42 +00:00

22 lines
1.4 KiB
Plaintext

$OpenBSD: patch-src_electric-activity_electric_py,v 1.2 2011/01/14 21:29:42 ajacoutot Exp $
--- src/electric-activity/electric.py.orig Mon Jul 12 00:31:55 2010
+++ src/electric-activity/electric.py Fri Jan 14 20:54:41 2011
@@ -88,7 +88,7 @@ class Gcompris_electric:
for binary in (os.environ.get('GNUCAP', ''),
os.path.join(gcompris.PYTHON_PLUGIN_DIR, 'bin', 'gnucap'),
"/usr/bin/gnucap",
- "/usr/local/bin/gnucap",
+ "${LOCALBASE}/bin/gnucap",
"gnucap.exe",
os.path.join(gcompris.DATA_DIR, '..' , '..', '..', 'bin', 'gnucap')):
if(os.path.exists(binary)):
@@ -96,7 +96,7 @@ class Gcompris_electric:
break
if not self.gnucap_binary:
- gcompris.utils.dialog(_("Cannot find the 'gnucap' electric simulator.\nYou can download and install it from:\n<http://geda.seul.org/tools/gnucap/>\nTo be detected, it must be installed in\n/usr/bin/gnucap or /usr/local/bin/gnucap.\nYou can still use this activity to draw schematics without computer simulation."),
+ gcompris.utils.dialog(_("Cannot find the 'gnucap' electric simulator.\nYou can download and install it from:\n<http://geda.seul.org/tools/gnucap/>\nTo be detected, it must be installed in\n/usr/bin/gnucap or ${LOCALBASE}/bin/gnucap.\nYou can still use this activity to draw schematics without computer simulation."),
None)