Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37728975
en ru br
Репозитории ALT

Группа :: Редакторы
Пакет: emacs-mode-haskell

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Version: 2.1
Release: alt2.1
Name: emacs-mode-haskell
License: GPLv2+
Group: Editors
Url: http://wiki.haskell.org/haskell-mode/
Summary: Haskell mode for Emacs
Summary(ru_RU.UTF-8): Emacs mode п╢п╩я▐ я▐п╥я▀п╨п╟ п©я─п╬пЁя─п╟п╪п╪п╦я─п╬п╡п╟п╫п╦я▐ Haskell
Packager: Emacs Maintainers Team <emacs at packages.altlinux.org>

Source: haskell-mode-%{version}.tar.gz

BuildArch: noarch
Obsoletes: emacs-haskell-mode
Requires: emacs-common

# Automatically added by buildreq on Thu Aug 05 2002

BuildRequires: rpm-build-emacs

%description
Haskell mode for Emacs. This mode provides syntax highliting, indentation
and interaction with haskell interpreters.

%description -l ru_RU.UTF-8
п═п╣п╤п╦п╪ п╢п╩я▐ я─п╟п╠п╬я┌я▀ я│ Haskell п╦п╥ Emacs. п■п╟п╫п╫я▀п╧ я─п╣п╤п╦п╪ п╬п╠п╣я│п©п╣я┤п╦п╡п╟п╣я┌ п©п╬п╢я│п╡п╣я┌п╨я┐
я│п╦п╫я┌п╟п╨я│п╦я│п╟, п╬я┌я│я┌я┐п©я▀ п╦ п╡п╥п╟п╦п╪п╬п╢п╣п╧я│я┌п╡п╦п╣ я│ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─п╟п╪п╦ я▐п╥я▀п╨п╟ Haskell.

%prep
%setup -n haskell-mode-%{version}

%build
for i in *.el ; do
       emacs -batch --eval "(progn
       (setq load-path (append (list \".\")  load-path))
       (byte-compile-file \"$i\"))"
done

%install
mkdir -p $RPM_BUILD_ROOT%{_emacslispdir}/haskell-mode/
install -m 644 *.el* $RPM_BUILD_ROOT%{_emacslispdir}/haskell-mode/

mkdir -p $RPM_BUILD_ROOT/etc/emacs/site-start.d
cat <<'EOF' >$RPM_BUILD_ROOT/etc/emacs/site-start.d/haskell-mode.el
;; Copyright (C) 2002 Alex Ott
;;
;; Author: ottalex at narod.ru

(setq load-path (append load-path '("/usr/share/emacs/site-lisp/haskell-mode/")))
(setq auto-mode-alist
     (append auto-mode-alist
     '(("\\.[hg]s\\(\\|-boot\\)\\'"  . haskell-mode)
("\\.hi\\(\\|-boot\\)\\'"     . haskell-mode)
("\\.l[hg]s\\(\\|-boot\\)\\'" . literate-haskell-mode))))
; This could be moved/adapted into a Curry-specific package:
(setq auto-mode-alist
     (append auto-mode-alist
     '(("\\.curry\\(\\|-boot\\)\\'"  . haskell-mode)
("\\.lcurry\\(\\|-boot\\)\\'" . literate-haskell-mode))))
(autoload 'haskell-mode "haskell-mode"
 "Major mode for editing Haskell scripts." t)
(autoload 'literate-haskell-mode "haskell-mode"
 "Major mode for editing literate Haskell scripts." t)

; obsolete in 2.1
;(add-hook 'haskell-mode-hook 'turn-on-haskell-font-lock)
(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs)
EOF
chmod 644 $RPM_BUILD_ROOT/etc/emacs/site-start.d/haskell-mode.el

%files
%doc index.html installation-guide.html fontlock.hs indent.hs
%dir %{_emacslispdir}/haskell-mode/
%{_emacslispdir}/haskell-mode/*.el*
#%config(noreplace) /etc/emacs/site-start.d/haskell-mode.el
%config /etc/emacs/site-start.d/haskell-mode.el

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin