Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/polymode/, app-emacs/polymode/files/
Date: Wed, 04 May 2022 12:46:51
Message-Id: 1651668343.b7c36d41e93d2dd8fcee5730fe25717544b0d39c.xgqt@gentoo
1 commit: b7c36d41e93d2dd8fcee5730fe25717544b0d39c
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 10:15:57 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 12:45:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7c36d41
7
8 app-emacs/polymode: new package; add version 0.2.2_p20220322
9
10 2022.03.22 snapshot
11
12 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
13
14 app-emacs/polymode/Manifest | 1 +
15 app-emacs/polymode/files/50polymode-gentoo.el | 1 +
16 app-emacs/polymode/metadata.xml | 18 ++++++++++++
17 app-emacs/polymode/polymode-0.2.2_p20220322.ebuild | 33 ++++++++++++++++++++++
18 4 files changed, 53 insertions(+)
19
20 diff --git a/app-emacs/polymode/Manifest b/app-emacs/polymode/Manifest
21 new file mode 100644
22 index 000000000000..913ddcd3f944
23 --- /dev/null
24 +++ b/app-emacs/polymode/Manifest
25 @@ -0,0 +1 @@
26 +DIST polymode-0.2.2_p20220322.tar.gz 417218 BLAKE2B 7f2846a6fed751f7fb0e7d6b50ca2bb40232007e7f8cef801b22b252ca39a65658d0059ddb8ba384ed2f6b1bdbddaf39fcaa09d91787b8523f9872162156f25a SHA512 2e1d49cd3086cb7a8551a4c48cd6655e1c41155f1e518b1cfae5493ac382d566bc7a8969a167063c0384978b70d79f2d2557fc9a6d12e54a985fdbf24315bf0b
27
28 diff --git a/app-emacs/polymode/files/50polymode-gentoo.el b/app-emacs/polymode/files/50polymode-gentoo.el
29 new file mode 100644
30 index 000000000000..431f7e90ae73
31 --- /dev/null
32 +++ b/app-emacs/polymode/files/50polymode-gentoo.el
33 @@ -0,0 +1 @@
34 +(add-to-list 'load-path "@SITELISP@")
35
36 diff --git a/app-emacs/polymode/metadata.xml b/app-emacs/polymode/metadata.xml
37 new file mode 100644
38 index 000000000000..f362d712f750
39 --- /dev/null
40 +++ b/app-emacs/polymode/metadata.xml
41 @@ -0,0 +1,18 @@
42 +<?xml version="1.0" encoding="UTF-8"?>
43 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
44 +
45 +<pkgmetadata>
46 + <maintainer type="project">
47 + <email>gnu-emacs@g.o</email>
48 + <name>Gentoo GNU Emacs project</name>
49 + </maintainer>
50 + <upstream>
51 + <bugs-to>https://github.com/polymode/polymode/issues/</bugs-to>
52 + <remote-id type="github">polymode/polymode</remote-id>
53 + </upstream>
54 + <longdescription>
55 + Polymode is a framework for multiple major modes (MMM) inside a single
56 + Emacs buffer. It is fast and has a simple but flexible object oriented
57 + design. Creating new polymodes normally takes a few lines of code.
58 + </longdescription>
59 +</pkgmetadata>
60
61 diff --git a/app-emacs/polymode/polymode-0.2.2_p20220322.ebuild b/app-emacs/polymode/polymode-0.2.2_p20220322.ebuild
62 new file mode 100644
63 index 000000000000..c41d8cbfa476
64 --- /dev/null
65 +++ b/app-emacs/polymode/polymode-0.2.2_p20220322.ebuild
66 @@ -0,0 +1,33 @@
67 +# Copyright 1999-2022 Gentoo Authors
68 +# Distributed under the terms of the GNU General Public License v2
69 +
70 +EAPI=8
71 +
72 +H=2094c92403fe395dfb2b8b2521da1012a966e9ab
73 +NEED_EMACS=25
74 +
75 +inherit elisp
76 +
77 +DESCRIPTION="Framework for Multiple Major Modes in Emacs"
78 +HOMEPAGE="https://github.com/polymode/polymode/"
79 +SRC_URI="https://github.com/polymode/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
80 +S="${WORKDIR}"/${PN}-${H}
81 +
82 +LICENSE="GPL-3+"
83 +KEYWORDS="~amd64 ~x86"
84 +SLOT="0"
85 +
86 +DOCS=( readme.md )
87 +# The "compat-tests" downloads resources from network and "define-tests" fails
88 +ELISP_REMOVE="tests/compat-tests.el tests/define-tests.el"
89 +SITEFILE="50${PN}-gentoo.el"
90 +
91 +src_test() {
92 + ${EMACS} ${EMACSFLAGS} -L . --load targets/test.el
93 +}
94 +
95 +src_install() {
96 + elisp_src_install
97 +
98 + dodoc -r samples
99 +}