summaryrefslogtreecommitdiff
path: root/app-emacs/ghc-mod
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emacs/ghc-mod
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/ghc-mod')
-rw-r--r--app-emacs/ghc-mod/Manifest12
-rw-r--r--app-emacs/ghc-mod/files/50ghc-mod-gentoo.el3
-rw-r--r--app-emacs/ghc-mod/files/ghc-mod-5.4.0.0-gentoo.patch11
-rw-r--r--app-emacs/ghc-mod/files/ghc-mod-5.5.0.0-gentoo.patch11
-rw-r--r--app-emacs/ghc-mod/files/ghc-mod-5.6.0.0-gentoo.patch5
-rw-r--r--app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild94
-rw-r--r--app-emacs/ghc-mod/ghc-mod-5.5.0.0-r1.ebuild96
-rw-r--r--app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild91
-rw-r--r--app-emacs/ghc-mod/metadata.xml19
9 files changed, 342 insertions, 0 deletions
diff --git a/app-emacs/ghc-mod/Manifest b/app-emacs/ghc-mod/Manifest
new file mode 100644
index 000000000000..1abf92b929a4
--- /dev/null
+++ b/app-emacs/ghc-mod/Manifest
@@ -0,0 +1,12 @@
+AUX 50ghc-mod-gentoo.el 75 SHA256 b6dfb4e63143b0d0e9e12ffebc2229d98752b6b766037013ba672c311aa6542b SHA512 483a8d3e464aa4c3252b38bca4b9291a94080c04407df8f7c8ac110e14eb539c6795ae70ed3d6c217db39fd29a6be7c08b8bc295ef1fd2cd1d2aa7efeba7d0f4 WHIRLPOOL 59963d35f9300ac61f71822b2d4b2e2ff746790c43394e36225748463551d9d1f1c440690d87436485d7b86826a3423b1787934a7ac94eee585c09dbd919ba53
+AUX ghc-mod-5.4.0.0-gentoo.patch 449 SHA256 8b0613b0c86307bbecdadce87e8802c1a2d20365b276e047ff3e84f39529be35 SHA512 71fd518ed4b47421e8edd837987b3cea30094bc4c5d74bf16e2154dc5d6873fccb44c037c7b15e6b5d7cf5598292b2abfa7a3ca404f30d450a7d2c3f4bcd41f1 WHIRLPOOL 8a686b39967b4d442a9635c5aa453d402fd9df18dbfb1895492cbec5a7e560c76daa765445978c6a1911feb9eb117c3cb9c81a9a2a71ddd095aadb581236380d
+AUX ghc-mod-5.5.0.0-gentoo.patch 449 SHA256 8b0613b0c86307bbecdadce87e8802c1a2d20365b276e047ff3e84f39529be35 SHA512 71fd518ed4b47421e8edd837987b3cea30094bc4c5d74bf16e2154dc5d6873fccb44c037c7b15e6b5d7cf5598292b2abfa7a3ca404f30d450a7d2c3f4bcd41f1 WHIRLPOOL 8a686b39967b4d442a9635c5aa453d402fd9df18dbfb1895492cbec5a7e560c76daa765445978c6a1911feb9eb117c3cb9c81a9a2a71ddd095aadb581236380d
+AUX ghc-mod-5.6.0.0-gentoo.patch 210 SHA256 23c6f9262f6072ac2efe798ae1599116295916101cd9ee4eb62b6d13472a1aff SHA512 85162dafbc6514cb9aef2b78f2ac116259e792c4654a1aee9c873824158ded69b5478310d474adeed10ea87024f0ace08b24440bc8fd1c6c0732618ec0244562 WHIRLPOOL e166d4c5acc95e47399590833c63689a281cf4bbba3064501db6ae53fbb76a5f3e8893bded54c855c9522aa39031eb82a74d7e7c87f693c829cffcdbf717bbbc
+DIST ghc-mod-5.4.0.0.tar.gz 132546 SHA256 736652a2f63f9e8625c859c94f193ad8ac9f8fe793bbee672b65576309bfb069 SHA512 fabcc5ce2fb9e8790043faae2d42b3714fab96da1409d7f1c4736f332c6b74c76724dce253456fd787526d125cfaa1fe48c4725a0da16aabb35d5edf560f2415 WHIRLPOOL 8f493cf40724ffb7b56877f9a9cf752e9b23d7babb4fbd29fad0068a1b8f8ef85b40a96c1fa65508ef924cb05d73300762081a762777b982e5c8d41af467d2f0
+DIST ghc-mod-5.5.0.0.tar.gz 150774 SHA256 d05be8f3541e875cd4ebefb28968cfc095fc323e49328f2e40581f6f5de70d31 SHA512 006f292394fc24766a2ae2c778635697a63e1b48ef96052af66dc35d1ef30eb600760cd2a517011a7a2b027a0c725ceb3b5e37cfe157741ba97f19068f1264e8 WHIRLPOOL d3aea3a4b3e3c1fd0a1a5c0e094c822d16eb4db6d68a0740062fc0a811aba09efac19eecfd192013ab3da4ca552ea21b497c8793ece67811794834d01e33672d
+DIST ghc-mod-5.7.0.0.tar.gz 146797 SHA256 2aab240c89ab6513807cea4e2065d474274a5ae20f8edc4f77df8e2eafb9e5ca SHA512 843cd0546c0a0cdf30dd9cde5e9148dabf391648bae6d7f2852c83a4cd5b8329f30d0cc578ba6afda02e8885b2ed63c7def4885e0dbaac199d311e476a0cc6e3 WHIRLPOOL 83e5df75283a4fa1ccc961cb62d19a3c85aae2061f7d57d2f050f2018c62f08c84d0a6dd381cec6eb8d37c31e816ee40395b9ca14de6d3c3ddfb86ebe29dc0fa
+EBUILD ghc-mod-5.4.0.0.ebuild 2605 SHA256 e57a728e02d50ebb663990ee1d4a60c400bb8b194745939116894b3e1eb0d120 SHA512 12d41267fa77a2e9186a731835f961875056e0598f7e9986352f37c232fbd0d3843cc77f274a4ee16f08cc02bdfc3e6f4f09c796a86ea9f21fd93b6b6a0c1f56 WHIRLPOOL 2fb1a845dce7f020f19162e8257261f985140cc5732dc4fb969ccc1e43ec5c0c4378f47a86e51af019956434c30abdd6897b7c7d89f46a2fd3acdbf84ba2686f
+EBUILD ghc-mod-5.5.0.0-r1.ebuild 3063 SHA256 837c9939f6a42483615208eb938f7456184d5871b6a3d40d954efea1dcb87c45 SHA512 d1d6911a8b7b98ce052a8e9ff577b28f58e472bf50aa5514f0ccbda125bf898fb2dfdd566d4419c6e6895c75ce8bcf775975a460cb90983a6db5b9f6b54ea4a7 WHIRLPOOL c215917779c082a0185e243999837d0a827538f384c65e82a8404b2d180b4d8341c50b45f5f27786eac452510969f9d4dc218bcb19afe47b27b76cfd8fe5fc67
+EBUILD ghc-mod-5.7.0.0.ebuild 3372 SHA256 61058be8424ec378999c0cefa002c4c3a5b84e08e7dacbfdcb0d3a38c8c155b8 SHA512 071a98379192e9470d9e10de2aec2f6737545de1553d888bdded5bdf125dcd5d66c3eb1ee390cbb6b24618dfb788c52a63c8e3610d2ded2a049c5d446697ac08 WHIRLPOOL 02355c5d8262cef37324ed0873a7685cf65127132584539ff62e21bc5b7bc87087937a3fe79001f4d4f73a2d27e616add4111fd58e66c266fe8a3b761b1db29f
+MISC ChangeLog 1727 SHA256 ead69d939ca80ddf9a90a2e38125ab0058e1a88433503102a54fb34de9a5a335 SHA512 d665f81262b1182fbe46b1c05693e6b324a94c17fa5f2a5a7e8c29634160cff4b77d227551e35d02b0c6f696e32649c0bcee2133326ce6b64a2b677f33afb56b WHIRLPOOL 5f8a5716ffb55f1de60de97cb4af2cfa2a6f6214b9cd35a3688661aa135fa37efd33f5f12b81870dfe043f1a4dba4d3b01199a4c6dabf6776000ba9e207b0cf7
+MISC metadata.xml 703 SHA256 e33a1bb0bd92d9faac76825cdce3901384cea7553eadcf98924f6f8b4e12a946 SHA512 3aff74a7020a4e77247301e09821025a5e7fce4e39186e2a7b316c4c06f7e99b836bdce4d91ae190fa05e5481bbf1d33c12e440387797ee83403017e21559e31 WHIRLPOOL 07a28ece5455bb44aa9cc9b4c504d4cd64b395ecc532ab518c586f2c34ad6a4e46a4864ed188e8917a54a8af8fb7baa9023adbef861d5c794eb978ff901a522f
diff --git a/app-emacs/ghc-mod/files/50ghc-mod-gentoo.el b/app-emacs/ghc-mod/files/50ghc-mod-gentoo.el
new file mode 100644
index 000000000000..402c84de9b12
--- /dev/null
+++ b/app-emacs/ghc-mod/files/50ghc-mod-gentoo.el
@@ -0,0 +1,3 @@
+;;; ghc-mod site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
diff --git a/app-emacs/ghc-mod/files/ghc-mod-5.4.0.0-gentoo.patch b/app-emacs/ghc-mod/files/ghc-mod-5.4.0.0-gentoo.patch
new file mode 100644
index 000000000000..f852744aadb9
--- /dev/null
+++ b/app-emacs/ghc-mod/files/ghc-mod-5.4.0.0-gentoo.patch
@@ -0,0 +1,11 @@
+--- ghc-mod.cabal.orig 2015-04-18 13:14:37.566613645 +0200
++++ ghc-mod.cabal 2015-04-18 13:14:53.420241209 +0200
+@@ -26,8 +26,6 @@
+ Category: GHC, Development
+ Cabal-Version: >= 1.14
+ Build-Type: Custom
+-Data-Files: elisp/Makefile
+- elisp/*.el
+ Data-Files: LICENSE COPYING.BSD3 COPYING.AGPL3
+ Extra-Source-Files: ChangeLog
+ SetupCompat.hs
diff --git a/app-emacs/ghc-mod/files/ghc-mod-5.5.0.0-gentoo.patch b/app-emacs/ghc-mod/files/ghc-mod-5.5.0.0-gentoo.patch
new file mode 100644
index 000000000000..f852744aadb9
--- /dev/null
+++ b/app-emacs/ghc-mod/files/ghc-mod-5.5.0.0-gentoo.patch
@@ -0,0 +1,11 @@
+--- ghc-mod.cabal.orig 2015-04-18 13:14:37.566613645 +0200
++++ ghc-mod.cabal 2015-04-18 13:14:53.420241209 +0200
+@@ -26,8 +26,6 @@
+ Category: GHC, Development
+ Cabal-Version: >= 1.14
+ Build-Type: Custom
+-Data-Files: elisp/Makefile
+- elisp/*.el
+ Data-Files: LICENSE COPYING.BSD3 COPYING.AGPL3
+ Extra-Source-Files: ChangeLog
+ SetupCompat.hs
diff --git a/app-emacs/ghc-mod/files/ghc-mod-5.6.0.0-gentoo.patch b/app-emacs/ghc-mod/files/ghc-mod-5.6.0.0-gentoo.patch
new file mode 100644
index 000000000000..40302168692a
--- /dev/null
+++ b/app-emacs/ghc-mod/files/ghc-mod-5.6.0.0-gentoo.patch
@@ -0,0 +1,5 @@
+--- a/ghc-mod.cabal.org 2016-07-29 09:18:31.000000000 -0400
++++ b/ghc-mod.cabal 2016-08-08 23:16:00.171679823 -0400
+@@ -29,2 +29,0 @@
+-Data-Files: elisp/Makefile
+- elisp/*.el
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..f46308b3aa0e
--- /dev/null
+++ b/app-emacs/ghc-mod/ghc-mod-5.4.0.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}
diff --git a/app-emacs/ghc-mod/ghc-mod-5.5.0.0-r1.ebuild b/app-emacs/ghc-mod/ghc-mod-5.5.0.0-r1.ebuild
new file mode 100644
index 000000000000..1a0636bb8be0
--- /dev/null
+++ b/app-emacs/ghc-mod/ghc-mod-5.5.0.0-r1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/binary-0.5.1.0:=[profile?] <dev-haskell/binary-0.8:=[profile?]
+ >=dev-haskell/cabal-helper-0.6.3.0:=[profile?] <dev-haskell/cabal-helper-0.7:=[profile?]
+ dev-haskell/convertible:=[profile?]
+ >=dev-haskell/djinn-ghc-0.0.2.2:=[profile?] <dev-haskell/djinn-ghc-0.1:=[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-0.2:=[profile?]
+ <dev-haskell/ghc-syb-utils-0.3:=[profile?]
+ <dev-haskell/haskell-src-exts-1.18:=[profile?]
+ >=dev-haskell/hlint-1.8.61:=[profile?] <dev-haskell/hlint-1.10:=[profile?]
+ >=dev-haskell/monad-control-1.0:=[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.13.0:=[profile?]
+ >=dev-haskell/pipes-4.1:=[profile?] <dev-haskell/pipes-4.2:=[profile?]
+ >=dev-haskell/safe-0.3.9:=[profile?] <dev-haskell/safe-0.4:=[profile?]
+ <dev-haskell/split-0.3:=[profile?]
+ <dev-haskell/syb-0.7:=[profile?]
+ <dev-haskell/temporary-1.3:=[profile?]
+ <dev-haskell/text-1.3:=[profile?]
+ <dev-haskell/transformers-0.5:=[profile?]
+ <dev-haskell/transformers-base-0.5:=[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.5.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
+}
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 000000000000..5820ecede9f8
--- /dev/null
+++ b/app-emacs/ghc-mod/ghc-mod-5.7.0.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}
diff --git a/app-emacs/ghc-mod/metadata.xml b/app-emacs/ghc-mod/metadata.xml
new file mode 100644
index 000000000000..b58399b6f39c
--- /dev/null
+++ b/app-emacs/ghc-mod/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+</maintainer>
+<longdescription>
+ This packages includes Elisp files and a Haskell command, "ghc-mod".
+ "ghc*.el" enable completion of Haskell symbols on Emacs. Flymake is
+ also integrated. "ghc-mod" is a backend of "ghc*.el". It lists up
+ all installed modules or extracts names of functions, classes, and
+ data declarations.
+</longdescription>
+</pkgmetadata>