mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
procmail reader for Wanderlust on GNU Emacs.
PR: ports/13518 Submitted by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
This commit is contained in:
parent
1b432bd0e3
commit
6f5cb8c128
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21340
39
mail/prom-wl/Makefile
Normal file
39
mail/prom-wl/Makefile
Normal file
@ -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>
|
1
mail/prom-wl/distinfo
Normal file
1
mail/prom-wl/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (prom-wl-1.0.2.tar.gz) = c9e64c1e26fbf3c1d8fa3c9d1662ed8a
|
139
mail/prom-wl/files/byte-compile
Normal file
139
mail/prom-wl/files/byte-compile
Normal file
@ -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
|
8
mail/prom-wl/files/dot.emacs
Normal file
8
mail/prom-wl/files/dot.emacs
Normal file
@ -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)
|
41
mail/prom-wl/files/dot.procmailrc
Normal file
41
mail/prom-wl/files/dot.procmailrc
Normal file
@ -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/.
|
1
mail/prom-wl/pkg-comment
Normal file
1
mail/prom-wl/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
procmail reader for Wanderlust on GNU Emacs.
|
29
mail/prom-wl/pkg-descr
Normal file
29
mail/prom-wl/pkg-descr
Normal file
@ -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>
|
10
mail/prom-wl/pkg-plist
Normal file
10
mail/prom-wl/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user