diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-05-31 02:22:18 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-05-31 02:26:18 +0200 |
commit | fe772e7c46780186384c468b6a4a0522e5075375 (patch) | |
tree | 40bf6443430a770acd0ef48779b0141a59d1f5b9 /app-emacs/cask-mode | |
parent | app-emacs/assess: new package; add version 0.6 (diff) | |
download | gentoo-fe772e7c46780186384c468b6a4a0522e5075375.tar.gz gentoo-fe772e7c46780186384c468b6a4a0522e5075375.tar.bz2 gentoo-fe772e7c46780186384c468b6a4a0522e5075375.zip |
app-emacs/cask-mode: new package; add version 0.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/cask-mode')
-rw-r--r-- | app-emacs/cask-mode/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/cask-mode/cask-mode-0.1.ebuild | 40 | ||||
-rw-r--r-- | app-emacs/cask-mode/files/50cask-mode-gentoo.el | 4 | ||||
-rw-r--r-- | app-emacs/cask-mode/metadata.xml | 17 |
4 files changed, 62 insertions, 0 deletions
diff --git a/app-emacs/cask-mode/Manifest b/app-emacs/cask-mode/Manifest new file mode 100644 index 000000000000..6dc5024fd227 --- /dev/null +++ b/app-emacs/cask-mode/Manifest @@ -0,0 +1 @@ +DIST cask-mode-0.1.tar.gz 42693 BLAKE2B 07c3cd998aee36d275c0d3d5dfdb190a1ad59aaa72695272e7dc33e410413de6723003ae28f30e91f96f0ea95142e97cf7fda28a1986fbd509bd281de91693c1 SHA512 4b9861e9fb5a69db476a32b3cc2cfec8e9418d618cb2e348f1476d6aefa22615c539dd3666914be5c42aed1370d5835c7b78775d3bb4578df845b16dbda91727 diff --git a/app-emacs/cask-mode/cask-mode-0.1.ebuild b/app-emacs/cask-mode/cask-mode-0.1.ebuild new file mode 100644 index 000000000000..e2eb648d65ea --- /dev/null +++ b/app-emacs/cask-mode/cask-mode-0.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=24.3 + +inherit elisp + +DESCRIPTION="Major mode for editing Cask files for Emacs" +HOMEPAGE="https://github.com/Wilfred/cask-mode/" +SRC_URI="https://github.com/Wilfred/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + app-emacs/assess + app-emacs/ert-runner + ) +" + +DOCS=( README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + # Silence a broken test + sed "s|ert-deftest cask-mode-highlight-comment|lambda|" \ + -i test/${PN}-test.el || die +} + +src_test() { + ert-runner -L . -L test --reporter ert+duration --script test || die +} diff --git a/app-emacs/cask-mode/files/50cask-mode-gentoo.el b/app-emacs/cask-mode/files/50cask-mode-gentoo.el new file mode 100644 index 000000000000..481b1b9dc272 --- /dev/null +++ b/app-emacs/cask-mode/files/50cask-mode-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'cask-mode "cask-mode" + "Major mode for editing Cask files." t) +(add-to-list 'auto-mode-alist '("/Cask\\'" . cask-mode)) diff --git a/app-emacs/cask-mode/metadata.xml b/app-emacs/cask-mode/metadata.xml new file mode 100644 index 000000000000..9ffdb8cff63f --- /dev/null +++ b/app-emacs/cask-mode/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <longdescription> + cask-mode is a major mode for editing Cask files. It provides syntax + highlighting, comment toggling and indentation. + </longdescription> + <upstream> + <bugs-to>https://github.com/Wilfred/cask-mode/issues/</bugs-to> + <remote-id type="github">Wilfred/cask-mode</remote-id> + </upstream> +</pkgmetadata> |