From b7c36d41e93d2dd8fcee5730fe25717544b0d39c Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Wed, 4 May 2022 12:15:57 +0200 Subject: app-emacs/polymode: new package; add version 0.2.2_p20220322 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2022.03.22 snapshot Signed-off-by: Maciej Barć --- app-emacs/polymode/Manifest | 1 + app-emacs/polymode/files/50polymode-gentoo.el | 1 + app-emacs/polymode/metadata.xml | 18 ++++++++++++ app-emacs/polymode/polymode-0.2.2_p20220322.ebuild | 33 ++++++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 app-emacs/polymode/Manifest create mode 100644 app-emacs/polymode/files/50polymode-gentoo.el create mode 100644 app-emacs/polymode/metadata.xml create mode 100644 app-emacs/polymode/polymode-0.2.2_p20220322.ebuild diff --git a/app-emacs/polymode/Manifest b/app-emacs/polymode/Manifest new file mode 100644 index 000000000000..913ddcd3f944 --- /dev/null +++ b/app-emacs/polymode/Manifest @@ -0,0 +1 @@ +DIST polymode-0.2.2_p20220322.tar.gz 417218 BLAKE2B 7f2846a6fed751f7fb0e7d6b50ca2bb40232007e7f8cef801b22b252ca39a65658d0059ddb8ba384ed2f6b1bdbddaf39fcaa09d91787b8523f9872162156f25a SHA512 2e1d49cd3086cb7a8551a4c48cd6655e1c41155f1e518b1cfae5493ac382d566bc7a8969a167063c0384978b70d79f2d2557fc9a6d12e54a985fdbf24315bf0b diff --git a/app-emacs/polymode/files/50polymode-gentoo.el b/app-emacs/polymode/files/50polymode-gentoo.el new file mode 100644 index 000000000000..431f7e90ae73 --- /dev/null +++ b/app-emacs/polymode/files/50polymode-gentoo.el @@ -0,0 +1 @@ +(add-to-list 'load-path "@SITELISP@") diff --git a/app-emacs/polymode/metadata.xml b/app-emacs/polymode/metadata.xml new file mode 100644 index 000000000000..f362d712f750 --- /dev/null +++ b/app-emacs/polymode/metadata.xml @@ -0,0 +1,18 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + https://github.com/polymode/polymode/issues/ + polymode/polymode + + + Polymode is a framework for multiple major modes (MMM) inside a single + Emacs buffer. It is fast and has a simple but flexible object oriented + design. Creating new polymodes normally takes a few lines of code. + + diff --git a/app-emacs/polymode/polymode-0.2.2_p20220322.ebuild b/app-emacs/polymode/polymode-0.2.2_p20220322.ebuild new file mode 100644 index 000000000000..c41d8cbfa476 --- /dev/null +++ b/app-emacs/polymode/polymode-0.2.2_p20220322.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=2094c92403fe395dfb2b8b2521da1012a966e9ab +NEED_EMACS=25 + +inherit elisp + +DESCRIPTION="Framework for Multiple Major Modes in Emacs" +HOMEPAGE="https://github.com/polymode/polymode/" +SRC_URI="https://github.com/polymode/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} + +LICENSE="GPL-3+" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +DOCS=( readme.md ) +# The "compat-tests" downloads resources from network and "define-tests" fails +ELISP_REMOVE="tests/compat-tests.el tests/define-tests.el" +SITEFILE="50${PN}-gentoo.el" + +src_test() { + ${EMACS} ${EMACSFLAGS} -L . --load targets/test.el +} + +src_install() { + elisp_src_install + + dodoc -r samples +} -- cgit v1.2.3-65-gdbad