pkgsrc/textproc/aspell/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

2020-08-31 20:06:29 +02:00
# $NetBSD: Makefile,v 1.76 2020/08/31 18:11:40 wiz Exp $
aspell: Update to 0.68.8 Please note that this version has the potential to break some applications that use null-terminated UCS-2 and UCS-4 encoded strings in order to fix a potentially unbounded buffer over-read. Very few applications do this however. For additional information please see "Upgrading from Aspell 0.60.7" in the manual. (http://aspell.net/man-html/Upgrading-from-Aspell-0_002e60_002e7.html) Major changes from 0.60.7 to 0.68.8: * Prevent a potentially unbounded buffer over-read by no longer supporting null-terminated UCS-2 and UCS-4 encoded strings with the original C API. * Ensure that possible typos are listed before other suggestions when typo analysis is used. Also fix a bug so that suggestions that split a word using a space or hyphen are not always first. * Add Markdown filter. * Add new 'wordlists' option, which is a list of UTF-8 files that contain additional words to accept. * Add new 'camel-case' option, which enables support for checking camelCase words. * Sort personal and replacement dictionaries. * Change 'ultra' suggestion mode to only find words that are within one-edit distance or have the same soundslike. Other changes from 0.60.7: * Implement the 'aspell filter' command. * Fix a bug in 'AspellDocumentChecker' that prevented it from working with UCS-2 and UCS-4 encoded strings. * Remove unused 'sug-edit-dist' option. * 'AspellDocumentChecker' now expects the document a line at a time in order to work with the new Markdown filter. If the document is split on white space characters instead, nothing will break, but new filters such as the Markdown filter may give incorrect results. * The 'clean' option and command will no longer split a word. * Various documentation improvements. * Removal of several outdated appendices that don't really belong in the main manual. Parts that are still relevent may eventually be moved elsewhere, but for now they are available online at <http://aspell.net/0.60.7/man-html/>. * Fix various crashes and other problems found by Google's OSS-Fuzz.
2019-10-19 12:43:28 +02:00
DISTNAME= aspell-0.60.8
2020-08-31 20:06:29 +02:00
PKGREVISION= 1
CATEGORIES= textproc
Update to version 0.50.3. - added buildlink2.mk for applications using aspell and pspell - updated DESCR Changes: Aspell has undergone an extremely large number of changes since the previous Aspell/Pspell release. For one thing Pspell has been merged with Aspell so there in no longer two separate libraries you have to worry about. Because of the massive changes between Aspell/Pspell and Aspell 0.50 you may want to clean out the old files before installing the the new Aspell. To do so do a "make uninstall" in the original Aspell and Pspell source directories. The way dictionaries are handled has also changed. This includes a change in the naming conventions of both language names and dictionaries. Due to the language name change, your old personal dictionaries will not be recognized. However, you can import the old dictionaries by running the "aspell-import" script. This also means that dictionaries designed to work with older versions of Aspell are not likely to function correctly. Fortunately new dictionary packages are available for most languages. You can find them off of the Aspell home page at http://aspell.net. The Pspell ABI is now part of Aspell except that the name of everything has changed due to the renaming of Pspell to Aspell. In particular please note the following name changes: pspell -> aspell manager -> speller emulation -> enumeration master_word_list -> main_word_list Please also note that the name of the language-tag option has changed to lang. However, for backward compatible the language-tag option will still work. However, you should also be able to build applications that require Pspell with the new Aspell as a backward compatibility header file is provided. Due to a change in the way dictionaries are handled, scanning for .pwli files in order to get find out which dictionaries are available will no longer work. This means that programs that relied on this technique may have problems finding dictionaries. Fortunately, GNU Aspell now provided a uniform way to list all installed dictionaries via the C API. See the file "list-dicts.c" in the examples/ directory for an example of how to due this. Unfortunately there is isn't any simply way to find out which dictionaries are installed which will work with both the old Aspell/Pspell and the new GNU Aspell.
2003-01-15 01:23:55 +01:00
MASTER_SITES= ${MASTER_SITE_GNU:=aspell/}
2007-09-11 20:42:30 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
Update to version 0.50.3. - added buildlink2.mk for applications using aspell and pspell - updated DESCR Changes: Aspell has undergone an extremely large number of changes since the previous Aspell/Pspell release. For one thing Pspell has been merged with Aspell so there in no longer two separate libraries you have to worry about. Because of the massive changes between Aspell/Pspell and Aspell 0.50 you may want to clean out the old files before installing the the new Aspell. To do so do a "make uninstall" in the original Aspell and Pspell source directories. The way dictionaries are handled has also changed. This includes a change in the naming conventions of both language names and dictionaries. Due to the language name change, your old personal dictionaries will not be recognized. However, you can import the old dictionaries by running the "aspell-import" script. This also means that dictionaries designed to work with older versions of Aspell are not likely to function correctly. Fortunately new dictionary packages are available for most languages. You can find them off of the Aspell home page at http://aspell.net. The Pspell ABI is now part of Aspell except that the name of everything has changed due to the renaming of Pspell to Aspell. In particular please note the following name changes: pspell -> aspell manager -> speller emulation -> enumeration master_word_list -> main_word_list Please also note that the name of the language-tag option has changed to lang. However, for backward compatible the language-tag option will still work. However, you should also be able to build applications that require Pspell with the new Aspell as a backward compatibility header file is provided. Due to a change in the way dictionaries are handled, scanning for .pwli files in order to get find out which dictionaries are available will no longer work. This means that programs that relied on this technique may have problems finding dictionaries. Fortunately, GNU Aspell now provided a uniform way to list all installed dictionaries via the C API. See the file "list-dicts.c" in the examples/ directory for an example of how to due this. Unfortunately there is isn't any simply way to find out which dictionaries are installed which will work with both the old Aspell/Pspell and the new GNU Aspell.
2003-01-15 01:23:55 +01:00
HOMEPAGE= http://aspell.net/
COMMENT= Spell checker with good multi-language support
2010-02-19 21:16:40 +01:00
LICENSE= gnu-lgpl-v2.1
CONFLICTS= libpspell-[0-9]*
GNU_CONFIGURE= yes
2007-09-08 23:57:57 +02:00
USE_FEATURES= snprintf vsnprintf
USE_TOOLS+= gmake
aspell: Update to 0.68.8 Please note that this version has the potential to break some applications that use null-terminated UCS-2 and UCS-4 encoded strings in order to fix a potentially unbounded buffer over-read. Very few applications do this however. For additional information please see "Upgrading from Aspell 0.60.7" in the manual. (http://aspell.net/man-html/Upgrading-from-Aspell-0_002e60_002e7.html) Major changes from 0.60.7 to 0.68.8: * Prevent a potentially unbounded buffer over-read by no longer supporting null-terminated UCS-2 and UCS-4 encoded strings with the original C API. * Ensure that possible typos are listed before other suggestions when typo analysis is used. Also fix a bug so that suggestions that split a word using a space or hyphen are not always first. * Add Markdown filter. * Add new 'wordlists' option, which is a list of UTF-8 files that contain additional words to accept. * Add new 'camel-case' option, which enables support for checking camelCase words. * Sort personal and replacement dictionaries. * Change 'ultra' suggestion mode to only find words that are within one-edit distance or have the same soundslike. Other changes from 0.60.7: * Implement the 'aspell filter' command. * Fix a bug in 'AspellDocumentChecker' that prevented it from working with UCS-2 and UCS-4 encoded strings. * Remove unused 'sug-edit-dist' option. * 'AspellDocumentChecker' now expects the document a line at a time in order to work with the new Markdown filter. If the document is split on white space characters instead, nothing will break, but new filters such as the Markdown filter may give incorrect results. * The 'clean' option and command will no longer split a word. * Various documentation improvements. * Removal of several outdated appendices that don't really belong in the main manual. Parts that are still relevent may eventually be moved elsewhere, but for now they are available online at <http://aspell.net/0.60.7/man-html/>. * Fix various crashes and other problems found by Google's OSS-Fuzz.
2019-10-19 12:43:28 +02:00
USE_TOOLS+= msgfmt msgmerge xgettext
2005-06-28 16:18:55 +02:00
# for bin/aspell-import
USE_TOOLS+= perl:run
USE_LIBTOOL= yes
2004-02-11 02:46:30 +01:00
USE_LANGUAGES= c c++
USE_NCURSES= yes
USE_PKGLOCALEDIR= yes
INFO_FILES= yes
CONFIGURE_ARGS+= --enable-curses=${CURSES_TYPE}
Update to 0.60.2. New in 0.60.2: * Added the `munch-list' command to the aspell utility. The `munch' program in the `myspell/' directory will disappear in Aspell 0.61. The `munchlist' script will also likely disappear or be replaced when Aspell 0.61 is released since it doesn't work correctly anyway. * Several important bug fixes some of which rendered some non-English languages unusable. * Other minor changes. New in 0.60.1.1: * Fix bug involving checking of capitalized word when affix compression is used. * Compile fixes. * Added an option to disable using the "wide" curses version in case it causes compile problems. * Minor manual updates * Avoided including some unnecessary files in the distribution. New in 0.60.1: * Lots of compile fixes for various platforms. * Miscellaneous bug fixes. * Added Nroff filter thanks to Sergey Poznyakoff. * The default filter mode when in pipe mode is now nroff for compatibility with Ispell. * Added Texinfo filter. * Added a section detailing the differences between Ispell and Aspell. * Updated the section on thread safety. * Other miscellaneous manual changes such as updating the To Do and Authors section. Changes since 0.50.5: * Added support for Affix Compression. Affix compression stores the root word and then a list of prefixes and suffixes that the word can take, and thus saves a lot of space. The codebase comes from MySpell found in OpenOffice. It uses the same affix file that OpenOffice (and Mozilla) use. Affix compression will even work with soundslike lookup to a limited extent. * Added support for accepting all input and printing all output in UTF-8 or some other encoding different from the one Aspell uses. This includes support for Unicode normalization. Aspell can now support any language with no more than 210 distinct characters, including different capitalizations and accents, _even if_ there is not an existing 8-bit encoding that supports the language. * Added support for loadable filters and customizable filter modes thanks to Christoph Hintermüller. * Enhanced SGML filter to also support skipping sgml tags such as "script" blocks thanks to Tom Snyder. * Added gettext support thanks to Sergey Poznyakoff * Reworked the compiled dictionary format. Compiled dictionaries now take up less space (less than 80% for the English language) and creating them is significantly faster (over 4 times for the English language). * Reworked suggestion code. It is significantly faster when dealing with short words (up to 10 times). Also added support for MySpell Replacement Tables and n-gram lookup. In addition, added basic support for compound words. * Manual has has been converted to texinfo format thanks to the work of Chris Martin. * Reworked the build system so that a single Makefile is used for most of the code. * All data, by default, is now included in `LIBDIR/aspell-0.60'. Also added a built time option to increment the major version number of the shared library. This should allow both Aspell version 0.50 and 0.60 to coexist. The major version number is _not_ incremented by default as Aspell 0.60 is binary compatible with Aspell 0.50. NOTE: this is not true for pkgsrc. * The code to handle dictionaries has been rewritten. Because of this support for the dictionary option `strip-accents' has been removed. In addition the `ignore-accents' option is currently unimplemented. * Lots of other minor changes due to massive overhaul of the source code.
2004-12-24 03:55:53 +01:00
CONFIGURE_ARGS+= --enable-pkgdatadir=${PREFIX}/share/aspell
CONFIGURE_ARGS+= --enable-dict-dir=${PREFIX}/lib/aspell
aspell: Update to 0.68.8 Please note that this version has the potential to break some applications that use null-terminated UCS-2 and UCS-4 encoded strings in order to fix a potentially unbounded buffer over-read. Very few applications do this however. For additional information please see "Upgrading from Aspell 0.60.7" in the manual. (http://aspell.net/man-html/Upgrading-from-Aspell-0_002e60_002e7.html) Major changes from 0.60.7 to 0.68.8: * Prevent a potentially unbounded buffer over-read by no longer supporting null-terminated UCS-2 and UCS-4 encoded strings with the original C API. * Ensure that possible typos are listed before other suggestions when typo analysis is used. Also fix a bug so that suggestions that split a word using a space or hyphen are not always first. * Add Markdown filter. * Add new 'wordlists' option, which is a list of UTF-8 files that contain additional words to accept. * Add new 'camel-case' option, which enables support for checking camelCase words. * Sort personal and replacement dictionaries. * Change 'ultra' suggestion mode to only find words that are within one-edit distance or have the same soundslike. Other changes from 0.60.7: * Implement the 'aspell filter' command. * Fix a bug in 'AspellDocumentChecker' that prevented it from working with UCS-2 and UCS-4 encoded strings. * Remove unused 'sug-edit-dist' option. * 'AspellDocumentChecker' now expects the document a line at a time in order to work with the new Markdown filter. If the document is split on white space characters instead, nothing will break, but new filters such as the Markdown filter may give incorrect results. * The 'clean' option and command will no longer split a word. * Various documentation improvements. * Removal of several outdated appendices that don't really belong in the main manual. Parts that are still relevent may eventually be moved elsewhere, but for now they are available online at <http://aspell.net/0.60.7/man-html/>. * Fix various crashes and other problems found by Google's OSS-Fuzz.
2019-10-19 12:43:28 +02:00
# https://github.com/GNUAspell/aspell/issues/336
CONFIGURE_ARGS+= --enable-compile-in-filters
CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes
.include "../../mk/bsd.prefs.mk"
# aspell does not work with curses in NetBSD <= 8.0.
.if !empty(MACHINE_PLATFORM:MNetBSD-8.0*) || \
!empty(MACHINE_PLATFORM:MNetBSD-[0-7].*)
USE_CURSES= ncurses
.endif
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
2007-09-08 23:57:57 +02:00
CPPFLAGS+= -DDECLARE_VSNPRINTF -DDECLARE_SNPRINTF
# IRIX 5 has an older implementation of signal()
CPPFLAGS+= -DHAVE_OLD_SIGNAL
.endif
REPLACE_PERL= scripts/aspell-import
Update to 0.60.2. New in 0.60.2: * Added the `munch-list' command to the aspell utility. The `munch' program in the `myspell/' directory will disappear in Aspell 0.61. The `munchlist' script will also likely disappear or be replaced when Aspell 0.61 is released since it doesn't work correctly anyway. * Several important bug fixes some of which rendered some non-English languages unusable. * Other minor changes. New in 0.60.1.1: * Fix bug involving checking of capitalized word when affix compression is used. * Compile fixes. * Added an option to disable using the "wide" curses version in case it causes compile problems. * Minor manual updates * Avoided including some unnecessary files in the distribution. New in 0.60.1: * Lots of compile fixes for various platforms. * Miscellaneous bug fixes. * Added Nroff filter thanks to Sergey Poznyakoff. * The default filter mode when in pipe mode is now nroff for compatibility with Ispell. * Added Texinfo filter. * Added a section detailing the differences between Ispell and Aspell. * Updated the section on thread safety. * Other miscellaneous manual changes such as updating the To Do and Authors section. Changes since 0.50.5: * Added support for Affix Compression. Affix compression stores the root word and then a list of prefixes and suffixes that the word can take, and thus saves a lot of space. The codebase comes from MySpell found in OpenOffice. It uses the same affix file that OpenOffice (and Mozilla) use. Affix compression will even work with soundslike lookup to a limited extent. * Added support for accepting all input and printing all output in UTF-8 or some other encoding different from the one Aspell uses. This includes support for Unicode normalization. Aspell can now support any language with no more than 210 distinct characters, including different capitalizations and accents, _even if_ there is not an existing 8-bit encoding that supports the language. * Added support for loadable filters and customizable filter modes thanks to Christoph Hintermüller. * Enhanced SGML filter to also support skipping sgml tags such as "script" blocks thanks to Tom Snyder. * Added gettext support thanks to Sergey Poznyakoff * Reworked the compiled dictionary format. Compiled dictionaries now take up less space (less than 80% for the English language) and creating them is significantly faster (over 4 times for the English language). * Reworked suggestion code. It is significantly faster when dealing with short words (up to 10 times). Also added support for MySpell Replacement Tables and n-gram lookup. In addition, added basic support for compound words. * Manual has has been converted to texinfo format thanks to the work of Chris Martin. * Reworked the build system so that a single Makefile is used for most of the code. * All data, by default, is now included in `LIBDIR/aspell-0.60'. Also added a built time option to increment the major version number of the shared library. This should allow both Aspell version 0.50 and 0.60 to coexist. The major version number is _not_ incremented by default as Aspell 0.60 is binary compatible with Aspell 0.50. NOTE: this is not true for pkgsrc. * The code to handle dictionaries has been rewritten. Because of this support for the dictionary option `strip-accents' has been removed. In addition the `ignore-accents' option is currently unimplemented. * Lots of other minor changes due to massive overhaul of the source code.
2004-12-24 03:55:53 +01:00
NOT_FOR_COMPILER= xlc
LIBS.SunOS+= -lm
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"