summaryrefslogtreecommitdiff
path: root/textproc/translate-toolkit/files
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/translate-toolkit/files')
-rw-r--r--textproc/translate-toolkit/files/patch-requirements-optional.txt38
-rw-r--r--textproc/translate-toolkit/files/patch-tools-pocompendium28
-rw-r--r--textproc/translate-toolkit/files/patch-tools-pomigrate222
-rw-r--r--textproc/translate-toolkit/files/patch-tools-popuretext11
-rw-r--r--textproc/translate-toolkit/files/patch-tools-poreencode10
5 files changed, 109 insertions, 0 deletions
diff --git a/textproc/translate-toolkit/files/patch-requirements-optional.txt b/textproc/translate-toolkit/files/patch-requirements-optional.txt
new file mode 100644
index 000000000000..73cb62ce072d
--- /dev/null
+++ b/textproc/translate-toolkit/files/patch-requirements-optional.txt
@@ -0,0 +1,38 @@
+--- requirements/optional.txt.orig 2020-09-23 07:08:04 UTC
++++ requirements/optional.txt
+@@ -1,25 +1,25 @@
+ -r required.txt
+
+ # Format support
+-aeidon==1.7.0 # Subtitles
++aeidon>=1.7.0 # Subtitles
+ # Format support
+ BeautifulSoup4>=4.3 # Trados
+ # Encoding detection
+-chardet==3.0.4 # chardet
++chardet>=3.0.4 # chardet
+ # Tmserver backend
+-cheroot==8.4.5 # tmserver
++cheroot>=8.4.5 # tmserver
+ # Format support
+-iniparse==0.5 # INI
++iniparse>=0.5 # INI
+ # Format support
+-phply==1.2.5 # PHP
++phply>=1.2.5 # PHP
+ # To provide translations for language names without need for OS package.
+-pycountry==20.7.3 # Languages
+-pyenchant==3.1.1 # spellcheck
++pycountry>=20.7.3 # Languages
++pyenchant>=3.1.1 # spellcheck
+ # Windows Resources (rc2po and po2rc)
+-pyparsing==2.4.7 # RC
++pyparsing>=2.4.7 # RC
+ # Faster matching in e.g. pot2po
+ python-Levenshtein>=0.12 # Levenshtein
+ # Format support
+-ruamel.yaml==0.16.12 # YAML
++ruamel.yaml>=0.16.12 # YAML
+ # Format support
+-vobject==0.9.6.1 # iCal
++vobject>=0.9.6.1 # iCal
diff --git a/textproc/translate-toolkit/files/patch-tools-pocompendium b/textproc/translate-toolkit/files/patch-tools-pocompendium
new file mode 100644
index 000000000000..6eaa5de7742b
--- /dev/null
+++ b/textproc/translate-toolkit/files/patch-tools-pocompendium
@@ -0,0 +1,28 @@
+--- tools/pocompendium.orig 2020-04-25 10:43:45 UTC
++++ tools/pocompendium
+@@ -94,7 +94,7 @@ fi
+ output=$1
+ shift
+
+-tmp_dir=`mktemp -d tmp.XXXXXXXXXX`
++tmp_dir=`mktemp -d -t /tmp tmp.XXXXXXXXXX`
+
+ if [ $1 == "-d" ]; then
+ shift
+@@ -159,14 +159,14 @@ msgcat -o $output `find $tmp_dir -name "*.po"` 2> >(eg
+
+ # Extract only errors if requested
+ if [ $option_errors -eq 1 ] ; then
+- tmp=`mktemp tmp.XXXXXXXXXX`
++ tmp=`mktemp -t /tmp tmp.XXXXXXXXXX`
+ msgattrib --only-fuzzy $output > $tmp
+ mv $tmp $output
+ fi
+
+ # Extract only correct translations if requested
+ if [ $option_correct -eq 1 ] ; then
+- tmp=`mktemp tmp.XXXXXXXXXX`
++ tmp=`mktemp -t /tmp tmp.XXXXXXXXXX`
+ msgattrib --translated --no-fuzzy -o $tmp $output 2> >(egrep -v "warning: internationali.ed messages should not contain the .* escape sequence" >&2) && mv $tmp $output
+ fi
+
diff --git a/textproc/translate-toolkit/files/patch-tools-pomigrate2 b/textproc/translate-toolkit/files/patch-tools-pomigrate2
new file mode 100644
index 000000000000..db624196313b
--- /dev/null
+++ b/textproc/translate-toolkit/files/patch-tools-pomigrate2
@@ -0,0 +1,22 @@
+--- tools/pomigrate2.orig 2020-04-25 10:43:45 UTC
++++ tools/pomigrate2
+@@ -125,7 +125,7 @@ done
+
+ if [ "$option_use_compendium" != "" ]; then
+ echo "** Creating compendium from old files... **"
+- compendium=`mktemp tmp.compendium.XXXXXXXXXX`
++ compendium=`mktemp -t /tmp tmp.compendium.XXXXXXXXXX`
+ # Move and rename to work around inability of mktemp TEMPLATE to end on anything but X's
+ mv $compendium ${compendium}.po
+ compendium=${compendium}.po
+@@ -144,8 +144,8 @@ if [ ! $option_pot2po ]; then
+ [ -f $templates/${po}t ] && msgmerge --previous $option_verbose_msgmerge $option_no_fuzzy_matching $option_no_wrap $option_use_compendium $option_use_own_compendium --backup=off --update $new/$po $templates/${po}t
+ done
+ else
+- temp_pot2po_new=`mktemp -d tmp.XXXXXXXXXX`
+- temp_msgcat_new=`mktemp -d tmp.XXXXXXXXXX`
++ temp_pot2po_new=`mktemp -d -t /tmp tmp.XXXXXXXXXX`
++ temp_msgcat_new=`mktemp -d -t /tmp tmp.XXXXXXXXXX`
+ cp -rp $new/* $temp_pot2po_new
+ pot2po --errorlevel=traceback --progress=none $option_pot2po_use_compendium $option_pot2po_use_own_compendium -t $temp_pot2po_new $templates $temp_msgcat_new
+ for file in `cd $temp_msgcat_new; find . -name "*.po"`
diff --git a/textproc/translate-toolkit/files/patch-tools-popuretext b/textproc/translate-toolkit/files/patch-tools-popuretext
new file mode 100644
index 000000000000..9fbc920e5002
--- /dev/null
+++ b/textproc/translate-toolkit/files/patch-tools-popuretext
@@ -0,0 +1,11 @@
+--- tools/popuretext.orig 2020-04-25 10:43:45 UTC
++++ tools/popuretext
+@@ -39,7 +39,7 @@ accelerator=$3
+
+
+ if [ $do_pot -eq 1 ]; then
+- tempdir=`mktemp -d tmp.XXXXXXXXXX`
++ tempdir=`mktemp -d -t /tmp tmp.XXXXXXXXXX`
+ for pot in `cd $potdir; find . -name "*.pot"`
+ do
+ mkdir -p $tempdir/$(dirname $pot)
diff --git a/textproc/translate-toolkit/files/patch-tools-poreencode b/textproc/translate-toolkit/files/patch-tools-poreencode
new file mode 100644
index 000000000000..63c513b22ad0
--- /dev/null
+++ b/textproc/translate-toolkit/files/patch-tools-poreencode
@@ -0,0 +1,10 @@
+--- tools/poreencode.orig 2020-04-25 10:43:45 UTC
++++ tools/poreencode
+@@ -33,6 +33,6 @@ po_dir=$2
+
+ for po_file in `find $po_dir -name "*.po"`
+ do
+- tmp=`mktemp tmp.XXXXXXXXXX`
++ tmp=`mktemp -t /tmp tmp.XXXXXXXXXX`
+ msgconv -o $tmp $po_file && mv $tmp $po_file
+ done