diff options
author | taoka <taoka@FreeBSD.org> | 1999-09-06 23:46:53 +0000 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 1999-09-06 23:46:53 +0000 |
commit | ecc0eef0a2da5d9c79f94fdb6e5849be59e2afdf (patch) | |
tree | 48169c6bf2152f83c02a491eff7f1a96cd58148d /mail | |
parent | 826443ff9497d3db0ee67335588c981a52f494ca (diff) | |
download | FreeBSD-ports-ecc0eef0a2da5d9c79f94fdb6e5849be59e2afdf.zip FreeBSD-ports-ecc0eef0a2da5d9c79f94fdb6e5849be59e2afdf.tar.gz |
procmail reader for Wanderlust on GNU Emacs.
PR: ports/13518
Submitted by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/prom-wl/Makefile | 39 | ||||
-rw-r--r-- | mail/prom-wl/distinfo | 1 | ||||
-rw-r--r-- | mail/prom-wl/files/byte-compile | 139 | ||||
-rw-r--r-- | mail/prom-wl/files/dot.emacs | 8 | ||||
-rw-r--r-- | mail/prom-wl/files/dot.procmailrc | 41 | ||||
-rw-r--r-- | mail/prom-wl/pkg-comment | 1 | ||||
-rw-r--r-- | mail/prom-wl/pkg-descr | 29 | ||||
-rw-r--r-- | mail/prom-wl/pkg-plist | 10 |
8 files changed, 268 insertions, 0 deletions
diff --git a/mail/prom-wl/Makefile b/mail/prom-wl/Makefile new file mode 100644 index 0000000..7a63fe4 --- /dev/null +++ b/mail/prom-wl/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: prom-wl +# Version required: 1.0.2 +# Date created: 28 Aug 1999 +# Whom: KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp> +# +# $FreeBSD$ +# + +DISTNAME= prom-wl-1.0.2 +CATEGORIES= mail elisp +MASTER_SITES= http://www02.so-net.ne.jp/~murata/software/pub/ + +MAINTAINER= kiri@pis.toba-cmt.ac.jp + +# This port requires Wanderlust. But we can't decide which Wanderlust to depends, +# there is NO RUN_DEPNDS mail/wanderlust-*. +RUN_DEPENDS= procmail:${PORTSDIR}/mail/procmail + +NO_BUILD= yes + +ELISPDIR= ${PREFIX}/share/emacs/site-lisp +SITEPKGDIR= ${PREFIX}/lib/xemacs/site-packages + +do-install: + @${MKDIR} ${ELISPDIR} ${PREFIX}/share/doc/prom-wl \ + ${PREFIX}/share/examples/prom-wl + @cd ${WRKSRC}; \ + ${INSTALL_DATA} prom-wl.el ${ELISPDIR}; \ + ${INSTALL_DATA} ChangeLog prom-wl-usage.jis ${PREFIX}/share/doc/prom-wl + @cd ${FILESDIR}; \ + ${INSTALL_SCRIPT} byte-compile ${PREFIX}/share/doc/prom-wl; \ + ${INSTALL_DATA} dot.emacs dot.procmailrc ${PREFIX}/share/examples/prom-wl +# For xemacs package install configuration + @${MKDIR} ${SITEPKGDIR}/lisp/prom-wl ${SITEPKGDIR}/pkginfo + @${LN} -sf ${ELISPDIR}/prom-wl.el ${SITEPKGDIR}/lisp/prom-wl/prom-wl.el + @${ECHO} 'pkginfo/MANIFEST.prom-wl' > ${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl + @${ECHO} 'lisp/prom-wl/prom-wl.el' >> ${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl + +.include <bsd.port.mk> diff --git a/mail/prom-wl/distinfo b/mail/prom-wl/distinfo new file mode 100644 index 0000000..6dbffc7 --- /dev/null +++ b/mail/prom-wl/distinfo @@ -0,0 +1 @@ +MD5 (prom-wl-1.0.2.tar.gz) = c9e64c1e26fbf3c1d8fa3c9d1662ed8a diff --git a/mail/prom-wl/files/byte-compile b/mail/prom-wl/files/byte-compile new file mode 100644 index 0000000..48bcc77 --- /dev/null +++ b/mail/prom-wl/files/byte-compile @@ -0,0 +1,139 @@ +#!/bin/sh + +PREFIX=${PREFIX:-/usr/local} +WRKDIR=${WRKDIR:-`pwd`} + +tmprfx=`basename $0` + +Usage="\ +byte_compile [options] emacs_name port_name [files] + -l load_el : load *.el file when byte-compile + -h : show this message + emacs_name : should be one of below + \"emacs\", \"emacs20\", \"mule\", \"xemacs19\", \"xemacs20\", + \"xemacs21\", \"xemacs-mule\" + port_name : port name(replaced port_name.el when files not specified) + files : *.el files should be compiled" + +while [ -z "`getopts "l: h" opt > /tmp/${tmprfx}:getopt_err.log`" \ + -a X"${opt}" != "X?" ]; do + case ${opt} in + l) + load_el=${OPTARG} + break + ;; + h) + echo "${Usage}" + exit 1 + ;; + *) + ;; + esac +# echo "opt=${opt},OPTARG=${OPTARG}" +done + +if [ -s /tmp/${tmprfx}:getopt_err.log ]; then + cat /tmp/${tmprfx}:getopt_err.log + rm -f /tmp/${tmprfx}:getopt_err.log + exit 1 +fi +rm -f /tmp/${tmprfx}:getopt_err.log + +shift `expr ${OPTIND} - 1` + +if [ -z "$1" -o -z "$2" ]; then + echo "${Usage}" + exit 1 +fi + +emacs_name=$1 +shift +port_name=$1 + +if [ $# -le 1 ]; then + files=${port_name}.el +else + files=`echo $* | sed -e "s/${port_name} *//"` +fi + +#echo "emacs_name=${emacs_name}" +#echo "port_name=${port_name}" +#echo "files=${files}" +#echo "load_el=${load_el}" +#exit 1 + +case ${emacs_name} in + emacs) + elispdir=${PREFIX}/share/emacs/site-lisp + load_path=${PREFIX}/share/emacs/site-lisp/${load_el} + emacscmd=emacs + ;; + emacs20) + elispdir=${PREFIX}/share/emacs/site-lisp + load_path=${PREFIX}/share/emacs/site-lisp/${load_el} + emacscmd=emacs20 + ;; + mule) + elispdir=${PREFIX}/share/mule/site-lisp + load_path=${PREFIX}/share/mule/site-lisp/${load_el} + emacscmd=mule + ;; + xemacs19) + elispdir=${PREFIX}/lib/xemacs/site-lisp + load_path=${PREFIX}/lib/xemacs/site-lisp/${load_el} + emacscmd=xemacs + ;; + xemacs20) + elispdir=${PREFIX}/lib/xemacs/site-lisp + load_path=${PREFIX}/lib/xemacs/site-lisp/${load_el} + emacscmd=xemacs + ;; + xemacs21) + elispdir=${PREFIX}/lib/xemacs/site-packages/lisp/${port_name} + load_path=${PREFIX}/lib/xemacs/site-packages/lisp/${load_el} + pkg_path=${PREFIX}/lib/xemacs/site-packages + emacscmd=xemacs + package_install=yes + ;; + xemacs-mule) + elispdir=${PREFIX}/lib/xemacs/site-packages/lisp/${port_name} + load_path=${PREFIX}/lib/xemacs/site-packages/lisp/${load_el} + pkg_path=${PREFIX}/lib/xemacs/site-packages + emacscmd=xemacs + package_install=yes + ;; + *) + echo "${Usage}" + exit 1 + ;; +esac +if [ -n "${load_el}" ]; then + echo "(setq load-path (cons \"${load_path}\" load-path))" > /tmp/${tmprfx}:load.el +fi +for f in ${files}; do + if [ -f ${WRKDIR}/${f} ]; then + f_elc=`basename ${f} .el`.elc + if [ -n "${load_el}" ]; then + ${emacscmd} -batch -l /tmp/${tmprfx}:load.el -q -no-site-file \ + -f batch-byte-compile ${WRKDIR}/${f} + else + ${emacscmd} -batch -q -no-site-file -f batch-byte-compile ${WRKDIR}/${f} + fi + if [ X"${WRKDIR}" != "X${elispdir}" ]; then + rm -f ${elispdir}/${f_elc} + ln -sf ${WRKDIR}/${f} ${elispdir}/${f} + install -c -m 444 -g bin -o bin ${WRKDIR}/${f_elc} ${elispdir}/${f_elc} + rm -f ${WRKDIR}/${f_elc} + fi + if [ $? -eq 0 -a -n "${package_install}" ]; then + cp ${pkg_path}/pkginfo/MANIFEST.${port_name} /tmp/${tmprfx}:tempfile + grep -v "${f_elc}" /tmp/${tmprfx}:tempfile \ + > ${pkg_path}/pkginfo/MANIFEST.${port_name} + echo "lisp/${port_name}/${f_elc}" >> ${pkg_path}/pkginfo/MANIFEST.${port_name} + fi + else + echo "\"${WRKDIR}/${f}\": file not found!" + fi +done + +rm -f /tmp/${tmprfx}:load.el /tmp/${tmprfx}:tempfile diff --git a/mail/prom-wl/files/dot.emacs b/mail/prom-wl/files/dot.emacs new file mode 100644 index 0000000..a4bbb8a --- /dev/null +++ b/mail/prom-wl/files/dot.emacs @@ -0,0 +1,8 @@ +;;; +;;; Prom-WL +;;; +(autoload 'prom-wl "prom-wl" "Prom for Wanderlust" t) +(setq proc-log-list (list "~/Mail/from-log")) + ;; logfile name that procmail output (LOGFILE in ~/.procmailrc) +(setq proc-keep-log "~/Mail/listlog") ;; logfile name for preserve +(setq proc-lock-file "~/Mail/.lock") ;; lockfile name (LOCKFILE in ~/.procmailrc) diff --git a/mail/prom-wl/files/dot.procmailrc b/mail/prom-wl/files/dot.procmailrc new file mode 100644 index 0000000..6b51ac2 --- /dev/null +++ b/mail/prom-wl/files/dot.procmailrc @@ -0,0 +1,41 @@ +MAILDIR=$HOME/Mail # ML folder directory (indispensable for Prom-ML) +LOGFILE=$MAILDIR/from-log # log file (indispensable for Prom-ML) +LOCKFILE=$MAILDIR/.lock # global lockfile (indispensable for Prom-ML) + +# trash + +:0 +* ^To: *undisclosed-recipients +trash/. + +# +# Daily outputs +# + +# daily output - fbsd + +:0 +* ^Subject: +daily *run *output$ +* ^From: *Charlie *Root *.*$ +daily/. + +# +# Mailing Lists +# + +:0 +* ^Subject: *\[FreeBSD-users-jp *[0-9]+\] +* ^To:.*[Ff]ree[Bb][Ss][Dd]-users-jp@jp\.freebsd\.org +ML/FreeBSD-users-jp/. + +:0 +* ^Subject: *\[Mew-dist *[0-9]+\] +ML/Mew/. + +# +# Miscs +# + +:0 +* ^Cc:.*sinet-.*@ +maintain/. diff --git a/mail/prom-wl/pkg-comment b/mail/prom-wl/pkg-comment new file mode 100644 index 0000000..eb8fc75 --- /dev/null +++ b/mail/prom-wl/pkg-comment @@ -0,0 +1 @@ +procmail reader for Wanderlust on GNU Emacs. diff --git a/mail/prom-wl/pkg-descr b/mail/prom-wl/pkg-descr new file mode 100644 index 0000000..2d6675f --- /dev/null +++ b/mail/prom-wl/pkg-descr @@ -0,0 +1,29 @@ +Prom-Wl is a procmail reader for Wanderlust on GNU Emacs. + +If you want to install quickly, you shoud do following steps: + +(1) add dot.emacs to your ~/.emacs file and change it suitable for your site + + % cat /usr/local/share/examples/prom-wl/dot.emacs >> ~/.emacs + % vi ~/.emacs + +(2) copy dot.procmailrc to ~/.procmailrc and change it suitable for your site + + % cp /usr/local/share/examples/prom-wl/dot.promailrc ~/.promailrc + % vi ~/.promailrc + +(3) byte-compile with "byte-comile" script if you want with xemacs-mule code + + # cd /usr/local/share/emacs/site-lisp + # /usr/local/share/doc/prom-wl/byte-compile -l wl xemacs-mule prom-wl + +Where detail specification for .emacs and .procmailrc may be shown in +/usr/local/share/doc/prom-wl/prom-usage.jis or procmail(1). And for +usage of byte_compile scripts, run byte-compile with -h option. + +Run with "M-x prom-wl" in your emacs editors, Wanderlust will be invoked and then +search unread mails from procmail log to show unread message from top of +entries that you specfied in ~/.pronmailrc. + +-KIRIYAMA Kazuhiko +<kiri@pis.toba-cmt.ac.jp> diff --git a/mail/prom-wl/pkg-plist b/mail/prom-wl/pkg-plist new file mode 100644 index 0000000..499b69e --- /dev/null +++ b/mail/prom-wl/pkg-plist @@ -0,0 +1,10 @@ +share/emacs/site-lisp/prom-wl.el +lib/xemacs/site-packages/lisp/prom-wl/prom-wl.el +lib/xemacs/site-packages/pkginfo/MANIFEST.prom-wl +share/doc/prom-wl/ChangeLog +share/doc/prom-wl/prom-wl-usage.jis +share/doc/prom-wl/byte-compile +share/examples/prom-wl/dot.emacs +share/examples/prom-wl/dot.procmailrc +@dirrm lib/xemacs/site-packages/lisp/prom-wl +@dirrm share/doc/prom-wl |