Subscribed unsubscribe Subscribe Subscribe

haskell-mode-2.2.ebuild

Gentoo

2.2の自動インデントが効かない.typoのせい.以下haskell-mode-2.2-typo.patch

--- haskell-indent.el.orig      2007-02-13 04:20:36.000000000 +0900
+++ haskell-indent.el   2007-02-13 04:20:45.000000000 +0900
@@ -316,7 +316,7 @@
 
 (defcustom haskell-indent-look-past-empty-line t
   "If nil, indentation engine will not look past an empty line for layout points."
-  :trype 'boolean)
+  :type 'boolean)
 
 (defun haskell-indent-start-of-def ()
   "Return the position of the start of a definition.

何でかクリーンインストールは失敗する.仕方ないのでDEPENDに自分自身が入っているという気持ち悪いやりかた.

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/haskell-mode/haskell-mode-2.2.ebuild,v 1.2 2007/02/11 09:32:47 opfer Exp $

inherit eutils elisp

IUSE=""

DESCRIPTION="Mode for editing (and running) Haskell programs in Emacs"
HOMEPAGE="http://www.haskell.org/haskell-mode/
	http://www.iro.umontreal.ca/~monnier/elisp/"
SRC_URI="http://www.iro.umontreal.ca/~monnier/elisp/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64 ~sparc"
DEPEND="app-emacs/haskell-mode"

SITEFILE="51${PN}-gentoo.el"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-typo.patch"
}

src_install() {
	elisp-install ${PN} *.{el,elc}
	elisp-site-file-install "${FILESDIR}/${SITEFILE}"
	dohtml *.html *.hs
	dodoc ChangeLog NEWS
	insinto /usr/share/doc/${PF}
	doins *.hs
}

pkg_postinst() {
	elisp_pkg_postinst
	elog "See /usr/share/doc/${PF}/html/index.html"
}

インデント変わったなぁ.ファイル先頭に

module Hoge where

と書くとそれ以降が一段インデントされる.やめてくれー.