diff options
author | lme <lme@FreeBSD.org> | 2009-08-08 00:23:22 +0800 |
---|---|---|
committer | lme <lme@FreeBSD.org> | 2009-08-08 00:23:22 +0800 |
commit | ded2c31c3e19857e846e6b478e4274e2bb1968ab (patch) | |
tree | b303514e455c53d57d379e6a25bcee7ef4723af1 /multimedia/devede/files | |
parent | ac7e76287ce5dbe1dcfdb48566c6d5ce702a01e4 (diff) | |
download | freebsd-ports-gnome-ded2c31c3e19857e846e6b478e4274e2bb1968ab.tar.gz freebsd-ports-gnome-ded2c31c3e19857e846e6b478e4274e2bb1968ab.tar.zst freebsd-ports-gnome-ded2c31c3e19857e846e6b478e4274e2bb1968ab.zip |
- fix Python Psyco support [1]
- update to 3.14.0
PR: [1] ports/134109
Submitted by: lioux
Diffstat (limited to 'multimedia/devede/files')
-rw-r--r-- | multimedia/devede/files/extra-psyco-patch-devede.py | 16 | ||||
-rw-r--r-- | multimedia/devede/files/patch-devede.py | 23 |
2 files changed, 39 insertions, 0 deletions
diff --git a/multimedia/devede/files/extra-psyco-patch-devede.py b/multimedia/devede/files/extra-psyco-patch-devede.py new file mode 100644 index 000000000000..92edfe4fc25a --- /dev/null +++ b/multimedia/devede/files/extra-psyco-patch-devede.py @@ -0,0 +1,16 @@ +--- ./devede.py.orig 2009-04-30 08:17:34.000000000 -0300 ++++ ./devede.py 2009-04-30 08:18:03.000000000 -0300 +@@ -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 diff --git a/multimedia/devede/files/patch-devede.py b/multimedia/devede/files/patch-devede.py new file mode 100644 index 000000000000..433cc358a551 --- /dev/null +++ b/multimedia/devede/files/patch-devede.py @@ -0,0 +1,23 @@ +--- devede.py.orig 2009-05-25 09:50:34.000000000 -0300 ++++ devede.py 2009-06-13 08:40:49.000000000 -0300 +@@ -69,7 +69,19 @@ + except: + found=False + +-if tipo==0: ++tipo=3 ++ ++if tipo==3: ++ share_locale="%%PREFIX%%/share/locale" ++ glade="%%DATADIR%%" ++ sys.path.append("%%PREFIX%%/lib/%%PORTNAME%%") ++ font_path="%%DATADIR%%" ++ pic_path="%%DATADIR%%" ++ other_path="%%DATADIR%%" ++ help_path="%%DOCSDIR%%" ++ print "Using port-installed files" ++ ++elif tipo==0: + #gettext.bindtextdomain('devede', '/usr/share/locale') + #Note also before python 2.3 you need the following if + #you need translations from non python code (glibc,libglade etc.) |