diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-02-15 21:45:07 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-02-16 10:21:19 +0000 |
commit | 76c669ee7bf0764a039059c535b65fe08d732d8b (patch) | |
tree | 362310e85da16541f389c3e1e0389fd9fcf9c906 /app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild | |
parent | 7d89fd26e0d9596cafd485bdafaff2d1f47bd912 (diff) | |
download | gentoo-76c669ee7bf0764a039059c535b65fe08d732d8b.tar.gz gentoo-76c669ee7bf0764a039059c535b65fe08d732d8b.tar.xz |
app-emacs/ghc-mod: bump up to 5.7.0.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild')
-rw-r--r-- | app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild b/app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild new file mode 100644 index 00000000000..06921bc2b9c --- /dev/null +++ b/app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +# ebuild generated by hackport 0.5.1.9999 + +CABAL_FEATURES="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/cabal-helper-0.7.3.0:=[profile?] <dev-haskell/cabal-helper-0.8:=[profile?] + >=dev-haskell/djinn-ghc-0.0.2.2:=[profile?] <dev-haskell/djinn-ghc-0.1:=[profile?] + >=dev-haskell/extra-1.4.0:=[profile?] <dev-haskell/extra-1.6:=[profile?] + >=dev-haskell/fclabels-2.0:=[profile?] <dev-haskell/fclabels-2.1:=[profile?] + >=dev-haskell/ghc-paths-0.1.0.9:=[profile?] <dev-haskell/ghc-paths-0.2:=[profile?] + >=dev-haskell/ghc-syb-utils-0.2.3:=[profile?] <dev-haskell/ghc-syb-utils-0.3:=[profile?] + >=dev-haskell/haskell-src-exts-1.16.0.1:=[profile?] <dev-haskell/haskell-src-exts-1.19:=[profile?] + >=dev-haskell/hlint-1.9.27:=[profile?] <dev-haskell/hlint-1.10:=[profile?] + >=dev-haskell/monad-control-1:=[profile?] <dev-haskell/monad-control-1.1:=[profile?] + >=dev-haskell/monad-journal-0.4:=[profile?] <dev-haskell/monad-journal-0.8:=[profile?] + >=dev-haskell/mtl-2.0:=[profile?] <dev-haskell/mtl-2.3:=[profile?] + <dev-haskell/old-time-1.2:=[profile?] + >=dev-haskell/optparse-applicative-0.11.0:=[profile?] <dev-haskell/optparse-applicative-0.14.0:=[profile?] + >=dev-haskell/pipes-4.1.0:=[profile?] <dev-haskell/pipes-4.4:=[profile?] + >=dev-haskell/safe-0.3.9:=[profile?] <dev-haskell/safe-0.4:=[profile?] + >=dev-haskell/semigroups-0.10.0:=[profile?] <dev-haskell/semigroups-0.19:=[profile?] + >=dev-haskell/split-0.2.2:=[profile?] <dev-haskell/split-0.3:=[profile?] + >=dev-haskell/syb-0.5.1:=[profile?] <dev-haskell/syb-0.7:=[profile?] + >=dev-haskell/temporary-1.2.0.3:=[profile?] <dev-haskell/temporary-1.3:=[profile?] + >=dev-haskell/text-1.2.1.3:=[profile?] <dev-haskell/text-1.3:=[profile?] + >=dev-haskell/transformers-base-0.4.4:=[profile?] <dev-haskell/transformers-base-0.5:=[profile?] + >=dev-lang/ghc-7.8.2:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.18.1.3 <dev-haskell/cabal-1.25 + test? ( >=dev-haskell/doctest-0.9.3 <dev-haskell/doctest-0.12 + >=dev-haskell/hspec-2.0.0 <dev-haskell/hspec-2.4 ) +" +SITEFILE=50${PN}-gentoo.el + +PATCHES=("${FILESDIR}"/${PN}-5.6.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() { + haskell-cabal_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() { + haskell-cabal_pkg_postrm + if use emacs ; then + elisp-site-regen + fi +} |