diff options
author | shige <shige@FreeBSD.org> | 2000-01-20 00:53:46 +0800 |
---|---|---|
committer | shige <shige@FreeBSD.org> | 2000-01-20 00:53:46 +0800 |
commit | 75da695bcca16f3d39b3db74f1aa2f32f9dfbb66 (patch) | |
tree | 088b28977b007023162cec6dc1137b6b44f39b17 /mail/wanderlust-emacs | |
parent | ef3d14b3252f4caf77587eb5308c674dbc8c67b5 (diff) | |
download | freebsd-ports-gnome-75da695bcca16f3d39b3db74f1aa2f32f9dfbb66.tar.gz freebsd-ports-gnome-75da695bcca16f3d39b3db74f1aa2f32f9dfbb66.tar.zst freebsd-ports-gnome-75da695bcca16f3d39b3db74f1aa2f32f9dfbb66.zip |
Fix for renaming portname from mail/wanderlust-xemacs-mule to
mail/wanderlust-xemacs21-mule.
Install as XEmacs package on mail/wanderlust-xemacs21-mule.
Depend on cookie of semi (editors/semi-*).
PR: ports/16190
Submitted by: MANTANI Nobutaka <nobutaka@nobutaka.com>
Diffstat (limited to 'mail/wanderlust-emacs')
-rw-r--r-- | mail/wanderlust-emacs/Makefile | 115 |
1 files changed, 82 insertions, 33 deletions
diff --git a/mail/wanderlust-emacs/Makefile b/mail/wanderlust-emacs/Makefile index ced473ae8b06..528d8df3672b 100644 --- a/mail/wanderlust-emacs/Makefile +++ b/mail/wanderlust-emacs/Makefile @@ -16,12 +16,16 @@ MASTER_SITES= ftp://ftp.gohome.org/wl/stable/ \ MAINTAINER= nobutaka@nobutaka.com +SEMI_VER= 1.13.4 +SEMI_COOKIE= semi-${EMACS_PORT}-${SEMI_VER}.FreeBSD-packages + .if !defined (IS_SLAVE) # for emacs19 -EMACS_NAME= emacs -EMACS_PORT= emacs -EMACS_VER= 19.34 -EMACS_LIBDIR= share/emacs +EMACS_NAME= emacs +EMACS_PORT= emacs +EMACS_VER= 19.34 +EMACS_LIBDIR= share/emacs +EMACS_LIBDIR_WITH_VER= share/emacs/${EMACS_VER} .endif EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER} @@ -38,76 +42,121 @@ RUN_DEPENDS= ${PKG_DBDIR}/${EMACS_PORT}-common-${MULE_VER}:${PORTSDIR}/editors/$ RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT} .endif # depends on semi -.if defined(EMACS_PACKAGESDIR) -BUILD_DEPENDS+= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/semi/mime-setup.el:${PORTSDIR}/editors/semi-${EMACS_PORT} -RUN_DEPENDS+= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/semi/mime-setup.el:${PORTSDIR}/editors/semi-${EMACS_PORT} -.else -BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/site-lisp/semi/mime-setup.el:${PORTSDIR}/editors/semi-${EMACS_PORT} -RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/site-lisp/semi/mime-setup.el:${PORTSDIR}/editors/semi-${EMACS_PORT} -.endif +BUILD_DEPENDS+= ${PREFIX}/share/semi/${SEMI_COOKIE}:${PORTSDIR}/editors/semi-${EMACS_PORT} +RUN_DEPENDS+= ${PREFIX}/share/semi/${SEMI_COOKIE}:${PORTSDIR}/editors/semi-${EMACS_PORT} -.if (${EMACS_PORT} == "xemacs-mule") -DIRSECTION= "Local Packages:" -ALL_TARGET= all info +.if (${EMACS_PORT} == "xemacs21-mule") +ALL_TARGET= package +INSTALL_TARGET= install-package .endif .if (${EMACS_PORT} == "emacs20" || ${EMACS_PORT} == "mule") -DIRSECTION= "The Emacs editor and associated tools" ALL_TARGET= all info .endif -PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER_LIBDIR=${EMACS_VER_LIBDIR} - +DIRSECTION= "The Emacs editor and associated tools" DOCSDIR= ${PREFIX}/share/doc/wanderlust DOCS= 00README 00README.ja ChangeLog ChangeLog.ja SAMPLESDIR= ${PREFIX}/share/examples/wanderlust SAMPLES= sample.addresses sample.dot.wl sample.folders +PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \ + EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} DIRSECTION=${DIRSECTION} + PLIST= ${PKGDIR}/PLIST.${EMACS_PORT} -MAKE_ARGS= EMACS=${EMACS_CMD} ELISPDIR=${PREFIX}/${EMACS_LIBDIR}/site-lisp/wanderlust FLAGS="-batch -q -no-site-file -l ${WRKDIR}/wanderlust-startup.el" +MAKE_ARGS= EMACS=${EMACS_CMD} ELISPDIR=${PREFIX}/${EMACS_LIBDIR}/site-lisp/wanderlust \ + FLAGS="-batch -q -no-site-file -l ${WRKDIR}/wanderlust-startup.el" +.if (${EMACS_PORT} == "xemacs21-mule") +MAKE_ARGS+= PACKAGEDIR=${PREFIX}/${EMACS_PACKAGESDIR} +.else +MAKE_ARGS+= INFODIR=${PREFIX}/info +.endif post-configure: @${SED} \ -e "s,%%PREFIX%%,${PREFIX},g" \ -e "s,%%EMACS_LIBDIR%%,${EMACS_LIBDIR},g" \ - -e "s,%%EMACS_VER_LIBDIR%%,${EMACS_VER_LIBDIR},g" \ + -e "s,%%EMACS_LIBDIR_WITH_VER%%,${EMACS_LIBDIR_WITH_VER},g" \ + -e "s,%%EMACS_PACKAGESDIR%%,${EMACS_PACKAGESDIR},g" \ < ${FILESDIR}/wanderlust-startup.${EMACS_PORT}.el.tmpl > ${WRKDIR}/wanderlust-startup.el +pre-build: +.if (${EMACS_PORT} == "xemacs21-mule") + @${INSTALL_DATA} ${FILESDIR}/_pkg.el ${WRKSRC}/ +.endif + pre-install: +.if (${EMACS_PORT} != "xemacs21-mule") @${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wanderlust +.endif post-install: -.if (${EMACS_PORT} == "xemacs-mule") - @if [ ! -f ${PREFIX}/${EMACS_LIBDIR}/info/dir ]; then \ - ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/${EMACS_VER_LIBDIR}/info/dir; \ + @${MAKE} install-info +.if !defined(NOPORTDOCS) + @${MAKE} install-docs +.endif +.if (${EMACS_PORT} == "xemacs20") + @${MAKE} install-icons +.endif + @${MAKE} install-samples + @${MAKE} install-utils +.if (${EMACS_PORT} == "xemacs21-mule") + @${MAKE} install-manifest +.endif + @${CAT} ${PKGDIR}/MESSAGE + +# local targets +install-info: +.if (${EMACS_PORT} == "xemacs21-mule") + @if [ ! -f ${PREFIX}/${EMACS_PACKAGESDIR}/info/dir ]; then \ + ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/${EMACS_PACKAGESDIR}/info/dir; \ fi - @${INSTALL_DATA} ${WRKSRC}/doc/wl-ja.info ${PREFIX}/${EMACS_VER_LIBDIR}/info - @install-info --section=${DIRSECTION} ${PREFIX}/${EMACS_VER_LIBDIR}/info/wl-ja.info ${PREFIX}/${EMACS_VER_LIBDIR}/info/dir + @install-info --section=${DIRSECTION} ${PREFIX}/${EMACS_PACKAGESDIR}/info/wl-ja.info ${PREFIX}/${EMACS_PACKAGESDIR}/info/dir .endif .if (${EMACS_PORT} == "emacs20" || ${EMACS_PORT} == "mule") @${INSTALL_DATA} ${WRKSRC}/doc/wl-ja.info ${PREFIX}/info @install-info --section=${DIRSECTION} ${PREFIX}/info/wl-ja.info ${PREFIX}/info/dir .endif -.if !defined(NOPORTDOCS) + +install-docs: @${MKDIR} ${DOCSDIR} @for i in ${DOCS} ; do \ ${INSTALL_DATA} ${WRKSRC}/$$i ${DOCSDIR} ; \ done @${INSTALL_DATA} ${WRKSRC}/doc/wl-ja.texi ${DOCSDIR} -.endif -.if (${EMACS_NAME} == "xemacs") + +install-icons: @${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/etc/wanderlust @for i in *.xpm ; do \ ${INSTALL_DATA} ${WRKSRC}/etc/$$i ${PREFIX}/${EMACS_LIBDIR}/etc/wanderlust ; \ done -.endif + +install-samples: + @${MKDIR} ${SAMPLESDIR} + @for i in ${SAMPLES} ; do \ + ${INSTALL_DATA} ${WRKSRC}/$$i ${SAMPLESDIR} ; \ + done + +install-utils: +.if (${EMACS_PORT} == "xemacs21-mule") + @${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl + @${INSTALL_DATA} ${WRKSRC}/utils/bbdb-wl.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl + @${INSTALL_DATA} ${WRKSRC}/utils/im-wl.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl + @${INSTALL_DATA} ${WRKSRC}/utils/wl-user-agent.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl +.else +.if (${EMACS_PORT} == "emacs" || ${EMACS_PORT} == "mule") + @${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp +.else @${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp +.endif @${INSTALL_DATA} ${WRKSRC}/utils/bbdb-wl.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wanderlust @${INSTALL_DATA} ${WRKSRC}/utils/im-wl.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wanderlust @${INSTALL_DATA} ${WRKSRC}/utils/wl-user-agent.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wanderlust - @${MKDIR} ${SAMPLESDIR} - @for i in ${SAMPLES} ; do \ - ${INSTALL_DATA} ${WRKSRC}/$$i ${SAMPLESDIR} ; \ - done - @${CAT} ${PKGDIR}/MESSAGE +.endif + +install-manifest: + @${CAT} ${PKGDIR}/PLIST.${EMACS_PORT} | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \ + ${SED} -e "s!^%%EMACS_PACKAGESDIR%%!!" > ${WRKDIR}/${MANIFEST} + @${INSTALL_DATA} ${WRKDIR}/${MANIFEST} ${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/ + @${INSTALL_DATA} ${FILESDIR}/_pkg.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl/ .include <bsd.port.mk> |