diff options
Diffstat (limited to 'japanese/migemo-emacs20/Makefile')
-rw-r--r-- | japanese/migemo-emacs20/Makefile | 51 |
1 files changed, 17 insertions, 34 deletions
diff --git a/japanese/migemo-emacs20/Makefile b/japanese/migemo-emacs20/Makefile index f258efd236b5..9f6f497a78ab 100644 --- a/japanese/migemo-emacs20/Makefile +++ b/japanese/migemo-emacs20/Makefile @@ -1,51 +1,34 @@ -# New ports collection makefile for: Migemo +# New ports collection makefile for: Migemo (for emacs20) # Date created: 19 February 2001 # Whom: MANTANI Nobutaka <nobutaka@nobutaka.com> # # $FreeBSD$ # -PORTNAME= migemo -PORTVERSION= 0.3 -PORTEPOCH= 1 -CATEGORIES= japanese elisp -MASTER_SITES= http://migemo.namazu.org/stable/ PKGNAMESUFFIX= -${EMACS_PORT_NAME} -MAINTAINER= nobutaka@nobutaka.com +MASTERDIR= ${.CURDIR}/../../japanese/migemo +PKGDIR= ${.CURDIR} +PLIST= ${MASTERDIR}/pkg-plist +PKGMESSAGE= ${MASTERDIR}/pkg-message -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 +EMACS_PORT_NAME= emacs20 BUILD_DEPENDS= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME} -RUN_DEPENDS= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME} -.endif - -USE_AUTOMAKE= yes -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 +RUN_DEPENDS= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME} \ + migemo:${PORTSDIR}/japanese/migemo -CONFIGURE_ARGS= --with-rubydir=${RUBY_SITELIBDIR} --with-emacs=${EMACS_CMD} -.if (${EMACS_PORT_NAME} == "xemacs21-mule") -CONFIGURE_ARGS+= --with-lispdir=${PREFIX}/${EMACS_LIBDIR}/site-lisp -.endif +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} +ALL_TARGET= migemo.elc -.include <bsd.port.pre.mk> +PLIST_SUB= MIGEMO="@comment " ELISP="" -post-configure: - ${RUBY} -i -pe 'sub /@list=/, "list="' ${WRKSRC}/${MAKEFILE} +do-install: + ${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/site-lisp/migemo + ${INSTALL_DATA} ${WRKSRC}/migemo.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp + ${INSTALL_DATA} ${WRKSRC}/migemo.elc ${PREFIX}/${EMACS_LIBDIR}/site-lisp post-install: - @${MKDIR} ${PREFIX}/share/doc/migemo - @${MV} ${PREFIX}/share/migemo/migemo.ja.html ${PREFIX}/share/doc/migemo @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include "${MASTERDIR}/Makefile" |