ports/63813: New port: lang/haskell-mode.el
Josh Elsasser
jre at vineyard.net
Fri Mar 5 19:10:01 UTC 2004
>Number: 63813
>Category: ports
>Synopsis: New port: lang/haskell-mode.el
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 05 11:10:01 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Josh Elsasser
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 5.2-CURRENT #11: Sat Feb 7 15:09:05 EST 2004
joshe at jade.elsasser.org:/usr/local/obj/usr/src/sys/JADE
>Description:
An emacs lisp mode for editing haskell programs.
>How-To-Repeat:
>Fix:
--- haskell-mode.el.shar begins here ---
# 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:
#
# haskell-mode.el
# haskell-mode.el/Makefile
# haskell-mode.el/distinfo
# haskell-mode.el/pkg-descr
# haskell-mode.el/pkg-plist
# haskell-mode.el/pkg-message
#
echo c - haskell-mode.el
mkdir -p haskell-mode.el > /dev/null 2>&1
echo x - haskell-mode.el/Makefile
sed 's/^X//' >haskell-mode.el/Makefile << 'END-of-haskell-mode.el/Makefile'
X# New ports collection makefile for: haskell-mode.el
X# Date created: 5 March 2004
X# Whom: Josh Elsasser <jre at vineyard.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME= haskell-mode
XPORTVERSION= 1.44
XCATEGORIES= lang elisp
XMASTER_SITES= http://www.haskell.org/haskell-mode/
X
XMAINTAINER= jre at vineyard.net
XCOMMENT= An Emacs lisp mode for editing haskell programs
X
XNO_BUILD= yes
X
XELISPDIR= ${PREFIX}/share/emacs/site-lisp/${PORTNAME}/
XELISPFILES= haskell-decl-scan.el haskell-doc.el haskell-font-lock.el \
X haskell-ghci.el haskell-hugs.el haskell-indent.el \
X haskell-mode.el haskell-simple-indent.el
X
Xdo-install:
X ${MKDIR} ${ELISPDIR}
X.for i in ${ELISPFILES}
X ${INSTALL_DATA} ${WRKSRC}/${i} ${ELISPDIR}
X.endfor
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-haskell-mode.el/Makefile
echo x - haskell-mode.el/distinfo
sed 's/^X//' >haskell-mode.el/distinfo << 'END-of-haskell-mode.el/distinfo'
XMD5 (haskell-mode-1.44.tar.gz) = 8317d8bf8588e254e753977e48ad3bf6
XSIZE (haskell-mode-1.44.tar.gz) = 58601
END-of-haskell-mode.el/distinfo
echo x - haskell-mode.el/pkg-descr
sed 's/^X//' >haskell-mode.el/pkg-descr << 'END-of-haskell-mode.el/pkg-descr'
XAn Emacs lisp mode for editing haskell programs which is very basic,
Xbut provides a base on which to build modules. The currently
Xsupported modules are:
X
X * Font Locking: Colours keywords, comments, strings, etc.
X * Declaration Scanning: Scans declarations and places them in a
X menu.
X * Documentation: Echoes types of functions or syntax of keywords
X when the cursor is idle.
X * Indentation: Provides semi-automatic intelligent indentation.
X * Simple Indentation: Provides simple indentation.
X * Hugs Interaction: Allows interaction with the Hugs interpreter.
X * GHCi Interaction: Allows interaction with the GHCi interpreter.
X
XNote that if you want to use haskell-mode under XEmacs, you should
Xinstall editors/xemacs-packages instead.
X
XWWW: http://www.haskell.org/haskell-mode/
END-of-haskell-mode.el/pkg-descr
echo x - haskell-mode.el/pkg-plist
sed 's/^X//' >haskell-mode.el/pkg-plist << 'END-of-haskell-mode.el/pkg-plist'
Xshare/emacs/site-lisp/haskell-mode/haskell-decl-scan.el
Xshare/emacs/site-lisp/haskell-mode/haskell-doc.el
Xshare/emacs/site-lisp/haskell-mode/haskell-font-lock.el
Xshare/emacs/site-lisp/haskell-mode/haskell-ghci.el
Xshare/emacs/site-lisp/haskell-mode/haskell-hugs.el
Xshare/emacs/site-lisp/haskell-mode/haskell-indent.el
Xshare/emacs/site-lisp/haskell-mode/haskell-mode.el
Xshare/emacs/site-lisp/haskell-mode/haskell-simple-indent.el
X at dirrm share/emacs/site-lisp/haskell-mode
END-of-haskell-mode.el/pkg-plist
echo x - haskell-mode.el/pkg-message
sed 's/^X//' >haskell-mode.el/pkg-message << 'END-of-haskell-mode.el/pkg-message'
XTo use haskell-mode in Emacs, add the following lines to your ~/.emacs:
X
X(setq auto-mode-alist
X (append auto-mode-alist
X '(("\\.[hg]s$" . haskell-mode)
X ("\\.hi$" . haskell-mode)
X ("\\.l[hg]s$" . literate-haskell-mode))))
X(autoload 'haskell-mode "haskell-mode"
X "Major mode for editing Haskell scripts." t)
X(autoload 'literate-haskell-mode "haskell-mode"
X "Major mode for editing literate Haskell scripts." t)
X
XAdd the following lines according to which modules you want to use:
X
X(add-hook 'haskell-mode-hook 'turn-on-haskell-font-lock)
X(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
X(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
X(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
X;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
X(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs)
X
XNote that the two indentation modules are mutually exclusive - add at
Xmost one.
END-of-haskell-mode.el/pkg-message
exit
--- haskell-mode.el.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list