summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-06-02 07:36:30 +0200
committerHans de Graaff <graaff@gentoo.org>2018-06-02 08:01:15 +0200
commitb8fb403015bdbefa4cfbdf36ec69fecc3481b64c (patch)
tree4bfb934e60ed5f63d1658d405eda83818b2b2f3e /app-emacs/haskell-mode/haskell-mode-16.1.ebuild
parentdev-ruby/uglifier: cleanup (diff)
downloadgentoo-b8fb403015bdbefa4cfbdf36ec69fecc3481b64c.tar.gz
gentoo-b8fb403015bdbefa4cfbdf36ec69fecc3481b64c.tar.bz2
gentoo-b8fb403015bdbefa4cfbdf36ec69fecc3481b64c.zip
app-emacs/haskell-mode: add 16.1
Version bump with additional changes from haskell-mode 16.1-r1 in the haskell overlay. Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-emacs/haskell-mode/haskell-mode-16.1.ebuild')
-rw-r--r--app-emacs/haskell-mode/haskell-mode-16.1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/app-emacs/haskell-mode/haskell-mode-16.1.ebuild b/app-emacs/haskell-mode/haskell-mode-16.1.ebuild
new file mode 100644
index 000000000000..a8d61e5c904d
--- /dev/null
+++ b/app-emacs/haskell-mode/haskell-mode-16.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit elisp
+
+DESCRIPTION="Mode for editing (and running) Haskell programs in Emacs"
+HOMEPAGE="https://haskell.github.io/haskell-mode/
+ https://www.haskell.org/haskellwiki/Emacs#Haskell-mode"
+SRC_URI="https://github.com/haskell/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+ FDL-1.2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="sys-apps/texinfo"
+
+SITEFILE="50${PN}-gentoo.el"
+ELISP_TEXINFO="doc/haskell-mode.texi"
+DOCS="NEWS README.md"
+
+src_prepare() {
+ # We install the logo in SITEETC, not in SITELISP
+ # https://github.com/haskell/haskell-mode/issues/102
+ sed -i -e "/defconst haskell-process-logo/{n;" \
+ -e "s:(.*\"\\(.*\\)\".*):\"${SITEETC}/${PN}/\\1\":}" \
+ haskell-process.el || die
+
+ eapply_user
+}
+
+src_compile() {
+ elisp_src_compile
+ elisp-make-autoload-file haskell-site-file.el
+}
+
+src_test() {
+ emake check-ert
+}
+
+src_install() {
+ elisp_src_install
+ insinto "${SITEETC}/${PN}"
+ doins logo.svg
+}