pkgsrc/inputmethod/ibus-el/Makefile
2015-03-15 19:57:40 +00:00

42 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2015/03/15 20:03:24 hiramatsu Exp $
#
DISTNAME= ibus-el-0.3.2
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION= 3
CATEGORIES= inputmethod
MASTER_SITES= http://www11.atwiki.jp/s-irie/pub/emacs/ibus/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www11.atwiki.jp/s-irie/pages/21.html
COMMENT= IBus client for GNU Emacs
LICENSE= gnu-gpl-v3
DEPENDS+= {${PYPKGPREFIX}-ibus-python-[0-9]*,ibus>=1.2<1.5}:../../inputmethod/ibus-python
DEPENDS+= ${PYPKGPREFIX}-Xlib-[0-9]*:../../x11/py-Xlib
USE_LANGUAGES= # none
EMACS_VERSIONS_ACCEPTED= emacs22 emacs23 emacs24
REPLACE_PYTHON= ibus-el-agent
# then execute directly
SUBST_CLASSES+= pycmd
SUBST_STAGE.pycmd= pre-build
SUBST_FILES.pycmd= ibus.el
SUBST_SED.pycmd= -e 's|"python"|nil|'
do-build:
${RUN} cd ${WRKSRC}; \
${SETENV} ${PKGSRC_MAKE_ENV} \
${EMACS_BIN} --no-init-file --no-site-file -batch \
-f batch-byte-compile ibus.el
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}
${INSTALL_DATA} ${WRKSRC}/ibus.el ${DESTDIR}${EMACS_LISPPREFIX}
${INSTALL_DATA} ${WRKSRC}/ibus.elc ${DESTDIR}${EMACS_LISPPREFIX}
${INSTALL_SCRIPT} ${WRKSRC}/ibus-el-agent ${DESTDIR}${EMACS_LISPPREFIX}
.include "../../editors/emacs/modules.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"