1 |
commit: bd0432ba613f02b3d6bcef7f7be42d4ff7dd4d32 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 26 16:23:31 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 26 16:24:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd0432ba |
7 |
|
8 |
app-emacs/pdf-tools: new package; add version 1.0.0_pre20220619 |
9 |
|
10 |
2022.06.19 snapshot |
11 |
|
12 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
13 |
|
14 |
app-emacs/pdf-tools/Manifest | 1 + |
15 |
app-emacs/pdf-tools/files/50pdf-tools-gentoo.el | 2 + |
16 |
app-emacs/pdf-tools/metadata.xml | 25 ++++++++ |
17 |
.../pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild | 66 ++++++++++++++++++++++ |
18 |
4 files changed, 94 insertions(+) |
19 |
|
20 |
diff --git a/app-emacs/pdf-tools/Manifest b/app-emacs/pdf-tools/Manifest |
21 |
new file mode 100644 |
22 |
index 000000000000..9209c7b44bff |
23 |
--- /dev/null |
24 |
+++ b/app-emacs/pdf-tools/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST pdf-tools-1.0.0_pre20220619.tar.gz 459416 BLAKE2B 79a7c7a59faf9c11047bfb6218a8055cb9c757b928e52ff59ffb910e5aedb95ca7efe1dda1ae821d98a687fc6e700d8194311fc850f534f425534a1572bd34b5 SHA512 74ca8c05ad238c07ca1b6d6a594889d048220bb984b78b83e7af4c59eedfa7a35a03e153aa4d1296781f910eb0b3a68a5148876a30ad0f6e9fdecf831ff58f8e |
27 |
|
28 |
diff --git a/app-emacs/pdf-tools/files/50pdf-tools-gentoo.el b/app-emacs/pdf-tools/files/50pdf-tools-gentoo.el |
29 |
new file mode 100644 |
30 |
index 000000000000..69d6945dcd0a |
31 |
--- /dev/null |
32 |
+++ b/app-emacs/pdf-tools/files/50pdf-tools-gentoo.el |
33 |
@@ -0,0 +1,2 @@ |
34 |
+(add-to-list 'load-path "@SITELISP@") |
35 |
+(load "pdf-tools-autoloads" nil t) |
36 |
|
37 |
diff --git a/app-emacs/pdf-tools/metadata.xml b/app-emacs/pdf-tools/metadata.xml |
38 |
new file mode 100644 |
39 |
index 000000000000..daf7018f9de6 |
40 |
--- /dev/null |
41 |
+++ b/app-emacs/pdf-tools/metadata.xml |
42 |
@@ -0,0 +1,25 @@ |
43 |
+<?xml version="1.0" encoding="UTF-8"?> |
44 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
45 |
+ |
46 |
+<pkgmetadata> |
47 |
+ <maintainer type="project"> |
48 |
+ <email>gnu-emacs@g.o</email> |
49 |
+ <name>Gentoo GNU Emacs project</name> |
50 |
+ </maintainer> |
51 |
+ <longdescription> |
52 |
+ PDF Tools is, among other things, a replacement of DocView for PDF files. |
53 |
+ The key difference is that pages are not pre-rendered by e.g. ghostscript |
54 |
+ and stored in the file-system, but rather created on-demand and stored in |
55 |
+ memory. This rendering is performed by a special library named, for |
56 |
+ whatever reason, poppler, running inside a server program. This program is |
57 |
+ called epdfinfo and its job is to successively read requests from Emacs and |
58 |
+ produce the proper results, i.e. the PNG image of a PDF page. Actually, |
59 |
+ displaying PDF files is just one part of pdf-tools. Since poppler can |
60 |
+ provide us with all kinds of information about a document and is also able |
61 |
+ to modify it, there is a lot more we can do with it. |
62 |
+ </longdescription> |
63 |
+ <upstream> |
64 |
+ <bugs-to>https://github.com/vedang/pdf-tools/issues/</bugs-to> |
65 |
+ <remote-id type="github">vedang/pdf-tools</remote-id> |
66 |
+ </upstream> |
67 |
+</pkgmetadata> |
68 |
|
69 |
diff --git a/app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild b/app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild |
70 |
new file mode 100644 |
71 |
index 000000000000..b4dfd41e3c9f |
72 |
--- /dev/null |
73 |
+++ b/app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild |
74 |
@@ -0,0 +1,66 @@ |
75 |
+# Copyright 1999-2022 Gentoo Authors |
76 |
+# Distributed under the terms of the GNU General Public License v2 |
77 |
+ |
78 |
+EAPI=8 |
79 |
+ |
80 |
+H=fe42da60ad68e806af1677210249caccd7b99451 |
81 |
+NEED_EMACS=25.1 # Needs Emacs >=25.1 because of the "let-alist" function. |
82 |
+ |
83 |
+inherit autotools elisp |
84 |
+ |
85 |
+DESCRIPTION="Emacs Lisp support library for PDF documents" |
86 |
+HOMEPAGE="https://github.com/vedang/pdf-tools/" |
87 |
+SRC_URI="https://github.com/vedang/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" |
88 |
+S="${WORKDIR}"/${PN}-${H} |
89 |
+ |
90 |
+LICENSE="GPL-3+" |
91 |
+KEYWORDS="~amd64 ~x86" |
92 |
+SLOT="0" |
93 |
+ |
94 |
+# Cask is a hard dependency for tests; it is ran by helper functions too. |
95 |
+RESTRICT="test" |
96 |
+ |
97 |
+BDEPEND="app-emacs/tablist" |
98 |
+DEPEND=" |
99 |
+ app-text/poppler:=[cairo,png] |
100 |
+ dev-libs/glib:2= |
101 |
+ media-libs/freetype:2= |
102 |
+ media-libs/harfbuzz:= |
103 |
+ media-libs/libpng:= |
104 |
+ x11-libs/cairo:= |
105 |
+" |
106 |
+RDEPEND=" |
107 |
+ ${DEPEND} |
108 |
+ ${BDEPEND} |
109 |
+" |
110 |
+ |
111 |
+DOCS=( NEWS README.org ) |
112 |
+SITEFILE="50${PN}-gentoo.el" |
113 |
+ |
114 |
+src_prepare() { |
115 |
+ elisp_src_prepare |
116 |
+ |
117 |
+ cd server || die |
118 |
+ eautoreconf |
119 |
+} |
120 |
+ |
121 |
+src_configure() { |
122 |
+ cd server || die |
123 |
+ econf |
124 |
+} |
125 |
+ |
126 |
+src_compile() { |
127 |
+ BYTECOMPFLAGS="-L lisp" elisp-compile lisp/*.el |
128 |
+ elisp-make-autoload-file lisp/${PN}-autoloads.el lisp |
129 |
+ |
130 |
+ emake -C server |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ elisp-install ${PN} lisp/*.el* |
135 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
136 |
+ |
137 |
+ emake -C server DESTDIR="${D}" install |
138 |
+ |
139 |
+ einstalldocs |
140 |
+} |