1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # ebuild generated by hackport 0.4.6
8 CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
9 inherit elisp-common haskell-cabal
11 DESCRIPTION="Happy Haskell Programming"
12 HOMEPAGE="http://www.mew.org/~kazu/proj/ghc-mod/"
13 SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
20 RESTRICT=test # doctests break on modules collisions: temporary / temporary-rc
22 RDEPEND="dev-haskell/async:=[profile?]
23 >=dev-haskell/cabal-helper-0.6.0.0:=[profile?] <dev-haskell/cabal-helper-0.7:=[profile?]
24 >=dev-haskell/cereal-0.4:=[profile?]
25 dev-haskell/convertible:=[profile?]
26 >=dev-haskell/djinn-ghc-0.0.2.2:=[profile?]
27 >=dev-haskell/extra-1.4:2=[profile?] <dev-haskell/extra-1.5:2=[profile?]
28 >=dev-haskell/fclabels-2.0:=[profile?] <dev-haskell/fclabels-2.1:=[profile?]
29 dev-haskell/ghc-paths:=[profile?]
30 dev-haskell/ghc-syb-utils:=[profile?]
31 dev-haskell/haskell-src-exts:=[profile?]
32 >=dev-haskell/hlint-1.8.61:=[profile?]
33 >=dev-haskell/monad-control-1:=[profile?]
34 >=dev-haskell/monad-journal-0.4:=[profile?]
35 >=dev-haskell/mtl-2.0:=[profile?]
36 dev-haskell/old-time:=[profile?]
37 >=dev-haskell/pipes-4.1:=[profile?] <dev-haskell/pipes-4.2:=[profile?]
38 dev-haskell/random:=[profile?]
39 dev-haskell/split:=[profile?]
40 dev-haskell/syb:=[profile?]
41 dev-haskell/temporary:=[profile?]
42 dev-haskell/text:=[profile?]
43 dev-haskell/transformers:=[profile?]
44 dev-haskell/transformers-base:=[profile?]
45 >=dev-lang/ghc-7.4.1:=
46 emacs? ( >=app-editors/emacs-23.1:* )
49 >=dev-haskell/cabal-1.14
50 test? ( >=dev-haskell/doctest-0.9.3
51 dev-haskell/executable-path
52 >=dev-haskell/hspec-2.0.0 )
54 SITEFILE=50${PN}-gentoo.el
57 epatch "${FILESDIR}"/${PN}-5.6.0.0-gentoo.patch
61 haskell-cabal_src_compile
70 haskell-cabal_src_install
73 elisp-install ghc-mod elisp/*.{el,elc}
74 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
82 elog "To configure ghc-mod either add this line to ~/.emacs:"
83 elog "(autoload 'ghc-init \"ghc\" nil t)"
84 elog "and either this line:"
85 elog "(add-hook 'haskell-mode-hook (lambda () (ghc-init)))"
86 elog "or if you wish to use flymake:"
87 elog "(add-hook 'haskell-mode-hook (lambda () (ghc-init) (flymake-mode)))"