# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= hunspell VERSION= 1.7.2 KEYWORDS= textproc VARIANTS= standard SDESC[standard]= Most popular spellchecking library HOMEPAGE= http://hunspell.github.io/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= GITHUB/hunspell:hunspell:v1.7.2 DISTFILE[1]= generated:main DF_INDEX= 1 SPKGS[standard]= single OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none USES= autoreconf cpe libtool:keepla iconv ncurses readline shebangfix perl gettext:build c++:single LICENSE= GPLv2+:single LGPL21+:single MPL:single LICENSE_TERMS= single:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING LGPL21+:{{WRKSRC}}/COPYING.LESSER MPL:{{WRKSRC}}/COPYING.MPL LICENSE_AWK= TERMS:"MYSPELLMGR_H_" LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/hunspell/hunspell.h LICENSE_SCHEME= dual CPE_VENDOR= hunspell_project FPC_EQUIVALENT= textproc/hunspell SHEBANG_FILES= src/tools/ispellaff2myspell MUST_CONFIGURE= gnu CONFIGURE_ARGS= --disable-nls --with-readline --with-ui {{ICONV_CONFIGURE_ARG}} INSTALL_TARGET= install-strip PLIST_SUB= SHLIB_VER=1.7 CPPFLAGS= -I{{NCURSESINC}} post-patch: ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/src/tools/hunspell.cxx [FILE:1328:descriptions/desc.single] Hunspell is a spell checker and morphological analyzer library and program designed for languages with rich morphology and complex word compounding or character encoding. Hunspell interfaces: Ispell-like terminal interface using Curses library, Ispell pipe interface, C++ class and C functions. Hunspell's code base comes from the OpenOffice.org MySpell (http://lingucomponent.openoffice.org/MySpell-3.zip). See README.MYSPELL, AUTHORS.MYSPELL and license.myspell files. Hunspell is designed to eventually replace Myspell in OpenOffice.org. Main features of Hunspell spell checker and morphological analyzer: * Unicode support (affix rules work only with first 65535 Unicode chars) * Morphological analysis (custom item and arrangement style) and stemming * Max. 65535 affix classes and twofold affix stripping (for agglutinative languages like Azeri, Basque, Estonian, Finnish, Hungarian, Turkish) * Support complex compoundings (for example, Hungarian and German) * Support language specific features (for example, special casing of Azeri and Turkish dotted i, or German sharp s) * Handle conditional affixes, circumfixes, fogemorphemes, forbidden words, pseudoroots and homonyms. * Free software. Versions 1.x are licenced under LGPL, GPL, MPL tri-license. The upcoming Version 2 is licenced only under GNU LGPL. [FILE:109:distinfo] 69fa312d3586c988789266eaf7ffc9861d9f6396c31fc930a014d551b59bbd6e 981394 hunspell-hunspell-1.7.2.tar.gz [FILE:552:manifests/plist.single] bin/ affixcompress analyze chmorph hunspell hunzip hzip ispellaff2myspell makealias munch unmunch wordforms wordlist2hunspell include/hunspell/ atypes.hxx hunspell.h hunspell.hxx hunvisapi.h w_char.hxx lib/ libhunspell-%%SHLIB_VER%%.a libhunspell-%%SHLIB_VER%%.la libhunspell-%%SHLIB_VER%%.so libhunspell-%%SHLIB_VER%%.so.0 libhunspell-%%SHLIB_VER%%.so.0.0.1 lib/pkgconfig/hunspell.pc share/man/hu/man1/hunspell.1.gz share/man/man1/ hunspell.1.gz hunzip.1.gz hzip.1.gz share/man/man3/hunspell.3.gz share/man/man5/hunspell.5.gz [FILE:2056:patches/patch-src_tools_hunspell.cxx] --- src/tools/hunspell.cxx.orig 2022-12-29 20:10:49 UTC +++ src/tools/hunspell.cxx @@ -116,9 +116,9 @@ #include "../parsers/odfparser.hxx" #define LIBDIR \ - "/usr/share/hunspell:" \ - "/usr/share/myspell:" \ - "/usr/share/myspell/dicts:" \ + "%%PREFIX%%/share/hunspell:" \ + "%%PREFIX%%/share/myspell:" \ + "%%PREFIX%%/share/myspell/dicts:" \ "/Library/Spelling" #define USEROOODIR { \ ".openoffice.org/3/user/wordbook", \ @@ -126,18 +126,12 @@ ".openoffice.org2.0/user/wordbook",\ "Library/Spelling" } #define OOODIR \ - "/opt/openoffice.org/basis3.0/share/dict/ooo:" \ - "/usr/lib/openoffice.org/basis3.0/share/dict/ooo:" \ - "/opt/openoffice.org2.4/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.4/share/dict/ooo:" \ - "/opt/openoffice.org2.3/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.3/share/dict/ooo:" \ - "/opt/openoffice.org2.2/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.2/share/dict/ooo:" \ - "/opt/openoffice.org2.1/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.1/share/dict/ooo:" \ - "/opt/openoffice.org2.0/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.0/share/dict/ooo" + "%%PREFIX%%/openoffice.org/basis3.0/share/dict/ooo:" \ + "%%PREFIX%%/openoffice.org2.4/share/dict/ooo:" \ + "%%PREFIX%%/openoffice.org2.3/share/dict/ooo:" \ + "%%PREFIX%%/openoffice.org2.2/share/dict/ooo:" \ + "%%PREFIX%%/openoffice.org2.1/share/dict/ooo:" \ + "%%PREFIX%%/openoffice.org2.0/share/dict/ooo" #define HOME getenv("HOME") #define DICBASENAME ".hunspell_" #define LOGFILE "/tmp/hunspell.log" @@ -650,6 +644,12 @@ char* mymkdtemp(char *templ) { return NULL; } return odftmpdir; +#elif defined __sun__ + char *tmplt; + tmplt = mktemp(templ); + if (tmplt == NULL) + return NULL; + return (mkdir (tmplt, 0700) == 0) ? tmplt : NULL; #else return mkdtemp(templ); #endif