summaryrefslogtreecommitdiff
path: root/inputmethod/scim-python/Makefile
blob: 127afadc964e7c6ab1d432e5aaf53b7d17ffb2f6 (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
# $NetBSD: Makefile,v 1.29 2015/12/05 21:25:47 adam Exp $

DISTNAME=	scim-python-0.1.13rc1
PKGREVISION=	23
CATEGORIES=	inputmethod python
MASTER_SITES=	http://scim-python.googlecode.com/files/
DISTFILES=	${DEFAULT_DISTFILES} ${DBTAR}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://code.google.com/p/scim-python/
COMMENT=	Python wrapper for Smart Common Input Method platform
LICENSE=	gnu-lgpl-v2 AND gnu-gpl-v2

DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
DEPENDS+=	${PYPKGPREFIX}-enchant-[0-9]*:../../textproc/py-enchant

GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes
USE_LANGUAGES=		c c++
USE_TOOLS+=		pkg-config msgfmt

OPSYSVARS+=	BUILDLINK_TRANSFORM

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--version-script=./scim.version-script

# taken from ${WRKSRC}/python/engine/PinYin/Makefile.in
DBVER=			0.1.10.5
DBTAR=			pinyin-database-${DBVER}.tar.bz2

post-extract:
	${TOUCH} ${WRKSRC}/python/engine/PinYin/${DBTAR}
	${CP} ${WRKDIR}/py.db ${WRKSRC}/python/engine/PinYin/py.db

PY_PATCHPLIST=		yes
PYTHON_VERSIONS_INCOMPATIBLE=	33 34 35 # py-gtk2
REPLACE_PYTHON+=	python/engine/XingMa/XMCreateDB.py

.include "../../inputmethod/scim/buildlink3.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"