From ebc249339d65624b2eb2367fd96724f76da812b3 Mon Sep 17 00:00:00 2001 From: Shawn W Dunn Date: Sat, 1 Oct 2016 15:04:18 -0700 Subject: [PATCH] initial working omegat Signed-off-by: Shawn W Dunn --- files/0001-disable_win_mac.patch | 159 +++++++++++++++++++++++++++++++++++++++ files/omegat | 3 + files/omegat.desktop | 10 +++ package.yml | 38 ++++++++++ pspec_x86_64.xml | 46 +++++++++++ 5 files changed, 256 insertions(+) create mode 100644 files/0001-disable_win_mac.patch create mode 100755 files/omegat create mode 100644 files/omegat.desktop create mode 100644 package.yml create mode 100644 pspec_x86_64.xml diff --git a/files/0001-disable_win_mac.patch b/files/0001-disable_win_mac.patch new file mode 100644 index 0000000..96c2283 --- /dev/null +++ b/files/0001-disable_win_mac.patch @@ -0,0 +1,159 @@ +Index: b/build.xml +=================================================================== +--- a/build.xml 2016-03-13 19:25:48.000000000 -0700 ++++ b/build.xml 2016-10-01 14:47:59.242515445 -0700 +@@ -137,10 +137,6 @@ + + + +- +- +- +- + + + +@@ -252,7 +248,6 @@ + + + +- + + +@@ -331,100 +326,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + +@@ -433,22 +334,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + +@@ -456,9 +341,9 @@ + + + +- ++ + +- ++ + + + diff --git a/files/omegat b/files/omegat new file mode 100755 index 0000000..bda33c5 --- /dev/null +++ b/files/omegat @@ -0,0 +1,3 @@ +#!/bin/sh +REALOMEGATPATH=/usr/share/OmegaT +java -jar -Xmx1024m -Dawt.useSystemAAFontSettings=on "${REALOMEGATPATH}/OmegaT.jar" $* diff --git a/files/omegat.desktop b/files/omegat.desktop new file mode 100644 index 0000000..98c4ea7 --- /dev/null +++ b/files/omegat.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=OmegaT +GenericName=OmegaT-beta +Exec=omegat +Type=Application +Comment=Beta version of free translation memory application. +Comment[cs]=Beta verze svobodné aplikace překladové paměti. +Terminal=false +Categories=Development;Translation;Java; +Icon=omegat diff --git a/package.yml b/package.yml new file mode 100644 index 0000000..db714ae --- /dev/null +++ b/package.yml @@ -0,0 +1,38 @@ +name : OmegaT +version : 3.6.0_03 +release : 1 +source : + - http://pilotfiber.dl.sourceforge.net/project/omegat/OmegaT%20-%20Standard/OmegaT%203.6.0%20update%203/OmegaT_3.6.0_03_Source.zip : 85e148fc48227634847592f013c4c92240b18e77ef8b3b3f63887c3b0c229802 +license : GPL-3.0 +component : office +summary : CAT tool for professional translators +description: | + OmegaT is a free translation memory application written in Java. It is a tool intended for professional translators. It does not translate for you! (Software that does this is called "machine translation", and you will have to look elsewhere for it.) +builddeps : + - apache-ant +rundeps : + - openjdk-8 +patterns : + - docs : + - /usr/share/doc/OmegaT +setup : | + %patch -p1 < $pkgfiles/0001-disable_win_mac.patch +build : | + ant + # Fix end-of-line encoding + sed -i 's/\r//' dist/*.txt + find dist/docs/ -type f -exec sed -i 's/\r//' {} \; +install : | + install -d $installdir/usr/share/doc/OmegaT + install -d $installdir/usr/share/OmegaT/{images,images/OmegaT.iconset,lib,plugins} + install -Dm 755 $pkgfiles/omegat $installdir/usr/bin/omegat + install -Dm 644 $pkgfiles/omegat.desktop $installdir/usr/share/applications/omegat.desktop + install -Dm 644 dist/{*.txt,*.html} $installdir/usr/share/doc/OmegaT/ + cp -R dist/docs $installdir/usr/share/doc/OmegaT/ + + install -Dm 644 dist/images/{*.gif,*.icns,*.ico,*.png,*.svg} $installdir/usr/share/OmegaT/images/ + install -Dm 644 dist/images/OmegaT.iconset/* $installdir/usr/share/OmegaT/images/OmegaT.iconset/ + install -Dm 644 dist/lib/*.jar $installdir/usr/share/OmegaT/lib/ + install -Dm 644 dist/plugins/* $installdir/usr/share/OmegaT/plugins/ + install -Dm 644 dist/OmegaT.jar $installdir/usr/share/OmegaT/ + diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml new file mode 100644 index 0000000..e47be5b --- /dev/null +++ b/pspec_x86_64.xml @@ -0,0 +1,46 @@ + + + OmegaT + + Shawn W Dunn + sfalken@cloverleaf-linux.org + + GPL-3.0 + office + CAT tool for professional translators + OmegaT is a free translation memory application written in Java. It is a tool intended for professional translators. It does not translate for you! (Software that does this is called "machine translation", and you will have to look elsewhere for it.) + + https://solus-project.com/sources/README.Solus + + + OmegaT + CAT tool for professional translators + OmegaT is a free translation memory application written in Java. It is a tool intended for professional translators. It does not translate for you! (Software that does this is called "machine translation", and you will have to look elsewhere for it.) + + office + + /usr/bin + /usr/share/OmegaT + /usr/share/applications/omegat.desktop + + + + OmegaT-docs + Documentation for OmegaT + OmegaT is a free translation memory application written in Java. It is a tool intended for professional translators. It does not translate for you! (Software that does this is called "machine translation", and you will have to look elsewhere for it.) + + programming.docs + + /usr/share/doc/OmegaT + + + + + 2016-10-01 + 3.6.0_03 + Packaging update + Shawn W Dunn + sfalken@cloverleaf-linux.org + + + \ No newline at end of file -- 2.10.0