openbsd-ports/multimedia/devede/patches/patch-devede_py
ajacoutot c9cb4e5fa9 Update to devede-3.21.0.
* uses FFmpeg by default instead of mencoder
2011-12-31 08:14:33 +00:00

48 lines
1.4 KiB
Plaintext

$OpenBSD: patch-devede_py,v 1.19 2011/12/31 08:14:33 ajacoutot Exp $
--- devede.py.orig Fri Dec 30 11:27:44 2011
+++ devede.py Sat Dec 31 09:06:51 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.21.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: