summaryrefslogtreecommitdiff
path: root/pcr/apertium/apertium-es-pt
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-pt
parent1e4284afcc1c32026ff03c8919ec8328b8f06bf9 (diff)
downloadabslibre-b5b9c72ea9fc05600bfcab6569ce89ca2185d19d.tar.gz
abslibre-b5b9c72ea9fc05600bfcab6569ce89ca2185d19d.tar.bz2
abslibre-b5b9c72ea9fc05600bfcab6569ce89ca2185d19d.zip
import more apertium files
Diffstat (limited to 'pcr/apertium/apertium-es-pt')
-rw-r--r--pcr/apertium/apertium-es-pt/Makefile.am.patch81
-rw-r--r--pcr/apertium/apertium-es-pt/PKGBUILD5
-rw-r--r--pcr/apertium/apertium-es-pt/configure.ac.patch20
3 files changed, 106 insertions, 0 deletions
diff --git a/pcr/apertium/apertium-es-pt/Makefile.am.patch b/pcr/apertium/apertium-es-pt/Makefile.am.patch
new file mode 100644
index 000000000..332c327b1
--- /dev/null
+++ b/pcr/apertium/apertium-es-pt/Makefile.am.patch
@@ -0,0 +1,81 @@
+--- ../apertium-es-pt-1.0.3/Makefile.am 2007-10-02 10:38:51.000000000 +0200
++++ apertium-es-pt-1.0.3/Makefile.am 2010-09-15 16:34:42.000000000 +0200
+@@ -31,11 +31,11 @@
+ $(PREFIX1b).autobil.bin: es-pt_BR.dix
+ apertium-validate-dictionary es-pt_BR.dix
+ lt-comp lr es-pt_BR.dix $@
+-
++
+ $(PREFIX1b).autogen.bin: pt_BR.dix
+ apertium-validate-dictionary pt_BR.dix
+ lt-comp rl pt_BR.dix $@
+-
++
+ $(PREFIX1).autopgen.bin: $(BASENAME).post-$(LANG2).dix
+ apertium-validate-dictionary $(BASENAME).post-$(LANG2).dix
+ lt-comp lr $(BASENAME).post-$(LANG2).dix $@
+@@ -60,13 +60,13 @@
+ apertium-validate-transfer $(BASENAME).trules-$(PREFIX2).xml
+ apertium-preprocess-transfer $(BASENAME).trules-$(PREFIX2).xml \
+ trules-$(PREFIX2).bin
+-
++
+ trules-$(PREFIX1).xml: $(BASENAME).trules-$(PREFIX1).xml
+ ./filterrules.sh pt_PT $(BASENAME).trules-$(PREFIX1).xml >$@
+
+ trules-$(PREFIX1b).xml: $(BASENAME).trules-$(PREFIX1).xml
+ ./filterrules.sh pt_BR $(BASENAME).trules-$(PREFIX1).xml >$@
+-
++
+ trules-$(PREFIX1).bin: trules-$(PREFIX1).xml
+ apertium-validate-transfer trules-$(PREFIX1).xml
+ apertium-preprocess-transfer trules-$(PREFIX1).xml $@
+@@ -87,20 +87,20 @@
+ $(PREFIX2)-supervised.make $(PREFIX2)-unsupervised.make \
+ $(LANG2).dix $(LANG2b).dix $(PREFIX1).dix $(PREFIX1b).dix \
+ filter.sh filter.xsl filterrules.sh filterrules.xsl modes.xml
+-
++
+ apertium_es_ptdir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
+ apertium_es_modesdir=$(prefix)/share/apertium/modes/
+
+
+ pt.dix: $(BASENAME).$(LANG2).dix
+ ./filter.sh pt left $(BASENAME).$(LANG2).dix >$@
+-
++
+ pt_BR.dix: $(BASENAME).$(LANG2).dix
+ ./filter.sh br left $(BASENAME).$(LANG2).dix >$@
+-
++
+ es-pt.dix: $(BASENAME).$(PREFIX1).dix
+ ./filter.sh pt right $(BASENAME).$(PREFIX1).dix >$@
+-
++
+ es-pt_BR.dix: $(BASENAME).$(PREFIX1).dix
+ ./filter.sh br right $(BASENAME).$(PREFIX1).dix >$@
+
+@@ -115,7 +115,7 @@
+
+ modes: modes.xml
+ apertium-gen-modes modes.xml
+-
++
+ apertium_es_pt_DATA=$(PREFIX1).automorf.bin $(PREFIX2).automorf.bin \
+ $(PREFIX1).autobil.bin $(PREFIX2).autobil.bin \
+ $(PREFIX1b).autobil.bin $(PREFIX1b).autogen.bin \
+@@ -128,10 +128,10 @@
+
+ install-data-local:
+ $(prefix)/bin/apertium-gen-modes modes.xml apertium-$(PREFIX1)
+- $(INSTALL_DATA) $(PREFIX1).mode $(apertium_es_modesdir)
+- $(INSTALL_DATA) $(PREFIX1b).mode $(apertium_es_modesdir)
+- $(INSTALL_DATA) $(PREFIX2).mode $(apertium_es_modesdir)
+- $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(BASENAME).trules-$(PREFIX1).xml trules-$(PREFIX1b).xml $(apertium_es_ptdir)
++ $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_es_modesdir)
++ $(INSTALL_DATA) $(PREFIX1b).mode $(DESTDIR)$(apertium_es_modesdir)
++ $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_es_modesdir)
++ $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(BASENAME).trules-$(PREFIX1).xml trules-$(PREFIX1b).xml $(DESTDIR)$(apertium_es_ptdir)
+
+
+ CLEANFILES = -rf $(TARGETS) pt.dix pt_BR.dix es-pt.dix es-pt_BR.dix modes
diff --git a/pcr/apertium/apertium-es-pt/PKGBUILD b/pcr/apertium/apertium-es-pt/PKGBUILD
index 1a898b238..97011a735 100644
--- a/pcr/apertium/apertium-es-pt/PKGBUILD
+++ b/pcr/apertium/apertium-es-pt/PKGBUILD
@@ -29,4 +29,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-pt/configure.ac.patch b/pcr/apertium/apertium-es-pt/configure.ac.patch
new file mode 100644
index 000000000..6ee8c4be8
--- /dev/null
+++ b/pcr/apertium/apertium-es-pt/configure.ac.patch
@@ -0,0 +1,20 @@
+--- ../apertium-es-pt-1.0.3/configure.ac 2007-10-02 12:39:06.000000000 +0200
++++ apertium-es-pt-1.0.3/configure.ac 2010-09-21 16:08:38.124072111 +0200
+@@ -10,9 +10,14 @@
+ AC_PROG_AWK
+ AC_CONFIG_HEADER([config])
+
+-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)
+