hunspell: portability patch from Alpine.
This commit is contained in:
parent
99f32e9298
commit
3fed36f5e0
2 changed files with 23 additions and 2 deletions
22
srcpkgs/hunspell/patches/fix-includes.patch
Normal file
22
srcpkgs/hunspell/patches/fix-includes.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- src/tools/munch.c
|
||||||
|
+++ src/tools/munch.c
|
||||||
|
@@ -9,7 +9,7 @@
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <limits.h>
|
||||||
|
-#if defined(__linux__) && !defined(__ANDROID__)
|
||||||
|
+#if defined(__GLIBC__)
|
||||||
|
#include <error.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
--- src/tools/unmunch.c
|
||||||
|
+++ src/tools/unmunch.c
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#if defined(__linux__) && !defined(__ANDROID__)
|
||||||
|
+#if defined(__GLIBC__)
|
||||||
|
#include <error.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <sys/mman.h>
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'hunspell'
|
# Template file for 'hunspell'
|
||||||
pkgname=hunspell
|
pkgname=hunspell
|
||||||
version=1.3.3
|
version=1.3.3
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-ui"
|
configure_args="--with-ui"
|
||||||
hostmakedepends="pkg-config bison"
|
hostmakedepends="pkg-config bison"
|
||||||
|
@ -19,7 +19,6 @@ libhunspell_package() {
|
||||||
vmove "usr/lib/*.so.*"
|
vmove "usr/lib/*.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hunspell-devel_package() {
|
hunspell-devel_package() {
|
||||||
depends="libstdc++-devel ncurses-devel lib${sourcepkg}>=${version}_${revision}"
|
depends="libstdc++-devel ncurses-devel lib${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue