Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 1999 11:23:41 +0900 (JST)
From:      KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13388: New ports: prom-mew-1.93.3(mail/prom-mew)
Message-ID:  <199908260223.LAA96893@pis.toba-cmt.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         13388
>Category:       ports
>Synopsis:       New ports: prom-mew-1.93.3(mail/prom-mew)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 25 19:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     KIRIYAMA Kazuhiko
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Toba National College of Maritime Technology.
	Department of Electronic Mechanical Engineering
>Environment:
>Description:
prom-mew port has been ported. This port is the procmail reader for Mew on GNU Emacs.

I put the port with shar `find prom-mew` below "Fix:"
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	prom-mew/
#	prom-mew/files/
#	prom-mew/files/md5
#	prom-mew/files/dot.emacs
#	prom-mew/files/byte-compile
#	prom-mew/files/dot.procmailrc
#	prom-mew/pkg/
#	prom-mew/pkg/COMMENT
#	prom-mew/pkg/DESCR
#	prom-mew/pkg/PLIST
#	prom-mew/Makefile
#
echo c - prom-mew/
mkdir -p prom-mew/ > /dev/null 2>&1
echo c - prom-mew/files/
mkdir -p prom-mew/files/ > /dev/null 2>&1
echo x - prom-mew/files/md5
sed 's/^X//' >prom-mew/files/md5 << 'END-of-prom-mew/files/md5'
XMD5 (prom-mew-1.93.3.tar.gz) = 5fdb5cfbdf5c8787509efd0bca3690c2
END-of-prom-mew/files/md5
echo x - prom-mew/files/dot.emacs
sed 's/^X//' >prom-mew/files/dot.emacs << 'END-of-prom-mew/files/dot.emacs'
X;;;
X;;; Prom-Mew
X;;;
X(autoload 'prom-mew "prom-mew" "mew for using procmail" t)
X(setq proc-log-list (list "~/Mail/from-log"))
X	;; logfile name that procmail output (LOGFILE in ~/.procmail)
X(setq proc-keep-log "~/Mail/listlog")	;; logfile name for preserve
X(setq proc-lock-file "~/Mail/.lock")	;; lockfile name (LOCKFILE in ~/.procmail)
END-of-prom-mew/files/dot.emacs
echo x - prom-mew/files/byte-compile
sed 's/^X//' >prom-mew/files/byte-compile << 'END-of-prom-mew/files/byte-compile'
X#!/bin/sh
X
XPREFIX=${PREFIX:-/usr/local}
XWRKDIR=${WRKDIR:-`pwd`}
X
Xtmprfx=`basename $0`
X
XUsage="\
Xbyte_compile [options] emacs_name port_name [files]
X	-l load_el	: load *.el file when byte-compile
X	-h		: show this message
X	emacs_name	: should be one of below
X			  \"emacs\", \"emacs20\", \"mule\", \"xemacs19\", \"xemacs20\",
X			  \"xemacs21\", \"xemacs-mule\"
X	port_name	: port name(replaced *.el when files not specified)
X	files		: *.el files should be compiled"
X
Xwhile [ -z "`getopts "l: h" opt > /tmp/${tmprfx}:getopt_err.log`" \
X	-a X"${opt}" != "X?" ]; do
X    case ${opt} in
X	l)
X	    load_el=${OPTARG}
X	    break
X	    ;;
X	h)
X	    echo "${Usage}"
X	    exit 1
X	    ;;
X	*)
X	    ;;
X    esac
X#    echo "opt=${opt},OPTARG=${OPTARG}"
Xdone
X
Xif [ -s /tmp/${tmprfx}:getopt_err.log ]; then
X    cat /tmp/${tmprfx}:getopt_err.log
X    rm -f /tmp/${tmprfx}:getopt_err.log
X    exit 1
Xfi
Xrm -f /tmp/${tmprfx}:getopt_err.log
X
Xshift `expr ${OPTIND} - 1`
X
Xif [ -z "$1" -o -z "$2" ]; then
X    echo "${Usage}"
X    exit 1
Xfi
X
Xemacs_name=$1
Xshift
Xport_name=$1
X
Xif [ $# -le 1 ]; then
X    files=${port_name}.el
Xelse
X    files=`echo $* | sed -e "s/${port_name} *//"`
Xfi
X
X#echo "emacs_name=${emacs_name}"
X#echo "port_name=${port_name}"
X#echo "files=${files}"
X#echo "load_el=${load_el}"
X#exit 1
X
Xcase ${emacs_name} in
X    emacs)
X	load_path=${PREFIX}/share/emacs/19.34/${load_el}
X	emacscmd=emacs
X	;;
X    emacs20)
X	load_path=${PREFIX}/share/emacs/20.3/${load_el}
X	emacscmd=emacs20
X	;;
X    mule)
X	load_path=${PREFIX}/share/mule/19.34/${load_el}
X	emacscmd=mule
X	;;
X    xemacs19)
X	load_path=${PREFIX}/lib/xemacs-19.16/${load_el}
X	emacscmd=xemacs
X	;;
X    xemacs20)
X	load_path=${PREFIX}/lib/xemacs-20.4/${load_el}
X	emacscmd=xemacs
X	;;
X    xemacs21)
X	load_path=${PREFIX}/lib/xemacs-21.1.4/${load_el}
X	pkg_path=${PREFIX}/lib/xemacs/site-packages
X	emacscmd=xemacs
X	;;
X    xemacs-mule)
X	load_path=${PREFIX}/lib/xemacs/xemacs-packages/lisp/${load_el}
X	pkg_path=${PREFIX}/lib/xemacs/site-packages
X	emacscmd=xemacs
X	;;
X    *)
X	echo "${Usage}"
X	exit 1
X	;;
Xesac
Xif [ -n "${load_el}" ]; then
X    echo "(setq load-path (cons \"${load_path}\" load-path))" > /tmp/${tmprfx}:load.el
Xfi
Xcp ${pkg_path}/pkginfo/MANIFEST.${port_name} ${pkg_path}/pkginfo/MANIFEST.${port_name}.bak
Xfor f in ${files}; do
X    if [ -f ${WRKDIR}/${f} ]; then
X	if [ -n "${load_el}" ]; then
X	    ${emacscmd} -batch -l /tmp/${tmprfx}:load.el -q -no-site-file \
X		-f batch-byte-compile ${WRKDIR}/${f}
X	else
X	    ${emacscmd} -batch -q -no-site-file -f batch-byte-compile ${WRKDIR}/${f}
X	fi
X	if [ $? -eq 0 -a -d ${pkg_path}/lisp/${port_name} ]; then
X	    rm -f ${pkg_path}/lisp/${port_name}/${f}.elc
X	    ln -s ${WRKDIR}/${f}.elc ${pkg_path}/lisp/${port_name}/${f}.elc
X	    cp ${pkg_path}/pkginfo/MANIFEST.${port_name} /tmp/${tmprfx}:tempfile
X	    grep -v "${f}.elc" /tmp/${tmprfx}:tempfile \
X		> ${pkg_path}/pkginfo/MANIFEST.${port_name}
X	    echo "lisp/${port_name}/${f}.elc" >> ${pkg_path}/pkginfo/MANIFEST.${port_name}
X	else
X	    cp ${pkg_path}/pkginfo/MANIFEST.${port_name} /tmp/${tmprfx}:tempfile
X	    grep -v "${f}.elc" /tmp/${tmprfx}:tempfile \
X		> ${pkg_path}/pkginfo/MANIFEST.${port_name}
X	    rm -f ${pkg_path}/lisp/${port_name}/${f}.elc
X	fi
X    else
X	echo "\"${WRKDIR}/${f}\": file not found!"
X    fi
Xdone
X
Xrm -f /tmp/${tmprfx}:load.el ${pkg_path}/pkginfo/MANIFEST.${port_name}.bak
END-of-prom-mew/files/byte-compile
echo x - prom-mew/files/dot.procmailrc
sed 's/^X//' >prom-mew/files/dot.procmailrc << 'END-of-prom-mew/files/dot.procmailrc'
XMAILDIR=$HOME/Mail        # Mew folder directory (indispensable for Prom-Mew)
XLOGFILE=$MAILDIR/from-log # log file (indispensable for Prom-Mew)
XLOCKFILE=$MAILDIR/.lock   # global lockfile (indispensable for Prom-Mew)
X
X# trash
X
X:0
X* ^To: *undisclosed-recipients
Xtrash/.
X
X#
X# Daily outputs
X#
X
X# daily output - fbsd
X
X:0
X* ^Subject: +daily *run *output$
X* ^From: *Charlie *Root *.*$
Xdaily/.
X
X#
X# Mailing Lists
X#
X
X:0
X* ^Subject: *\[FreeBSD-users-jp *[0-9]+\]
X* ^To:.*[Ff]ree[Bb][Ss][Dd]-users-jp@jp\.freebsd\.org
XML/FreeBSD-users-jp/.
X
X:0
X* ^Subject: *\[Mew-dist *[0-9]+\]
XML/Mew/.
X
X#
X# Miscs
X#
X
X:0
X* ^Cc:.*sinet-.*@
Xmaintain/.
END-of-prom-mew/files/dot.procmailrc
echo c - prom-mew/pkg/
mkdir -p prom-mew/pkg/ > /dev/null 2>&1
echo x - prom-mew/pkg/COMMENT
sed 's/^X//' >prom-mew/pkg/COMMENT << 'END-of-prom-mew/pkg/COMMENT'
Xprocmail reader for Mew on GNU Emacs.
END-of-prom-mew/pkg/COMMENT
echo x - prom-mew/pkg/DESCR
sed 's/^X//' >prom-mew/pkg/DESCR << 'END-of-prom-mew/pkg/DESCR'
XProm-Mew is a procmail reader for Mew on GNU Emacs.
X
XIf you want to install quickly, you shoud do following steps:
X
X(1) add dot.emacs to your ~/.emacs file and change it suitable for your site
X
X  % cat /usr/local/share/examples/prom-mew/dot.emacs >> ~/.emacs
X  % vi ~/.emacs
X
X(2) copy dot.procmailrc to ~/.procmailrc and change it suitable for your site
X
X  % cp /usr/local/share/examples/prom-mew/dot.promailrc ~/.promailrc
X  % vi ~/.promailrc
X
X(3) byte-compile with "byte-comile" script if you want
X
X  # cd /usr/local/share/emacs/site-lisp
X  # /usr/local/share/doc/prom-mew/byte_compile -l mew xemacs-mule prom-mew
X
XWhere detail specification for .emacs and .procmailrc may be shown in
X/usr/local/share/doc/prom-mew/prom-usage.jis or procmail(1). And for
Xusage of byte_compile scripts, run byte_compile with -h option.
X
XRun with "M-x prom-mew" in your emacs editors, Mew will be invoked and then
Xsearch unread mails from procmail log to show unread message from top of
Xentries that you specfied in ~/.pronmailrc.
X
X-KIRIYAMA Kazuhiko
X<kiri@pis.toba-cmt.ac.jp>
END-of-prom-mew/pkg/DESCR
echo x - prom-mew/pkg/PLIST
sed 's/^X//' >prom-mew/pkg/PLIST << 'END-of-prom-mew/pkg/PLIST'
Xshare/emacs/site-lisp/prom-mew.el
Xlib/xemacs/site-packages/lisp/prom-mew/prom-mew.el
Xlib/xemacs/site-packages/pkginfo/MANIFEST.prom-mew
Xshare/doc/prom-mew/ChangeLog
Xshare/doc/prom-mew/prom-usage.jis
Xshare/doc/prom-mew/byte-compile
Xshare/examples/prom-mew/dot.emacs
Xshare/examples/prom-mew/dot.procmailrc
X@dirrm lib/xemacs/site-packages/lisp/prom-mew
X@dirrm share/doc/prom-mew
END-of-prom-mew/pkg/PLIST
echo x - prom-mew/Makefile
sed 's/^X//' >prom-mew/Makefile << 'END-of-prom-mew/Makefile'
X# New ports collection makefile for:	prom-mew
X# Version required:     1.93.3
X# Date created:		28 Jun 1999
X# Whom:			KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp>
X#
X# $Id$
X#
X
XDISTNAME=       prom-mew-1.93.3
XCATEGORIES=	mail elisp
XMASTER_SITES=	http://www02.so-net.ne.jp/~murata/software/pub/
X
XMAINTAINER=     kiri@pis.toba-cmt.ac.jp
X
X# This port requires Mew and procmail. But for conveniency, there is NO RUN_DEPNDS
X# ediotrs/mew* nor mail/procmail.
X
XNO_BUILD=	yes
X
XELISPDIR=	${PREFIX}/share/emacs/site-lisp
XSITEPKGDIR=	${PREFIX}/lib/xemacs/site-packages
X
Xdo-install:
X	@${MKDIR} ${ELISPDIR} ${PREFIX}/share/doc/prom-mew \
X		${PREFIX}/share/examples/prom-mew
X	@cd ${WRKSRC}; \
X	${INSTALL_DATA} prom-mew.el ${ELISPDIR}; \
X	${INSTALL_DATA} ChangeLog prom-usage.jis ${PREFIX}/share/doc/prom-mew
X	@cd ${FILESDIR}; \
X	${INSTALL_SCRIPT} byte-compile ${PREFIX}/share/doc/prom-mew; \
X	${INSTALL_DATA} dot.emacs dot.procmailrc ${PREFIX}/share/examples/prom-mew
X# For xemacs package install configuration
X	@${MKDIR} ${SITEPKGDIR}/lisp/prom-mew ${SITEPKGDIR}/pkginfo
X	@${LN} -sf ${ELISPDIR}/prom-mew.el ${SITEPKGDIR}/lisp/prom-mew/prom-mew.el
X	@${ECHO} 'pkginfo/MANIFEST.prom-mew' > ${SITEPKGDIR}/pkginfo/MANIFEST.prom-mew
X	@${ECHO} 'lisp/prom-mew/prom-mew.el' >> ${SITEPKGDIR}/pkginfo/MANIFEST.prom-mew
X
X.include <bsd.port.mk>
END-of-prom-mew/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908260223.LAA96893>