blob: 6ce7711279c6e2c7609082b32c5f8dbe1897e947 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $NetBSD: Makefile,v 1.7 2011/12/16 17:22:08 marino Exp $
#
DISTNAME= pyenchant-1.6.5
PKGNAME= ${DISTNAME:S/py/${PYPKGPREFIX}-/}
CATEGORIES= textproc
MASTER_SITES= http://pypi.python.org/packages/source/p/pyenchant/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.rfk.id.au/software/pyenchant/
COMMENT= Spellchecking library for Python
LICENSE= gnu-lgpl-v2.1
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../lang/python/pyversion.mk"
.if ${PYPACKAGE} && ${PYPACKAGE} == "python24"
DEPENDS+= ${PYPKGPREFIX}-ctypes-[0-9]*:../../devel/py-ctypes
.endif
DEPENDS+= enchant-[0-9]*:../../textproc/enchant
USE_LANGUAGES= # empty
FIND_PREFIX:= ENCHANT_DIR=enchant
.include "../../mk/find-prefix.mk"
.include "../../mk/bsd.prefs.mk"
DLEXT.dylib= dylib
DLEXT= ${DLEXT.${_OPSYS_SHLIB_TYPE}:Uso}
PYENCHANT_LIBRARY_PATH= ${ENCHANT_DIR}/lib/libenchant.${DLEXT}
# fix the path of libenchant with patch-ab.
SUBST_CLASSES+= dlpath
SUBST_STAGE.dlpath= pre-configure
SUBST_FILES.dlpath= enchant/_enchant.py
SUBST_VARS.dlpath= PYENCHANT_LIBRARY_PATH
post-extract:
# fix README file permissions
${CHMOD} 644 ${WRKSRC}/enchant/share/enchant/ispell/README.txt
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|