summaryrefslogtreecommitdiff
path: root/textproc/itstool/Makefile
blob: 5ef56c07e4d4c72a7198f977b7b56d7d70159581 (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
# $NetBSD: Makefile,v 1.13 2017/01/01 14:43:59 wiz Exp $

DISTNAME=	itstool-2.0.2
CATEGORIES=	textproc
MASTER_SITES=	http://files.itstool.org/itstool/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	prlw1@cam.ac.uk
HOMEPAGE=	http://itstool.org/
COMMENT=	ITS Tool allows you to translate XML documents with PO files
LICENSE=	gnu-gpl-v3

GNU_CONFIGURE=	yes

REPLACE_PYTHON=	${WRKSRC}/itstool.in

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

PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36 # not yet ported as of 2.0.2
#Traceback (most recent call last):
#  File "/usr/pkg/bin/itstool", line 1516, in <module>
#    doc.apply_its_rules(not(opts.nobuiltins), params=params)
#  File "/usr/pkg/bin/itstool", line 724, in apply_its_rules
#    self.apply_its_file(os.path.join(itsdir, dfile), params=params)
#  File "/usr/pkg/bin/itstool", line 754, in apply_its_file
#    if not nss.has_key(nsdef.name):
#AttributeError: 'dict' object has no attribute 'has_key'

.include "../../lang/python/application.mk"
.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"