1 |
commit: 6db93e1d0aa08604dbf542595494f1bdf511c34b |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 13:01:59 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 13:02:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6db93e1d |
7 |
|
8 |
app-emacs/webpaste: new package; add version 3.2.2 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
app-emacs/webpaste/Manifest | 1 + |
13 |
app-emacs/webpaste/files/50webpaste-gentoo.el | 7 ++++++ |
14 |
app-emacs/webpaste/metadata.xml | 19 +++++++++++++++ |
15 |
app-emacs/webpaste/webpaste-3.2.2.ebuild | 34 +++++++++++++++++++++++++++ |
16 |
4 files changed, 61 insertions(+) |
17 |
|
18 |
diff --git a/app-emacs/webpaste/Manifest b/app-emacs/webpaste/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000000..daaf06d05150 |
21 |
--- /dev/null |
22 |
+++ b/app-emacs/webpaste/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST webpaste-3.2.2.tar.gz 27171 BLAKE2B cf766d1eeca07747043a3157da8cb954c63c142531b5e156d5255fb0ec556b59780c463bd6f77763aa42625eb15f4aee75375a0e67c0883000e14eeb0023b6b8 SHA512 700ca6ed2c0171e6c5b4047e2d5db3af04d7196daae93d5705709f0ae92eec268da5fd4818b13c35e73ee839e739d95010efc3c20c4e32e87bccef8becdff810 |
25 |
|
26 |
diff --git a/app-emacs/webpaste/files/50webpaste-gentoo.el b/app-emacs/webpaste/files/50webpaste-gentoo.el |
27 |
new file mode 100644 |
28 |
index 000000000000..8f041e6e0d86 |
29 |
--- /dev/null |
30 |
+++ b/app-emacs/webpaste/files/50webpaste-gentoo.el |
31 |
@@ -0,0 +1,7 @@ |
32 |
+(add-to-list 'load-path "@SITELISP@") |
33 |
+(autoload 'webpaste-paste-region "webpaste" |
34 |
+ "Paste selected region to some paste service." t) |
35 |
+(autoload 'webpaste-paste-buffer "webpaste" |
36 |
+ "Paste current buffer to some paste service." t) |
37 |
+(autoload 'webpaste-paste-buffer-or-region "webpaste" |
38 |
+ "Paste current buffer or selected region to some paste service." t) |
39 |
|
40 |
diff --git a/app-emacs/webpaste/metadata.xml b/app-emacs/webpaste/metadata.xml |
41 |
new file mode 100644 |
42 |
index 000000000000..fd5814f2d240 |
43 |
--- /dev/null |
44 |
+++ b/app-emacs/webpaste/metadata.xml |
45 |
@@ -0,0 +1,19 @@ |
46 |
+<?xml version="1.0" encoding="UTF-8"?> |
47 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
48 |
+ |
49 |
+<pkgmetadata> |
50 |
+ <maintainer type="project"> |
51 |
+ <email>gnu-emacs@g.o</email> |
52 |
+ <name>Gentoo GNU Emacs project</name> |
53 |
+ </maintainer> |
54 |
+ <upstream> |
55 |
+ <changelog>https://github.com/etu/webpaste.el/releases/</changelog> |
56 |
+ <bugs-to>https://github.com/etu/webpaste.el/issues/</bugs-to> |
57 |
+ <remote-id type="github">etu/webpaste.el</remote-id> |
58 |
+ </upstream> |
59 |
+ <longdescription> |
60 |
+ Webpaste.el allows to paste whole buffers or parts of buffers to |
61 |
+ pastebin-like services. It supports more than one service and will failover |
62 |
+ if one service fails. |
63 |
+ </longdescription> |
64 |
+</pkgmetadata> |
65 |
|
66 |
diff --git a/app-emacs/webpaste/webpaste-3.2.2.ebuild b/app-emacs/webpaste/webpaste-3.2.2.ebuild |
67 |
new file mode 100644 |
68 |
index 000000000000..1d7054734a31 |
69 |
--- /dev/null |
70 |
+++ b/app-emacs/webpaste/webpaste-3.2.2.ebuild |
71 |
@@ -0,0 +1,34 @@ |
72 |
+# Copyright 1999-2022 Gentoo Authors |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=8 |
76 |
+ |
77 |
+NEED_EMACS=24.4 |
78 |
+ |
79 |
+inherit elisp |
80 |
+ |
81 |
+DESCRIPTION="Paste parts of buffers to several pastebin-like services from Emacs" |
82 |
+HOMEPAGE="https://github.com/etu/webpaste.el/" |
83 |
+SRC_URI="https://github.com/etu/${PN}.el/archive/${PV}.tar.gz -> ${P}.tar.gz" |
84 |
+S="${WORKDIR}"/${PN}.el-${PV} |
85 |
+ |
86 |
+LICENSE="GPL-3+" |
87 |
+KEYWORDS="~amd64 ~x86" |
88 |
+SLOT="0" |
89 |
+IUSE="test" |
90 |
+RESTRICT="!test? ( test )" |
91 |
+ |
92 |
+RDEPEND="app-emacs/request" |
93 |
+BDEPEND=" |
94 |
+ ${RDEPEND} |
95 |
+ test? ( app-emacs/buttercup ) |
96 |
+" |
97 |
+ |
98 |
+DOCS=( README.org ) |
99 |
+# Remove failing tests |
100 |
+ELISP_REMOVE="tests/unit/test-webpaste-provider-creation.el" |
101 |
+SITEFILE="50${PN}-gentoo.el" |
102 |
+ |
103 |
+src_test() { |
104 |
+ buttercup -L . -L tests tests/unit || die |
105 |
+} |