summaryrefslogtreecommitdiff
path: root/multimedia/openshot/files
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/openshot/files')
-rw-r--r--multimedia/openshot/files/patch-openshot__language__Language_Init.py18
-rw-r--r--multimedia/openshot/files/patch-setup.py42
2 files changed, 60 insertions, 0 deletions
diff --git a/multimedia/openshot/files/patch-openshot__language__Language_Init.py b/multimedia/openshot/files/patch-openshot__language__Language_Init.py
new file mode 100644
index 000000000000..126155a65ef4
--- /dev/null
+++ b/multimedia/openshot/files/patch-openshot__language__Language_Init.py
@@ -0,0 +1,18 @@
+--- ./openshot/language/Language_Init.py.orig 2010-09-08 07:17:53.000000000 -0700
++++ ./openshot/language/Language_Init.py 2011-03-04 04:56:22.000000000 -0800
+@@ -83,7 +83,7 @@
+ #langs += ["es", "fr"]
+ locale.setlocale(locale.LC_ALL)
+ locale.setlocale(locale.LC_NUMERIC, 'POSIX')
+- locale.bindtextdomain("OpenShot", self.project.LOCALE_DIR)
++ #locale.bindtextdomain("OpenShot", self.project.LOCALE_DIR)
+
+ gettext.textdomain("OpenShot")
+ gettext.bindtextdomain("OpenShot", self.project.LOCALE_DIR)
+@@ -91,4 +91,4 @@
+ gettext.install(domain="OpenShot")
+
+ # This reference is used by other classes to define the _ method
+- self.lang = gettext.translation("OpenShot", self.project.LOCALE_DIR, languages = langs, fallback = True)
+\ No newline at end of file
++ self.lang = gettext.translation("OpenShot", self.project.LOCALE_DIR, languages = langs, fallback = True)
diff --git a/multimedia/openshot/files/patch-setup.py b/multimedia/openshot/files/patch-setup.py
new file mode 100644
index 000000000000..637829c0e50f
--- /dev/null
+++ b/multimedia/openshot/files/patch-setup.py
@@ -0,0 +1,42 @@
+--- ./setup.py.orig 2011-02-04 12:07:09.000000000 -0800
++++ ./setup.py 2011-03-04 04:57:02.000000000 -0800
+@@ -40,10 +40,10 @@
+ # XDG desktop mime types cache
+ ('share/mime/packages',['xdg/openshot.xml']),
+ # launcher (mime.types)
+- ('lib/mime/packages',['xdg/openshot']),
++ #('lib/mime/packages',['xdg/openshot']),
+ # man-page ("man 1 openshot")
+- ('share/man/man1',['docs/openshot.1']),
+- ('share/man/man1',['docs/openshot-render.1']),
++ ('man/man1',['docs/openshot.1']),
++ ('man/man1',['docs/openshot-render.1']),
+ ]
+
+ # Add all the translations
+@@ -70,7 +70,7 @@
+
+ FAILED = 'Failed to update.\n'
+
+-if ROOT and dist != None:
++if ROOT and sys.argv[1] == "install" and dist != None:
+ #update the XDG Shared MIME-Info database cache
+ try:
+ sys.stdout.write('Updating the Shared MIME-Info database cache.\n')
+@@ -79,11 +79,11 @@
+ sys.stderr.write(FAILED)
+
+ #update the mime.types database
+- try:
+- sys.stdout.write('Updating the mime.types database\n')
+- subprocess.call("update-mime")
+- except:
+- sys.stderr.write(FAILED)
++ #try:
++ # sys.stdout.write('Updating the mime.types database\n')
++ # subprocess.call("update-mime")
++ #except:
++ # sys.stderr.write(FAILED)
+
+ # update the XDG .desktop file database
+ try: