summaryrefslogtreecommitdiff
path: root/textproc/migemo-elisp/Makefile
blob: 7f17a5d244eaba963e63fbe78e4097c8ad2d41bf (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
32
33
# $NetBSD: Makefile,v 1.3 2009/08/06 01:44:56 minskim Exp $

.include "../../textproc/migemo/Makefile.common"

PKGNAME=	${EMACS_PKGNAME_PREFIX}migemo-elisp-${MIGEMO_VERSION}
PKGREVISION=	1

COMMENT=	Elisp for migemo

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=	${RUBY_PKGPREFIX}-migemo>=${MIGEMO_VERSION}:../../textproc/migemo

.include "../../editors/emacs/modules.mk"
.if defined(EMACS_FLAVOR) && ${EMACS_FLAVOR} == "xemacs"
DEPENDS+=	xemacs-packages-[0-9]*:../../editors/xemacs-packages
.endif

do-configure:
	sed -e "s!@pkgdatadir@!${PREFIX}/share/migemo!g" -e "s!ruby!${RUBY}!" ${WRKSRC}/migemo.el.in > ${WRKSRC}/migemo.el

do-build:
	${ECHO} "(setq load-path (cons nil load-path))" > ${WRKSRC}/script
	${EMACS_BIN} -q -batch -l ${WRKSRC}/script -f batch-byte-compile ${WRKSRC}/migemo.el
	rm ${WRKSRC}/script

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}
	${INSTALL_DATA} ${WRKSRC}/migemo.el ${DESTDIR}${EMACS_LISPPREFIX}
	${INSTALL_DATA} ${WRKSRC}/migemo.elc ${DESTDIR}${EMACS_LISPPREFIX}

.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"