summaryrefslogtreecommitdiff
path: root/pcr/apertium/apertium-pt-gl
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/apertium/apertium-pt-gl')
-rw-r--r--pcr/apertium/apertium-pt-gl/Makefile.am.patch34
-rw-r--r--pcr/apertium/apertium-pt-gl/PKGBUILD5
-rw-r--r--pcr/apertium/apertium-pt-gl/configure.ac.patch19
3 files changed, 58 insertions, 0 deletions
diff --git a/pcr/apertium/apertium-pt-gl/Makefile.am.patch b/pcr/apertium/apertium-pt-gl/Makefile.am.patch
new file mode 100644
index 000000000..4bf675a5d
--- /dev/null
+++ b/pcr/apertium/apertium-pt-gl/Makefile.am.patch
@@ -0,0 +1,34 @@
+--- ../apertium-pt-gl-0.9.1/Makefile.am 2009-03-03 20:36:19.000000000 +0100
++++ apertium-pt-gl-0.9.1/Makefile.am 2010-09-15 16:24:56.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 \
+@@ -68,7 +68,7 @@
+ $(BASENAME).trules-$(PREFIX2).xml $(PREFIX1).prob $(PREFIX2).prob \
+ $(PREFIX1)-latin1.prob $(PREFIX2)-latin1.prob \
+ modes.xml
+-
++
+ apertium_pt_gldir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
+ apertium_pt_modesdir=$(prefix)/share/apertium/modes/
+ apertium_pt_gl_DATA=$(PREFIX1).automorf.bin $(PREFIX2).automorf.bin \
+@@ -87,9 +87,9 @@
+
+ install-data-local:
+ apertium-gen-modes modes.xml apertium-$(PREFIX1)
+- $(INSTALL_DATA) $(PREFIX1).mode $(apertium_pt_modesdir)
+- $(INSTALL_DATA) $(PREFIX2).mode $(apertium_pt_modesdir)
+- $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX1).xml $(apertium_pt_gldir)
+- $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(apertium_pt_gldir)
++ $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_pt_modesdir)
++ $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_pt_modesdir)
++ $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX1).xml $(DESTDIR)$(apertium_pt_gldir)
++ $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(DESTDIR)$(apertium_pt_gldir)
+
+ CLEANFILES = -rf $(TARGETS_COMMON) modes trules-$(PREFIX1).xml trules-$(PREFIX2).xml trules-$(PREFIX1).bin trules-$(PREFIX2).bin
diff --git a/pcr/apertium/apertium-pt-gl/PKGBUILD b/pcr/apertium/apertium-pt-gl/PKGBUILD
index 7a8ddee49..4078e56a8 100644
--- a/pcr/apertium/apertium-pt-gl/PKGBUILD
+++ b/pcr/apertium/apertium-pt-gl/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-pt-gl/configure.ac.patch b/pcr/apertium/apertium-pt-gl/configure.ac.patch
new file mode 100644
index 000000000..29df734c4
--- /dev/null
+++ b/pcr/apertium/apertium-pt-gl/configure.ac.patch
@@ -0,0 +1,19 @@
+--- ../apertium-pt-gl-0.9.1/configure.ac 2009-03-03 20:36:40.000000000 +0100
++++ apertium-pt-gl-0.9.1/configure.ac 2010-09-21 16:37:31.294072111 +0200
+@@ -19,8 +19,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
++ ])
+ ])
+ AC_SUBST(APERTIUM_VER)
+ ])