diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2015-10-22 22:31:00 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2015-10-22 22:32:06 +0100 |
commit | 42bb87c3b1657d2e6aad059f5c46184612242273 (patch) | |
tree | be9b9109a42578e6da3729d456449c6a76acaff1 /app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild | |
parent | dev-haskell/pipes: new package (diff) | |
download | gentoo-42bb87c3b1657d2e6aad059f5c46184612242273.tar.gz gentoo-42bb87c3b1657d2e6aad059f5c46184612242273.tar.bz2 gentoo-42bb87c3b1657d2e6aad059f5c46184612242273.zip |
app-emacs/ghc-mod: new package
"Happy Haskell Programming",
"The ghc-mod command is a backend command to enrich
Haskell programming on editors including
Emacs, Vim, and Sublime."
Bug: https://bugs.gentoo.org/show_bug.cgi?id=476352
Package-Manager: portage-2.2.23
Diffstat (limited to 'app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild')
-rw-r--r-- | app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild b/app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild new file mode 100644 index 000000000000..eb22207a7609 --- /dev/null +++ b/app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.4.6 + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite" +inherit elisp-common haskell-cabal + +DESCRIPTION="Happy Haskell Programming" +HOMEPAGE="http://www.mew.org/~kazu/proj/ghc-mod/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="emacs" + +RESTRICT=test # doctests break on modules collisions: temporary / temporary-rc + +RDEPEND="dev-haskell/async:=[profile?] + >=dev-haskell/cabal-helper-0.6.0.0:=[profile?] <dev-haskell/cabal-helper-0.7:=[profile?] + >=dev-haskell/cereal-0.4:=[profile?] + dev-haskell/convertible:=[profile?] + >=dev-haskell/djinn-ghc-0.0.2.2:=[profile?] + >=dev-haskell/extra-1.4:2=[profile?] <dev-haskell/extra-1.5:2=[profile?] + >=dev-haskell/fclabels-2.0:=[profile?] <dev-haskell/fclabels-2.1:=[profile?] + dev-haskell/ghc-paths:=[profile?] + dev-haskell/ghc-syb-utils:=[profile?] + dev-haskell/haskell-src-exts:=[profile?] + >=dev-haskell/hlint-1.8.61:=[profile?] + >=dev-haskell/monad-control-1:=[profile?] + >=dev-haskell/monad-journal-0.4:=[profile?] + >=dev-haskell/mtl-2.0:=[profile?] + dev-haskell/old-time:=[profile?] + >=dev-haskell/pipes-4.1:=[profile?] <dev-haskell/pipes-4.2:=[profile?] + dev-haskell/random:=[profile?] + dev-haskell/split:=[profile?] + dev-haskell/syb:=[profile?] + dev-haskell/temporary:=[profile?] + dev-haskell/text:=[profile?] + dev-haskell/transformers:=[profile?] + dev-haskell/transformers-base:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.14 + test? ( >=dev-haskell/doctest-0.9.3 + dev-haskell/executable-path + >=dev-haskell/hspec-2.0.0 ) +" +SITEFILE=50${PN}-gentoo.el + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5.4.0.0-gentoo.patch +} + +src_compile() { + haskell-cabal_src_compile + if use emacs ; then + pushd elisp + elisp-compile *.el || die + popd + fi +} + +src_install() { + haskell-cabal_src_install + if use emacs ; then + pushd "${S}" + elisp-install ghc-mod elisp/*.{el,elc} + elisp-site-file-install "${FILESDIR}"/${SITEFILE} + popd + fi +} + +pkg_postinst() { + if use emacs ; then + elisp-site-regen + elog "To configure ghc-mod either add this line to ~/.emacs:" + elog "(autoload 'ghc-init \"ghc\" nil t)" + elog "and either this line:" + elog "(add-hook 'haskell-mode-hook (lambda () (ghc-init)))" + elog "or if you wish to use flymake:" + elog "(add-hook 'haskell-mode-hook (lambda () (ghc-init) (flymake-mode)))" + fi +} + +pkg_postrm() { + if use emacs ; then + elisp-site-regen + fi +} |