aboutsummaryrefslogtreecommitdiff
path: root/textproc/ibus-el/Makefile
blob: f3f94b460cba8c003b1be49778263870af5293c3 (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
43
44
45
46
47
# New ports collection makefile for:   ibus-el
# Date created:        4 July 2010
# Whom:                Hajimu UMEMOTO <ume@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ibus-el
PORTVERSION=	0.3.1
PORTREVISION=	1
CATEGORIES=	textproc elisp
MASTER_SITES=	http://www11.atwiki.jp/s-irie/pub/emacs/ibus/
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}

MAINTAINER=	ume@FreeBSD.org
COMMENT=	IBus client for GNU Emacs

RUN_DEPENDS=	ibus-daemon:${PORTSDIR}/textproc/ibus \
		${PYTHON_SITELIBDIR}/Xlib/X.py:${PORTSDIR}/x11-toolkits/py-xlib

USE_EMACS=	yes
USE_PYTHON_RUN=	yes

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/doc/COPYING

PLIST_FILES=	${EMACS_VERSION_SITE_LISPDIR}/ibus.el \
		${EMACS_VERSION_SITE_LISPDIR}/ibus.elc \
		libexec/ibus-el-agent
PORTDOCS=	README

do-build:
	@cd ${WRKSRC} && ${EMACS_CMD} -batch -q -no-site-file -no-init-file \
		-f batch-byte-compile ibus.el

do-install:
	@${INSTALL_DATA} ${WRKSRC}/ibus.el \
		${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
	@${INSTALL_DATA} ${WRKSRC}/ibus.elc \
		${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
	@${INSTALL_SCRIPT} ${WRKSRC}/ibus-el-agent ${PREFIX}/libexec
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>