2001-03-17 02:52:05 -05:00
|
|
|
# New ports collection makefile for: Migemo
|
|
|
|
# Date created: 19 February 2001
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= migemo
|
2001-07-22 23:55:42 -04:00
|
|
|
PORTVERSION= 0.3
|
|
|
|
PORTEPOCH= 1
|
2001-03-17 02:52:05 -05:00
|
|
|
CATEGORIES= japanese elisp
|
|
|
|
MASTER_SITES= http://migemo.namazu.org/stable/
|
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
|
|
|
|
|
|
|
MAINTAINER= nobutaka@nobutaka.com
|
|
|
|
|
2001-03-27 17:43:48 -05:00
|
|
|
EMACS_PORT_NAME?= emacs20
|
|
|
|
|
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
EMACS_PACKAGESDIR= lib/xemacs/site-packages
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/apel/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/apel/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
|
2001-03-17 02:52:05 -05:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
|
2001-03-27 17:43:48 -05:00
|
|
|
.endif
|
2001-03-17 02:52:05 -05:00
|
|
|
|
2001-03-27 17:43:48 -05:00
|
|
|
USE_AUTOMAKE= yes
|
2001-07-22 23:55:42 -04:00
|
|
|
USE_RUBY= yes
|
|
|
|
BUILD_DEPENDS+= ${RUBY_SITELIBDIR}/romkan.rb:${PORTSDIR}/japanese/ruby-romkan \
|
|
|
|
${RUBY_SITELIBDIR}/bsearch.rb:${PORTSDIR}/devel/ruby-bsearch
|
|
|
|
RUN_DEPENDS+= ${RUBY_SITELIBDIR}/romkan.rb:${PORTSDIR}/japanese/ruby-romkan \
|
|
|
|
${RUBY_SITELIBDIR}/bsearch.rb:${PORTSDIR}/devel/ruby-bsearch
|
2001-03-27 17:43:48 -05:00
|
|
|
|
2001-07-22 23:55:42 -04:00
|
|
|
CONFIGURE_ARGS= --with-rubydir=${RUBY_SITELIBDIR} --with-emacs=${EMACS_CMD}
|
2001-03-27 17:43:48 -05:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
CONFIGURE_ARGS+= --with-lispdir=${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
|
|
|
.endif
|
2001-03-17 02:52:05 -05:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-07-22 23:55:42 -04:00
|
|
|
post-configure:
|
|
|
|
${RUBY} -i -pe 'sub /@list=/, "list="' ${WRKSRC}/${MAKEFILE}
|
2001-03-17 02:52:05 -05:00
|
|
|
|
|
|
|
post-install:
|
2001-07-22 23:55:42 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/migemo
|
|
|
|
@${MV} ${PREFIX}/share/migemo/migemo.ja.html ${PREFIX}/share/doc/migemo
|
2001-03-17 02:52:05 -05:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|