diff options
Diffstat (limited to 'pcr/apertium/apertium-fr-ca')
-rw-r--r-- | pcr/apertium/apertium-fr-ca/Makefile.am.patch | 38 | ||||
-rw-r--r-- | pcr/apertium/apertium-fr-ca/PKGBUILD | 5 | ||||
-rw-r--r-- | pcr/apertium/apertium-fr-ca/configure.ac.patch | 19 |
3 files changed, 62 insertions, 0 deletions
diff --git a/pcr/apertium/apertium-fr-ca/Makefile.am.patch b/pcr/apertium/apertium-fr-ca/Makefile.am.patch new file mode 100644 index 000000000..30bb29327 --- /dev/null +++ b/pcr/apertium/apertium-fr-ca/Makefile.am.patch @@ -0,0 +1,38 @@ +--- ../apertium-fr-ca-1.0.2/Makefile.am 2009-03-12 20:49:44.000000000 +0100 ++++ apertium-fr-ca-1.0.2/Makefile.am 2010-09-15 15:49:32.000000000 +0200 +@@ -48,7 +48,7 @@ + apertium-validate-transfer $(BASENAME).$(PREFIX1).t1x + apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t1x \ + $(PREFIX1).t1x.bin +- ++ + $(PREFIX2).t1x.bin: $(BASENAME).$(PREFIX2).t1x + apertium-validate-transfer $(BASENAME).$(PREFIX2).t1x + apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t1x \ +@@ -64,12 +64,12 @@ + $(PREFIX1)-supervised.make $(PREFIX1)-unsupervised.make \ + $(PREFIX2)-supervised.make $(PREFIX2)-unsupervised.make \ + $(LANG1)-tagger-data/README $(LANG2)-tagger-data/README +- ++ + apertium-fr-ca.fr.dix: apertium-fr-ca.fr.metadix + @xsltproc buscaPar.xsl apertium-fr-ca.fr.metadix | uniq > $$gen.xsl + @xsltproc $$gen.xsl apertium-fr-ca.fr.metadix >$@ + @rm $$gen.xsl +- ++ + apertium_fr_cadir=$(prefix)/share/apertium/apertium-$(PREFIX1)/ + apertium_fr_modesdir=$(prefix)/share/apertium/modes/ + +@@ -91,8 +91,8 @@ + + install-data-local: + apertium-gen-modes modes.xml apertium-$(PREFIX1) +- $(INSTALL_DATA) $(PREFIX1).mode $(apertium_fr_modesdir) +- $(INSTALL_DATA) $(PREFIX2).mode $(apertium_fr_modesdir) +- $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(BASENAME).$(PREFIX1).t1x $(apertium_fr_cadir) ++ $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_fr_modesdir) ++ $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_fr_modesdir) ++ $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(BASENAME).$(PREFIX1).t1x $(DESTDIR)$(apertium_fr_cadir) + + CLEANFILES = -rf $(TARGETS) modes $(BASENAME).$(LANG1).dix *.mode diff --git a/pcr/apertium/apertium-fr-ca/PKGBUILD b/pcr/apertium/apertium-fr-ca/PKGBUILD index 9e355ee94..5a78cc3e2 100644 --- a/pcr/apertium/apertium-fr-ca/PKGBUILD +++ b/pcr/apertium/apertium-fr-ca/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-fr-ca/configure.ac.patch b/pcr/apertium/apertium-fr-ca/configure.ac.patch new file mode 100644 index 000000000..5006f7e0d --- /dev/null +++ b/pcr/apertium/apertium-fr-ca/configure.ac.patch @@ -0,0 +1,19 @@ +--- ../apertium-fr-ca-1.0.2/configure.ac 2009-03-12 20:55:15.000000000 +0100 ++++ apertium-fr-ca-1.0.2/configure.ac 2010-09-21 16:13:21.567405445 +0200 +@@ -27,8 +27,14 @@ + APERTIUM_VER=30 + ], + [ +- PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0) +- APERTIUM_VER=31 ++ 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 ++ ]) + ]) + ]) + ]) |