├── README.md ├── appveyor.yml ├── aspell-mingw.patch └── build-dict.sh /README.md: -------------------------------------------------------------------------------- 1 | # Aspell binary for Windows 64-bit 2 | 3 | [![Build status](https://ci.appveyor.com/api/projects/status/dmhpblbqnn2rjuop?svg=true)](https://ci.appveyor.com/project/iquiw/aspell-binary) 4 | 5 | This repository sets up Appveyor CI for Aspell build, which builds https://github.com/GNUAspell/aspell 6 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | 3 | clone_depth: 1 4 | 5 | environment: 6 | ASPELL_VERSION: 0.60.8.1 7 | 8 | install: 9 | - git clone --depth 1 -b rel-%ASPELL_VERSION% https://github.com/GNUAspell/aspell.git 10 | - set PATH=C:\msys64\mingw64\bin;C:\msys64\bin;C:\msys64\usr\bin;%PATH%; 11 | 12 | before_build: 13 | - cd aspell 14 | - ps: $env:GITCOMMIT_FULL = git rev-parse HEAD 15 | 16 | build_script: 17 | - patch -p1 < ../aspell-mingw.patch 18 | - bash autogen 19 | - bash configure --prefix=C:/Aspell 20 | - make 21 | 22 | after_build: 23 | - make install 24 | - copy COPYING C:\Aspell 25 | - bash ../build-dict.sh 26 | - 7z a %APPVEYOR_BUILD_FOLDER%\aspell-%ASPELL_VERSION%.7z C:\Aspell 27 | - ps: | 28 | $env:ARTIFACT_HASH = (Get-FileHash -Algorithm SHA256 $env:APPVEYOR_BUILD_FOLDER\aspell-$env:ASPELL_VERSION.7z).Hash 29 | "$env:ARTIFACT_HASH aspell-$env:ASPELL_VERSION.7z" | Out-File -Encoding ascii -File $env:APPVEYOR_BUILD_FOLDER\sha256sum.txt 30 | 31 | artifacts: 32 | - path: aspell-$(ASPELL_VERSION).7z 33 | name: Aspell binary archive 34 | - path: sha256sum.txt 35 | name: SHA256 hash of Aspell binary archive 36 | 37 | deploy: 38 | - provider: GitHub 39 | release: $(appveyor_repo_tag_name) 40 | description: | 41 | Aspell binary for Windows 64-bit. 42 | 43 | Built https://github.com/GNUAspell/aspell at commit `$(GITCOMMIT_FULL)`. 44 | 45 | | File | SHA-256 sum | 46 | | --- | --- | 47 | | aspell-$(ASPELL_VERSION).7z | `$(ARTIFACT_HASH)` | 48 | auth_token: 49 | secure: C3qhjaJSP+I+OZcx+iRef6lzMZNp6boJMgxrXAjQ7PJPjsByhjQAL2kT7pvl2rdG 50 | artifact: aspell-$(ASPELL_VERSION).7z,sha256sum.txt 51 | on: 52 | branch: master 53 | appveyor_repo_tag: true 54 | -------------------------------------------------------------------------------- /aspell-mingw.patch: -------------------------------------------------------------------------------- 1 | diff --git a/common/config.cpp b/common/config.cpp 2 | index 72fbc72..ab93f79 100644 3 | --- a/common/config.cpp 4 | +++ b/common/config.cpp 5 | @@ -39,6 +39,10 @@ 6 | #include "vararray.hpp" 7 | #include "string_list.hpp" 8 | 9 | +#define printf printf 10 | +#include "libintl.h" 11 | +#undef printf 12 | + 13 | #include "gettext.h" 14 | 15 | #include "iostream.hpp" 16 | diff --git a/common/convert.cpp b/common/convert.cpp 17 | index 7ddd370..84d0b97 100644 18 | --- a/common/convert.cpp 19 | +++ b/common/convert.cpp 20 | @@ -22,6 +22,10 @@ 21 | 22 | #include "iostream.hpp" 23 | 24 | +#define printf printf 25 | +#include "libintl.h" 26 | +#undef printf 27 | + 28 | #include "gettext.h" 29 | 30 | namespace acommon { 31 | diff --git a/common/file_util.cpp b/common/file_util.cpp 32 | index 56ea501..299f8ea 100644 33 | --- a/common/file_util.cpp 34 | +++ b/common/file_util.cpp 35 | @@ -30,6 +30,7 @@ 36 | # define ACCESS _access 37 | # include 38 | # include 39 | +# include "asc_ctype.hpp" 40 | 41 | #else 42 | 43 | diff --git a/modules/speller/default/language.cpp b/modules/speller/default/language.cpp 44 | index dcffe37..2c2c9be 100644 45 | --- a/modules/speller/default/language.cpp 46 | +++ b/modules/speller/default/language.cpp 47 | @@ -20,7 +20,11 @@ 48 | #include "getdata.hpp" 49 | #include "file_util.hpp" 50 | 51 | -#ifdef ENABLE_NLS 52 | +#define printf printf 53 | +#include "libintl.h" 54 | +#undef printf 55 | + 56 | +#ifdef HAVE_LANGINFO_CODESET 57 | # include 58 | #endif 59 | 60 | diff --git a/prog/aspell.cpp b/prog/aspell.cpp 61 | index bd74172..eee147d 100644 62 | --- a/prog/aspell.cpp 63 | +++ b/prog/aspell.cpp 64 | @@ -60,6 +60,10 @@ 65 | #include "hash-t.hpp" 66 | #include "hash_fun.hpp" 67 | 68 | +#define printf printf 69 | +#include "libintl.h" 70 | +#undef printf 71 | + 72 | #include "gettext.h" 73 | 74 | using namespace acommon; 75 | -------------------------------------------------------------------------------- /build-dict.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | set -ex 4 | 5 | DICT_NAME=aspell6-en-2020.12.07-0 6 | 7 | curl -LO "https://ftp.gnu.org/gnu/aspell/dict/en/$DICT_NAME.tar.bz2" 8 | tar xjf "$DICT_NAME.tar.bz2" 9 | 10 | cd "$DICT_NAME" 11 | 12 | cat > Makefile <> Makefile 22 | 23 | make install 24 | --------------------------------------------------------------------------------