COMMENT =		completion input-method to speed up typing
VERSION =		2.19.0

DISTNAME =		ibus-typing-booster-${VERSION}

CATEGORIES =		inputmethods

HOMEPAGE =		https://mike-fabian.github.io/ibus-typing-booster/

# GPLv3+, APLv2 (fonts)
PERMIT_PACKAGE =	Yes

MASTER_SITES =		https://github.com/mike-fabian/ibus-typing-booster/releases/download/${VERSION}/

MODULES =		devel/dconf \
			lang/python

BUILD_DEPENDS =		devel/gettext,-tools \
			inputmethods/ibus

RUN_DEPENDS =		devel/desktop-file-utils \
			inputmethods/ibus \
			misc/m17n/lib \
			x11/gtk+3,-guic

USE_GMAKE =		Yes

CONFIGURE_STYLE =	gnu

pre-configure:
	sed -i -e "s,^#!/usr/bin/sh,#!/bin/sh," \
		${WRKSRC}/engine/emoji-picker.in \
		${WRKSRC}/engine/ibus-engine-typing-booster.in \
		${WRKSRC}/setup/ibus-setup-typing-booster.in

.include <bsd.port.mk>
