From b5b9c72ea9fc05600bfcab6569ce89ca2185d19d Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Thu, 2 Jun 2016 18:31:49 -0400 Subject: import more apertium files --- pcr/apertium/apertium-en-ca/Makefile.am.patch | 39 ++++++++++++++++++++ pcr/apertium/apertium-en-ca/PKGBUILD | 2 +- pcr/apertium/apertium-en-ca/configure.ac.patch | 50 ++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 pcr/apertium/apertium-en-ca/Makefile.am.patch create mode 100644 pcr/apertium/apertium-en-ca/configure.ac.patch (limited to 'pcr/apertium/apertium-en-ca') diff --git a/pcr/apertium/apertium-en-ca/Makefile.am.patch b/pcr/apertium/apertium-en-ca/Makefile.am.patch new file mode 100644 index 000000000..e2578d941 --- /dev/null +++ b/pcr/apertium/apertium-en-ca/Makefile.am.patch @@ -0,0 +1,39 @@ +--- src/apertium-en-ca-0.9.3/Makefile.am.old 2011-10-21 11:50:27.000000000 +0200 ++++ src/apertium-en-ca-0.9.3/Makefile.am 2015-08-06 15:10:49.742491212 +0200 +@@ -14,16 +14,14 @@ + + TARGETS_COMMON = $(PREFIX1).automorf.bin $(PREFIX1).autobil.bin $(PREFIX1).autogen.bin \ + $(PREFIX1).autopgen.bin $(PREFIX2).automorf.bin $(PREFIX2).autobil.bin \ +- $(PREFIX2).autogen.bin $(PREFIX2).autopgen.bin $(PREFIX1).lextormono.bin $(PREFIX2).lextormono.bin \ +- $(PREFIX1).lextorbil.bin $(PREFIX2).lextorbil.bin $(PREFIX1).genitive.bin \ ++ $(PREFIX2).autogen.bin $(PREFIX2).autopgen.bin \ ++ $(PREFIX1).genitive.bin \ + $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \ + $(PREFIX1)-poly.autobil.bin $(PREFIX2)-poly.autobil.bin empty.bin \ + $(PREFIX2).t1x.bin $(PREFIX2).t2x.bin $(PREFIX2).t3x.bin modes \ + $(PREFIX2b).autogen.bin $(PREFVAR2)$(PREFIX1).autobil.bin + +-TARGETS = $(TARGETS_COMMON) \ +- $(BASENAME).$(LANG1)-lextor.dix $(BASENAME).$(LANG2)-lextor.dix \ +- $(BASENAME).$(PREFIX1)-lextor.dix $(BASENAME).$(PREFIX2)-lextor.dix ++TARGETS = $(TARGETS_COMMON) + + .deps/$(LANG1).metadix: $(BASENAME).$(LANG1).metadix + if [ ! -d .deps ]; then mkdir .deps; fi +@@ -251,7 +249,6 @@ + $(BASENAME).$(PREFIX1)-poly.dix $(BASENAME).$(PREFIX2)-poly.dix \ + $(PREFIX1).prob $(PREFIX2).prob \ + buscaPar.xsl principal.xsl apertium-en-ca.en.metadix \ +- $(PREFIX1).lextor $(PREFIX2).lextor \ + $(PREFIX1)-supervised.make $(PREFIX1)-unsupervised.make \ + $(PREFIX2)-supervised.make $(PREFIX2)-unsupervised.make \ + $(LANG1)-tagger-data/README $(LANG2)-tagger-data/README \ +@@ -272,8 +269,6 @@ + $(PREFVAR2)$(PREFIX1).autogen.bin $(PREFVAR2)$(PREFIX1).autopgen.bin\ + $(PREFIX1)-poly.autobil.bin $(PREFIX2)-poly.autobil.bin \ + $(PREFIX1).prob $(PREFIX2).prob \ +- $(PREFIX1).lextormono.bin $(PREFIX2).lextormono.bin \ +- $(PREFIX1).lextorbil.bin $(PREFIX2).lextorbil.bin \ + $(BASENAME).$(PREFIX1).genitive.t1x \ + $(PREFIX1).genitive.bin \ + $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \ diff --git a/pcr/apertium/apertium-en-ca/PKGBUILD b/pcr/apertium/apertium-en-ca/PKGBUILD index b6db8c887..70cecd785 100644 --- a/pcr/apertium/apertium-en-ca/PKGBUILD +++ b/pcr/apertium/apertium-en-ca/PKGBUILD @@ -36,4 +36,4 @@ package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install -} \ No newline at end of file +} diff --git a/pcr/apertium/apertium-en-ca/configure.ac.patch b/pcr/apertium/apertium-en-ca/configure.ac.patch new file mode 100644 index 000000000..a98d5fd31 --- /dev/null +++ b/pcr/apertium/apertium-en-ca/configure.ac.patch @@ -0,0 +1,50 @@ +--- src/apertium-en-ca-0.9.3/configure.ac.old 2014-10-06 08:20:42.497145582 +0200 ++++ src/apertium-en-ca-0.9.3/configure.ac 2014-10-06 08:20:54.236332341 +0200 +@@ -12,39 +12,8 @@ + AC_PROG_AWK + AC_CONFIG_HEADER([config]) + ++PKG_CHECK_MODULES(APERTIUM, apertium >= required_apertium_version, [], [PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= 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_PATH_PROG(XSLTPROC, xsltproc, no) + if test x$ac_cv_path_XSLTPROC = x +@@ -55,5 +24,5 @@ + then + AC_MSG_ERROR([You don't have xsltproc installed.]) + fi +- ++ + AC_OUTPUT([Makefile]) -- cgit v1.2.3-2-g168b