summaryrefslogtreecommitdiff
path: root/pcr/apertium/apertium-es-ro
diff options
context:
space:
mode:
authorGaming4JC <g4jc@openmailbox.org>2016-06-02 18:31:49 -0400
committerGaming4JC <g4jc@openmailbox.org>2016-06-02 18:31:49 -0400
commitb5b9c72ea9fc05600bfcab6569ce89ca2185d19d (patch)
treefc92b97e871bd08979ef19467f61df82944823a9 /pcr/apertium/apertium-es-ro
parent1e4284afcc1c32026ff03c8919ec8328b8f06bf9 (diff)
import more apertium files
Diffstat (limited to 'pcr/apertium/apertium-es-ro')
-rw-r--r--pcr/apertium/apertium-es-ro/Makefile.am.patch46
-rw-r--r--pcr/apertium/apertium-es-ro/PKGBUILD5
-rw-r--r--pcr/apertium/apertium-es-ro/configure.ac.patch42
-rw-r--r--pcr/apertium/apertium-es-ro/trules.patch56
4 files changed, 149 insertions, 0 deletions
diff --git a/pcr/apertium/apertium-es-ro/Makefile.am.patch b/pcr/apertium/apertium-es-ro/Makefile.am.patch
new file mode 100644
index 000000000..7f41f13ed
--- /dev/null
+++ b/pcr/apertium/apertium-es-ro/Makefile.am.patch
@@ -0,0 +1,46 @@
+--- ../apertium-es-ro-0.7.1/Makefile.am 2007-10-11 21:06:30.000000000 +0200
++++ apertium-es-ro-0.7.1/Makefile.am 2010-09-15 17:21:24.000000000 +0200
+@@ -49,7 +49,7 @@
+ apertium-validate-transfer $(BASENAME).trules-$(PREFIX1).xml
+ apertium-preprocess-transfer $(BASENAME).trules-$(PREFIX1).xml \
+ trules-$(PREFIX1).bin
+-
++
+ trules-$(PREFIX2).bin: $(BASENAME).trules-$(PREFIX2).xml
+ apertium-validate-transfer $(BASENAME).trules-$(PREFIX2).xml
+ apertium-preprocess-transfer $(BASENAME).trules-$(PREFIX2).xml \
+@@ -67,7 +67,7 @@
+ $(BASENAME).$(LANG2).tsx $(BASENAME).trules-$(PREFIX1).xml \
+ $(BASENAME).trules-$(PREFIX2).xml $(PREFIX1).prob $(PREFIX2).prob \
+ modes.xml
+-
++
+ apertium_es_rodir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
+ apertium_es_modesdir=$(prefix)/share/apertium/modes/
+
+@@ -79,20 +79,21 @@
+
+ modes: modes.xml
+ apertium-gen-modes modes.xml
+-
++
+ apertium_es_ro_DATA=$(PREFIX1).automorf.bin $(PREFIX2).automorf.bin \
+ $(PREFIX1).autobil.bin $(PREFIX2).autobil.bin \
+ $(PREFIX1).autogen.bin $(PREFIX2).autogen.bin \
+ $(PREFIX1).autopgen.bin $(PREFIX2).autopgen.bin \
+ $(PREFIX1).prob $(PREFIX2).prob trules-$(PREFIX1).xml \
+ trules-$(PREFIX2).xml trules-$(PREFIX1).bin \
+- trules-$(PREFIX2).bin $(PREFIX1).mode $(PREFIX2).mode
++ trules-$(PREFIX2).bin $(PREFIX2).mode
+
+ install-data-local:
+ apertium-gen-modes modes.xml apertium-$(PREFIX1)
++ $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_es_modesdir)
++ $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(BASENAME).trules-$(PREFIX1).xml $(DESTDIR)$(apertium_es_rodir)
++
+ # spanish -> romanian is not currently functional ~fmt
+ # $(INSTALL_DATA) $(PREFIX1).mode $(apertium_es_modesdir)
+- $(INSTALL_DATA) $(PREFIX2).mode $(apertium_es_modesdir)
+- $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(BASENAME).trules-$(PREFIX1).xml $(apertium_es_rodir)
+
+ CLEANFILES = -rf $(TARGETS) modes
diff --git a/pcr/apertium/apertium-es-ro/PKGBUILD b/pcr/apertium/apertium-es-ro/PKGBUILD
index df6ab4ba6..b5fb54588 100644
--- a/pcr/apertium/apertium-es-ro/PKGBUILD
+++ b/pcr/apertium/apertium-es-ro/PKGBUILD
@@ -32,4 +32,9 @@ build() {
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
} \ No newline at end of file
diff --git a/pcr/apertium/apertium-es-ro/configure.ac.patch b/pcr/apertium/apertium-es-ro/configure.ac.patch
new file mode 100644
index 000000000..11d0e3e47
--- /dev/null
+++ b/pcr/apertium/apertium-es-ro/configure.ac.patch
@@ -0,0 +1,42 @@
+--- ../apertium-es-ro-0.7.1/configure.ac 2007-10-11 21:06:44.000000000 +0200
++++ apertium-es-ro-0.7.1/configure.ac 2010-09-15 17:16:41.000000000 +0200
+@@ -12,7 +12,37 @@
+ AC_PROG_AWK
+ AC_CONFIG_HEADER([config])
+
+-PKG_CHECK_MODULES(apertium, [dnl
+- apertium-3.0 >= required_apertium_version])
++AC_DEFUN([PKG_CHECK_APERTIUM], [
++ APERTIUM_VER=0
++ PKG_CHECK_MODULES(APERTIUM, apertium-1.0 >= 1.0.0,
++ [
++ APERTIUM_VER=10
++ ],
++ [
++ PKG_CHECK_MODULES(APERTIUM, apertium-2.0 >= 2.0.0,
++ [
++ APERTIUM_VER=20
++ ],
++ [
++ PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0,
++ [
++ APERTIUM_VER=30
++ ],
++ [
++ PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0,
++ [
++ APERTIUM_VER=31
++ ],
++ [
++ PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= 3.2.0)
++ APERTIUM_VER=32
++ ])
++ ])
++ ])
++ ])
++ AC_SUBST(APERTIUM_VER)
++])
++
++PKG_CHECK_APERTIUM
+
+ AC_OUTPUT([Makefile])
diff --git a/pcr/apertium/apertium-es-ro/trules.patch b/pcr/apertium/apertium-es-ro/trules.patch
new file mode 100644
index 000000000..352f03e65
--- /dev/null
+++ b/pcr/apertium/apertium-es-ro/trules.patch
@@ -0,0 +1,56 @@
+--- ../apertium-es-ro-0.7.1/apertium-es-ro.trules-ro-es.xml 2007-10-11 21:04:49.000000000 +0200
++++ apertium-es-ro-0.7.1/apertium-es-ro.trules-ro-es.xml 2010-09-15 17:18:56.000000000 +0200
+@@ -4545,8 +4545,6 @@
+ <clip pos="3" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="4" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -4676,8 +4674,6 @@
+ <clip pos="2" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="3" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -4984,8 +4980,6 @@
+ <clip pos="2" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="3" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -5115,8 +5109,6 @@
+ <clip pos="2" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="3" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -5757,7 +5749,7 @@
+ </call-macro>
+ <choose>
+ <when>
+- <test>
++ <test><and>
+ <equal>
+ <clip pos="1" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+@@ -5766,7 +5758,7 @@
+ <clip pos="1" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+ </equal>
+- </test>
++ </and></test>
+ <call-macro n="modcase">
+ <with-param pos="1"/>
+ </call-macro>