openbsd-ports/multimedia/devede/patches/patch-devede_py
2011-11-27 16:53:55 +00:00

48 lines
1.4 KiB
Plaintext

$OpenBSD: patch-devede_py,v 1.17 2011/11/27 16:53:55 ajacoutot Exp $
--- devede.py.orig Sat Nov 26 14:53:30 2011
+++ devede.py Sun Nov 27 17:49:33 2011
@@ -19,6 +19,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+try:
+ import psyco
+ import re
+ psyco.cannotcompile(re.compile)
+ psyco.profile()
+except ImportError:
+ pass
import sys
import os
@@ -35,7 +42,7 @@ import pickle
import cairo
print "DeVeDe 3.19.0"
-if (sys.platform!="win32") and (sys.platform!="win64"):
+if (sys.platform!="win32") and (sys.platform!="win64") and not sys.platform.startswith('openbsd'):
try:
print "Locale: "+str(os.environ["LANG"])
except:
@@ -79,13 +86,13 @@ if tipo==0:
#arbol=gtk.Builder("/usr/share/devede/devede.glade",domain="devede")
# append the directories where we install the devede's own modules
- share_locale="/usr/share/locale"
- glade="/usr/share/devede"
- sys.path.append("/usr/lib/devede")
- font_path="/usr/share/devede"
- pic_path="/usr/share/devede"
- other_path="/usr/share/devede"
- help_path="/usr/share/doc/devede"
+ share_locale="${PREFIX}/share/locale"
+ glade="${PREFIX}/share/devede"
+ sys.path.append("${MODPY_SITEPKG}/devede")
+ font_path="${PREFIX}/share/devede"
+ pic_path="${PREFIX}/share/devede"
+ other_path="${PREFIX}/share/devede"
+ help_path="${PREFIX}/share/doc/devede"
print "Using package-installed files"
elif tipo==1: