summaryrefslogtreecommitdiff
path: root/textproc/ibus-table/Makefile
blob: 5325e3558c0a46cd547bc967f893df1e97bf5658 (plain) (blame)
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
# Created by: Nikola Lecic <nikola.lecic@anthesphoria.net>

PORTNAME=	ibus-table
DISTVERSION=	1.16.7
CATEGORIES=	textproc

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Table-based input method framework for IBus

LICENSE=	LGPL20
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
		docbook2man:textproc/docbook-utils \
		docbook-sgml>0:textproc/docbook-sgml
LIB_DEPENDS=	libibus-1.0.so:textproc/ibus
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}

USES=		autoreconf gettext-tools gmake gnome pkgconfig python:3.4+ shebangfix

USE_GITHUB=	yes
GH_ACCOUNT=	kaio

SHEBANG_GLOB=	*.py

GNU_CONFIGURE=	yes

GLIB_SCHEMAS=	org.freedesktop.ibus.engine.table.gschema.xml

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=		gettext-runtime
NLS_CONFIGURE_ENABLE=	nls

post-patch:
	@${REINPLACE_CMD} -e "s|/usr/share|${PREFIX}/share|g" ${WRKSRC}/engine/*.py

post-install:
	@${RM} -r ${STAGEDIR}${DATADIR}/*/__pycache__

.include <bsd.port.mk>