summaryrefslogtreecommitdiff
path: root/user/hyphen
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-08-19 03:38:17 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-08-19 03:38:17 +0000
commitcb6f083b369ee59de217c0504d471124d533325d (patch)
tree28e404754d754f3a852831d2b649010f70695e01 /user/hyphen
parent7ef2ed32d3d4442463f39d31380cff9432608231 (diff)
parentc5975fc819d7b79180a3627a87974da9d18685e3 (diff)
downloadpackages-cb6f083b369ee59de217c0504d471124d533325d.tar.gz
packages-cb6f083b369ee59de217c0504d471124d533325d.tar.bz2
packages-cb6f083b369ee59de217c0504d471124d533325d.tar.xz
packages-cb6f083b369ee59de217c0504d471124d533325d.zip
Merge branch 'libreoffice' into 'master'
LibreOffice and dependencies I have made a deal with Satan. See merge request !44
Diffstat (limited to 'user/hyphen')
-rw-r--r--user/hyphen/APKBUILD49
-rw-r--r--user/hyphen/mawk.patch23
2 files changed, 72 insertions, 0 deletions
diff --git a/user/hyphen/APKBUILD b/user/hyphen/APKBUILD
new file mode 100644
index 000000000..eb37c9a1b
--- /dev/null
+++ b/user/hyphen/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=hyphen
+pkgver=2.8.8
+pkgrel=1
+pkgdesc="Library for high quality word hyphenation and justification"
+url="https://hunspell.sourceforge.net/"
+arch="all"
+license="LGPL-2.1+ OR LGPL-2.0+ OR MPL-1.0 or GPL-2.0+"
+subpackages="$pkgname-dev"
+depends=""
+depends_dev="perl"
+makedepends="$depends_dev"
+source="https://downloads.sourceforge.net/hunspell/$pkgname-$pkgver.tar.gz
+ mawk.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --disable-static \
+ --disable-dependency-tracking \
+ --enable-fast-install
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
+ # The en_US dictionary that comes with has an unacceptable license
+ # and it isn't really needed anyway since libreoffice has its own
+ rm -r "$pkgdir"/usr/share
+}
+
+dev() {
+ default_dev
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+sha512sums="ee514952be56869840b70fb74f60eba14dc4de246733ff8705492367e8cf00c485f8778a9d5a7ba374c988d4ac9fedbe75826dc559e1b62465dbfba21f6ce7de hyphen-2.8.8.tar.gz
+c9ee32c265ded1e862baae69ec30f3a1769b447bdcf0b51d1d59d5fe4c986c8fdf04049085344311f411cd0204a5f7c003eb290669a668d9b137c74698d1c8b0 mawk.patch"
diff --git a/user/hyphen/mawk.patch b/user/hyphen/mawk.patch
new file mode 100644
index 000000000..c9292606a
--- /dev/null
+++ b/user/hyphen/mawk.patch
@@ -0,0 +1,23 @@
+--- hyphen-2.8.8/lig.awk 2010-03-04 07:13:47.000000000 -0500
++++ hyphen-2.8.8/lig.awk 2018-08-08 14:53:48.970188512 -0400
+@@ -24,14 +24,14 @@
+ c!=b { print c }
+
+ /f[1-9]?$/ {
+- print gensub("f[1-9]?$", "ff", "g", b);
+- if (c!=b) print gensub("f[1-9]?$", "ff", "g", c);
++ print gsub("f[1-9]?$", "ff", b);
++ if (c!=b) print gsub("f[1-9]?$", "ff", c);
+
+- print gensub("f[1-9]?$", "fi", "g", b);
+- if (c!=b) print gensub("f[1-9]?$", "fi", "g", c);
++ print gsub("f[1-9]?$", "fi", b);
++ if (c!=b) print gsub("f[1-9]?$", "fi", c);
+
+- print gensub("f[1-9]?$", "fl", "g", b);
+- if (c!=b) print gensub("f[1-9]?$", "fl", "g", c);
++ print gsub("f[1-9]?$", "fl", b);
++ if (c!=b) print gsub("f[1-9]?$", "fl", c);
+ }
+
+