openbsd-ports/games/gcompris/patches/patch-src_electric-activity_electric_py

21 lines
1.4 KiB
Plaintext
Raw Normal View History

2011-11-18 06:14:39 -05:00
$OpenBSD: patch-src_electric-activity_electric_py,v 1.3 2011/11/18 11:14:39 ajacoutot Exp $
--- src/electric-activity/electric.py.orig Sun Oct 23 12:17:24 2011
+++ src/electric-activity/electric.py Fri Nov 18 11:46:41 2011
@@ -89,14 +89,14 @@ class Gcompris_electric:
"gnucap.exe",
2011-01-14 16:29:42 -05:00
os.path.join(gcompris.PYTHON_PLUGIN_DIR, 'bin', 'gnucap'),
2010-06-20 12:44:54 -04:00
"/usr/bin/gnucap",
- "/usr/local/bin/gnucap",
+ "${LOCALBASE}/bin/gnucap",
os.path.join(gcompris.DATA_DIR, '..' , '..', '..', 'bin', 'gnucap')):
if(os.path.exists(binary)):
2011-11-18 06:14:39 -05:00
self.gnucap_binary = binary
2010-06-20 12:44:54 -04:00
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)