summaryrefslogtreecommitdiff
path: root/mail/prom-mew
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-09-09 00:13:57 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-09-09 00:13:57 +0000
commit46855fa4caa171ba6a1b579fef598750769d23f3 (patch)
treeb67734271b4214500144e1bace94980bdc1e5894 /mail/prom-mew
parentMirror the distfile in ~cpiazza/distfiles, the main server is down (diff)
procmail reader for Mew on GNU Emacs.
PR: 13388 Submitted by: KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp>
Notes
Notes: svn path=/head/; revision=21447
Diffstat (limited to 'mail/prom-mew')
-rw-r--r--mail/prom-mew/Makefile38
-rw-r--r--mail/prom-mew/distinfo1
-rw-r--r--mail/prom-mew/files/byte-compile131
-rw-r--r--mail/prom-mew/files/dot.emacs8
-rw-r--r--mail/prom-mew/files/dot.procmailrc41
-rw-r--r--mail/prom-mew/pkg-comment1
-rw-r--r--mail/prom-mew/pkg-descr29
-rw-r--r--mail/prom-mew/pkg-plist10
8 files changed, 259 insertions, 0 deletions
diff --git a/mail/prom-mew/Makefile b/mail/prom-mew/Makefile
new file mode 100644
index 000000000000..f636116bd4f4
--- /dev/null
+++ b/mail/prom-mew/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: prom-mew
+# Version required: 1.93.3
+# Date created: 28 Jun 1999
+# Whom: KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp>
+#
+# $FreeBSD$
+#
+
+DISTNAME= prom-mew-1.93.3
+CATEGORIES= mail elisp
+MASTER_SITES= http://www02.so-net.ne.jp/~murata/software/pub/
+
+MAINTAINER= kiri@pis.toba-cmt.ac.jp
+
+# This port requires Mew and procmail. But for conveniency, there is NO RUN_DEPNDS
+# ediotrs/mew* nor 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-mew \
+ ${PREFIX}/share/examples/prom-mew
+ @cd ${WRKSRC}; \
+ ${INSTALL_DATA} prom-mew.el ${ELISPDIR}; \
+ ${INSTALL_DATA} ChangeLog prom-usage.jis ${PREFIX}/share/doc/prom-mew
+ @cd ${FILESDIR}; \
+ ${INSTALL_SCRIPT} byte-compile ${PREFIX}/share/doc/prom-mew; \
+ ${INSTALL_DATA} dot.emacs dot.procmailrc ${PREFIX}/share/examples/prom-mew
+# For xemacs package install configuration
+ @${MKDIR} ${SITEPKGDIR}/lisp/prom-mew ${SITEPKGDIR}/pkginfo
+ @${LN} -sf ${ELISPDIR}/prom-mew.el ${SITEPKGDIR}/lisp/prom-mew/prom-mew.el
+ @${ECHO} 'pkginfo/MANIFEST.prom-mew' > ${SITEPKGDIR}/pkginfo/MANIFEST.prom-mew
+ @${ECHO} 'lisp/prom-mew/prom-mew.el' >> ${SITEPKGDIR}/pkginfo/MANIFEST.prom-mew
+
+.include <bsd.port.mk>
diff --git a/mail/prom-mew/distinfo b/mail/prom-mew/distinfo
new file mode 100644
index 000000000000..c46d11ecb6f0
--- /dev/null
+++ b/mail/prom-mew/distinfo
@@ -0,0 +1 @@
+MD5 (prom-mew-1.93.3.tar.gz) = 5fdb5cfbdf5c8787509efd0bca3690c2
diff --git a/mail/prom-mew/files/byte-compile b/mail/prom-mew/files/byte-compile
new file mode 100644
index 000000000000..6f589cb7a25f
--- /dev/null
+++ b/mail/prom-mew/files/byte-compile
@@ -0,0 +1,131 @@
+#!/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 *.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)
+ load_path=${PREFIX}/share/emacs/19.34/${load_el}
+ emacscmd=emacs
+ ;;
+ emacs20)
+ load_path=${PREFIX}/share/emacs/20.3/${load_el}
+ emacscmd=emacs20
+ ;;
+ mule)
+ load_path=${PREFIX}/share/mule/19.34/${load_el}
+ emacscmd=mule
+ ;;
+ xemacs19)
+ load_path=${PREFIX}/lib/xemacs-19.16/${load_el}
+ emacscmd=xemacs
+ ;;
+ xemacs20)
+ load_path=${PREFIX}/lib/xemacs-20.4/${load_el}
+ emacscmd=xemacs
+ ;;
+ xemacs21)
+ load_path=${PREFIX}/lib/xemacs-21.1.4/${load_el}
+ pkg_path=${PREFIX}/lib/xemacs/site-packages
+ emacscmd=xemacs
+ ;;
+ xemacs-mule)
+ load_path=${PREFIX}/lib/xemacs/xemacs-packages/lisp/${load_el}
+ pkg_path=${PREFIX}/lib/xemacs/site-packages
+ emacscmd=xemacs
+ ;;
+ *)
+ echo "${Usage}"
+ exit 1
+ ;;
+esac
+if [ -n "${load_el}" ]; then
+ echo "(setq load-path (cons \"${load_path}\" load-path))" > /tmp/${tmprfx}:load.el
+fi
+cp ${pkg_path}/pkginfo/MANIFEST.${port_name} ${pkg_path}/pkginfo/MANIFEST.${port_name}.bak
+for f in ${files}; do
+ if [ -f ${WRKDIR}/${f} ]; then
+ 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 [ $? -eq 0 -a -d ${pkg_path}/lisp/${port_name} ]; then
+ rm -f ${pkg_path}/lisp/${port_name}/${f}.elc
+ ln -s ${WRKDIR}/${f}.elc ${pkg_path}/lisp/${port_name}/${f}.elc
+ 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}
+ else
+ cp ${pkg_path}/pkginfo/MANIFEST.${port_name} /tmp/${tmprfx}:tempfile
+ grep -v "${f}.elc" /tmp/${tmprfx}:tempfile \
+ > ${pkg_path}/pkginfo/MANIFEST.${port_name}
+ rm -f ${pkg_path}/lisp/${port_name}/${f}.elc
+ fi
+ else
+ echo "\"${WRKDIR}/${f}\": file not found!"
+ fi
+done
+
+rm -f /tmp/${tmprfx}:load.el ${pkg_path}/pkginfo/MANIFEST.${port_name}.bak
diff --git a/mail/prom-mew/files/dot.emacs b/mail/prom-mew/files/dot.emacs
new file mode 100644
index 000000000000..3754e50a4229
--- /dev/null
+++ b/mail/prom-mew/files/dot.emacs
@@ -0,0 +1,8 @@
+;;;
+;;; Prom-Mew
+;;;
+(autoload 'prom-mew "prom-mew" "mew for using procmail" t)
+(setq proc-log-list (list "~/Mail/from-log"))
+ ;; logfile name that procmail output (LOGFILE in ~/.procmail)
+(setq proc-keep-log "~/Mail/listlog") ;; logfile name for preserve
+(setq proc-lock-file "~/Mail/.lock") ;; lockfile name (LOCKFILE in ~/.procmail)
diff --git a/mail/prom-mew/files/dot.procmailrc b/mail/prom-mew/files/dot.procmailrc
new file mode 100644
index 000000000000..bccb55b0f14b
--- /dev/null
+++ b/mail/prom-mew/files/dot.procmailrc
@@ -0,0 +1,41 @@
+MAILDIR=$HOME/Mail # Mew folder directory (indispensable for Prom-Mew)
+LOGFILE=$MAILDIR/from-log # log file (indispensable for Prom-Mew)
+LOCKFILE=$MAILDIR/.lock # global lockfile (indispensable for Prom-Mew)
+
+# 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-mew/pkg-comment b/mail/prom-mew/pkg-comment
new file mode 100644
index 000000000000..b03cb9620b60
--- /dev/null
+++ b/mail/prom-mew/pkg-comment
@@ -0,0 +1 @@
+procmail reader for Mew on GNU Emacs.
diff --git a/mail/prom-mew/pkg-descr b/mail/prom-mew/pkg-descr
new file mode 100644
index 000000000000..74906fc31714
--- /dev/null
+++ b/mail/prom-mew/pkg-descr
@@ -0,0 +1,29 @@
+Prom-Mew is a procmail reader for Mew 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-mew/dot.emacs >> ~/.emacs
+ % vi ~/.emacs
+
+(2) copy dot.procmailrc to ~/.procmailrc and change it suitable for your site
+
+ % cp /usr/local/share/examples/prom-mew/dot.promailrc ~/.promailrc
+ % vi ~/.promailrc
+
+(3) byte-compile with "byte-comile" script if you want
+
+ # cd /usr/local/share/emacs/site-lisp
+ # /usr/local/share/doc/prom-mew/byte_compile -l mew xemacs-mule prom-mew
+
+Where detail specification for .emacs and .procmailrc may be shown in
+/usr/local/share/doc/prom-mew/prom-usage.jis or procmail(1). And for
+usage of byte_compile scripts, run byte_compile with -h option.
+
+Run with "M-x prom-mew" in your emacs editors, Mew 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-mew/pkg-plist b/mail/prom-mew/pkg-plist
new file mode 100644
index 000000000000..3826ef9a0a45
--- /dev/null
+++ b/mail/prom-mew/pkg-plist
@@ -0,0 +1,10 @@
+share/emacs/site-lisp/prom-mew.el
+lib/xemacs/site-packages/lisp/prom-mew/prom-mew.el
+lib/xemacs/site-packages/pkginfo/MANIFEST.prom-mew
+share/doc/prom-mew/ChangeLog
+share/doc/prom-mew/prom-usage.jis
+share/doc/prom-mew/byte-compile
+share/examples/prom-mew/dot.emacs
+share/examples/prom-mew/dot.procmailrc
+@dirrm lib/xemacs/site-packages/lisp/prom-mew
+@dirrm share/doc/prom-mew