Tue Jun 1 05:28:11 2010 UTC ()
Update py-enchant to 1.6.2.
Based on PR#43384 by Wen Heping.

    * Migrated from SWIG to ctypes since 1.5.0:
        * Add dependency on devel/py-ctypes for python2.4
        * Fix paths for libenchant to exactly load suitable one.
        * No need c compiler and buildlink with textproc/enchant.

Changes:
1.6.2:

    * Upgraded bundled enchant to v1.6.0.
    * Fixed bug in printf() utility function; all input args are now converted
      to strings before printing.

1.6.1:

    * Fixed loading of enchant DLL on win32 without pkg_resources installed.
    * Fixed HTMLChunker to handle unescaped < and > characters that are
      clearly not part of a tag.

1.6.0:

    * Upgraded to enchant v1.5.0:
        * new Broker methods get_param() and set_param() allow
          runtime customisation of provider data
    * Added the concept of 'chunkers' to enchant.tokenize.get_tokenizer().
      These serve split split the text into large chunks of checkable tokens.
        * implemented a simple HTMLChunker class
    * Moved error classes into 'enchant.errors' for easier importing
    * Moved testcases into separate files so they're not loaded by default
    * Allowed SpellChecker to use default language if none is specified
    * Improved compatibility with Python 3

1.5.3:

    * Fixed termination conditions in English tokenization loop.
    * Improved unicode detection in English tokenizer.
    * Made enchant spellcheck all of its docstrings as part of the
      unittest suite.

1.5.2:

    * Modify utils.get_resource_filename and utils.win32_data_files for
      compatibility with py2exe (which was broken in the move to ctypes).
      Thanks to Stephen George for the fix.

1.5.1:

    * SpellChecker.add_to_personal renamed to SpellChecker.add and fixed
      to use the corresponding Dict method.

1.5.0:

    * Migrated from SWIG to ctypes:
        * now runs under PyPy!
        * also opens possibilities for Jython, IronPython, ...
    * Compatibility updates for Python 3.0, mostly around unicode strings
    * Dropped compatibility with Python 2.2


(obache)
diff -r1.2 -r1.3 pkgsrc/textproc/py-enchant/Makefile
diff -r1.2 -r1.3 pkgsrc/textproc/py-enchant/PLIST
diff -r1.1.1.1 -r1.2 pkgsrc/textproc/py-enchant/distinfo
diff -r0 -r1.1 pkgsrc/textproc/py-enchant/patches/patch-aa
diff -r0 -r1.1 pkgsrc/textproc/py-enchant/patches/patch-ab

cvs diff -r1.2 -r1.3 pkgsrc/textproc/py-enchant/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/py-enchant/Makefile 2009/02/16 19:38:27 1.2
+++ pkgsrc/textproc/py-enchant/Makefile 2010/06/01 05:28:11 1.3
@@ -1,19 +1,41 @@ @@ -1,19 +1,41 @@
1# $NetBSD: Makefile,v 1.2 2009/02/16 19:38:27 joerg Exp $ 1# $NetBSD: Makefile,v 1.3 2010/06/01 05:28:11 obache Exp $
2# 2#
3 3
4DISTNAME= pyenchant-1.4.2 4DISTNAME= pyenchant-1.6.2
5PKGNAME= ${DISTNAME:S/py/${PYPKGPREFIX}-/} 5PKGNAME= ${DISTNAME:S/py/${PYPKGPREFIX}-/}
6CATEGORIES= textproc 6CATEGORIES= textproc
7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyenchant/} 7MASTER_SITES= http://pypi.python.org/packages/source/p/pyenchant/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://pyenchant.sourceforge.net/ 10HOMEPAGE= http://www.rfk.id.au/software/pyenchant/
11COMMENT= Spellchecking library for Python 11COMMENT= Spellchecking library for Python
 12LICENSE= gnu-lgpl-v2.1
12 13
13PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
14 15
15USE_LANGUAGES= c 16.include "../../lang/python/pyversion.mk"
 17
 18.if ${PYPACKAGE} && ${PYPACKAGE} == "python24"
 19DEPENDS+= ${PYPKGPREFIX}-ctype-[0-9]*:../../devel/py-ctype
 20.endif
 21DEPENDS+= enchant-[0-9]*:../../textproc/enchant
 22
 23USE_LANGUAGES= # empty
 24
 25FIND_PREFIX:= ENCHANT_DIR=enchant
 26.include "../../mk/find-prefix.mk"
 27
 28.include "../../mk/bsd.prefs.mk"
 29
 30DLEXT.dylib= dylib
 31DLEXT= ${DLEXT.${_OPSYS_SHLIB_TYPE}:Uso}
 32PYENCHANT_LIBRARY_PATH= ${ENCHANT_DIR}/lib/libenchant.${DLEXT}
 33
 34# fix the path of libenchant with patch-ab.
 35SUBST_CLASSES+= dlpath
 36SUBST_STAGE.dlpath= pre-configure
 37SUBST_FILES.dlpath= enchant/_enchant.py
 38SUBST_VARS.dlpath= PYENCHANT_LIBRARY_PATH
16 39
17.include "../../lang/python/egg.mk" 40.include "../../lang/python/egg.mk"
18.include "../../textproc/enchant/buildlink3.mk" 
19.include "../../mk/bsd.pkg.mk" 41.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/textproc/py-enchant/PLIST (expand / switch to unified diff)

--- pkgsrc/textproc/py-enchant/PLIST 2009/06/14 18:17:25 1.2
+++ pkgsrc/textproc/py-enchant/PLIST 2010/06/01 05:28:11 1.3
@@ -1,34 +1,52 @@ @@ -1,34 +1,52 @@
1@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:17:25 joerg Exp $ 1@comment $NetBSD: PLIST,v 1.3 2010/06/01 05:28:11 obache Exp $
2${PYSITELIB}/enchant/__init__.py 2${PYSITELIB}/enchant/__init__.py
3${PYSITELIB}/enchant/__init__.pyc 3${PYSITELIB}/enchant/__init__.pyc
4${PYSITELIB}/enchant/__init__.pyo 4${PYSITELIB}/enchant/__init__.pyo
5${PYSITELIB}/enchant/_enchant.so 5${PYSITELIB}/enchant/_enchant.py
 6${PYSITELIB}/enchant/_enchant.pyc
 7${PYSITELIB}/enchant/_enchant.pyo
6${PYSITELIB}/enchant/checker/CmdLineChecker.py 8${PYSITELIB}/enchant/checker/CmdLineChecker.py
7${PYSITELIB}/enchant/checker/CmdLineChecker.pyc 9${PYSITELIB}/enchant/checker/CmdLineChecker.pyc
8${PYSITELIB}/enchant/checker/CmdLineChecker.pyo 10${PYSITELIB}/enchant/checker/CmdLineChecker.pyo
9${PYSITELIB}/enchant/checker/GtkSpellCheckerDialog.py 11${PYSITELIB}/enchant/checker/GtkSpellCheckerDialog.py
10${PYSITELIB}/enchant/checker/GtkSpellCheckerDialog.pyc 12${PYSITELIB}/enchant/checker/GtkSpellCheckerDialog.pyc
11${PYSITELIB}/enchant/checker/GtkSpellCheckerDialog.pyo 13${PYSITELIB}/enchant/checker/GtkSpellCheckerDialog.pyo
12${PYSITELIB}/enchant/checker/__init__.py 14${PYSITELIB}/enchant/checker/__init__.py
13${PYSITELIB}/enchant/checker/__init__.pyc 15${PYSITELIB}/enchant/checker/__init__.pyc
14${PYSITELIB}/enchant/checker/__init__.pyo 16${PYSITELIB}/enchant/checker/__init__.pyo
 17${PYSITELIB}/enchant/checker/tests.py
 18${PYSITELIB}/enchant/checker/tests.pyc
 19${PYSITELIB}/enchant/checker/tests.pyo
15${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.py 20${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.py
16${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.pyc 21${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.pyc
17${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.pyo 22${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.pyo
 23${PYSITELIB}/enchant/errors.py
 24${PYSITELIB}/enchant/errors.pyc
 25${PYSITELIB}/enchant/errors.pyo
 26${PYSITELIB}/enchant/lib/enchant/README.txt
18${PYSITELIB}/enchant/pypwl.py 27${PYSITELIB}/enchant/pypwl.py
19${PYSITELIB}/enchant/pypwl.pyc 28${PYSITELIB}/enchant/pypwl.pyc
20${PYSITELIB}/enchant/pypwl.pyo 29${PYSITELIB}/enchant/pypwl.pyo
 30${PYSITELIB}/enchant/share/enchant/README.txt
 31${PYSITELIB}/enchant/share/enchant/ispell/README.txt
 32${PYSITELIB}/enchant/share/enchant/myspell/README.txt
 33${PYSITELIB}/enchant/tests.py
 34${PYSITELIB}/enchant/tests.pyc
 35${PYSITELIB}/enchant/tests.pyo
21${PYSITELIB}/enchant/tokenize/__init__.py 36${PYSITELIB}/enchant/tokenize/__init__.py
22${PYSITELIB}/enchant/tokenize/__init__.pyc 37${PYSITELIB}/enchant/tokenize/__init__.pyc
23${PYSITELIB}/enchant/tokenize/__init__.pyo 38${PYSITELIB}/enchant/tokenize/__init__.pyo
24${PYSITELIB}/enchant/tokenize/en.py 39${PYSITELIB}/enchant/tokenize/en.py
25${PYSITELIB}/enchant/tokenize/en.pyc 40${PYSITELIB}/enchant/tokenize/en.pyc
26${PYSITELIB}/enchant/tokenize/en.pyo 41${PYSITELIB}/enchant/tokenize/en.pyo
 42${PYSITELIB}/enchant/tokenize/tests.py
 43${PYSITELIB}/enchant/tokenize/tests.pyc
 44${PYSITELIB}/enchant/tokenize/tests.pyo
27${PYSITELIB}/enchant/utils.py 45${PYSITELIB}/enchant/utils.py
28${PYSITELIB}/enchant/utils.pyc 46${PYSITELIB}/enchant/utils.pyc
29${PYSITELIB}/enchant/utils.pyo 47${PYSITELIB}/enchant/utils.pyo
30${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 48${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
31${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 49${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
32${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 50${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
33${PYSITELIB}/${EGG_INFODIR}/eager_resources.txt 51${PYSITELIB}/${EGG_INFODIR}/eager_resources.txt
34${PYSITELIB}/${EGG_INFODIR}/top_level.txt 52${PYSITELIB}/${EGG_INFODIR}/top_level.txt

cvs diff -r1.1.1.1 -r1.2 pkgsrc/textproc/py-enchant/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/py-enchant/distinfo 2008/10/08 09:42:47 1.1.1.1
+++ pkgsrc/textproc/py-enchant/distinfo 2010/06/01 05:28:11 1.2
@@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
1$NetBSD: distinfo,v 1.1.1.1 2008/10/08 09:42:47 wiz Exp $ 1$NetBSD: distinfo,v 1.2 2010/06/01 05:28:11 obache Exp $
2 2
3SHA1 (pyenchant-1.4.2.tar.gz) = 97197d72a0197e459946805d254b3958a0e1de2e 3SHA1 (pyenchant-1.6.2.tar.gz) = 54937a31dfdd1023f588ff599135b541f7845eb8
4RMD160 (pyenchant-1.4.2.tar.gz) = 9107042d841ab920baeeef10643d88ff4e65bb7f 4RMD160 (pyenchant-1.6.2.tar.gz) = 8dc31b837e33d2fe517b9346077060767526861b
5Size (pyenchant-1.4.2.tar.gz) = 81230 bytes 5Size (pyenchant-1.6.2.tar.gz) = 57761 bytes
 6SHA1 (patch-aa) = 4afb6e32c84efb177f47b94fca4b91bae459a10d
 7SHA1 (patch-ab) = ff02e814ff0cf66eca54608c545ae6e95456231f

File Added: pkgsrc/textproc/py-enchant/patches/Attic/patch-aa
$NetBSD: patch-aa,v 1.1 2010/06/01 05:28:11 obache Exp $

avoid extra download of distribute-0.6.10.tar.gz.

--- setup.py.orig	2010-05-29 04:14:59.000000000 +0000
+++ setup.py
@@ -6,8 +6,8 @@
 #
 
 
-import distribute_setup
-distribute_setup.use_setuptools()
+#import distribute_setup
+#distribute_setup.use_setuptools()
 from setuptools import setup, find_packages, Extension
 
 import sys

File Added: pkgsrc/textproc/py-enchant/patches/patch-ab
$NetBSD: patch-ab,v 1.1 2010/06/01 05:28:11 obache Exp $

fix path of libenchant.

--- enchant/_enchant.py.orig	2010-03-06 07:27:42.000000000 +0000
+++ enchant/_enchant.py
@@ -67,6 +67,7 @@ if sys.platform == "win32":
 
 def _e_path_possibilities():
     yield os.environ.get("PYENCHANT_LIBRARY_PATH")
+    yield "@PYENCHANT_LIBRARY_PATH@" 
     yield find_library("enchant")
     yield find_library("libenchant")
     yield find_library("libenchant-1")