1 |
commit: 4874bb5b0e5b77fc8fc4f4aa51a5bd7365c7105f |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 3 01:46:40 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 3 01:46:40 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4874bb5b |
7 |
|
8 |
dev-scheme/skribilo: new package; add 0.9.5 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
dev-scheme/skribilo/Manifest | 1 + |
14 |
dev-scheme/skribilo/files/50skribilo-gentoo.el | 3 + |
15 |
dev-scheme/skribilo/metadata.xml | 21 +++++++ |
16 |
dev-scheme/skribilo/skribilo-0.9.5.ebuild | 78 ++++++++++++++++++++++++++ |
17 |
4 files changed, 103 insertions(+) |
18 |
|
19 |
diff --git a/dev-scheme/skribilo/Manifest b/dev-scheme/skribilo/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..05c302b07b86 |
22 |
--- /dev/null |
23 |
+++ b/dev-scheme/skribilo/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST skribilo-0.9.5.tar.gz 1520763 BLAKE2B c624174a29cb7eb7236b8de506ade00c58fdd895807bd3e052872b7d950be9106daef6015c34ff8b5e7888b43383cbfa5c29c62835d02121cac19062985c6032 SHA512 22dff4523039792bd3662f9f1302569bfb83d92b7106ae22b8926e264b00932ea50ab753bb83aed499d0aa651d0fe99fdfd28b83956ec3ad84b81078391fe014 |
26 |
|
27 |
diff --git a/dev-scheme/skribilo/files/50skribilo-gentoo.el b/dev-scheme/skribilo/files/50skribilo-gentoo.el |
28 |
new file mode 100644 |
29 |
index 000000000000..b6dc5061ebfd |
30 |
--- /dev/null |
31 |
+++ b/dev-scheme/skribilo/files/50skribilo-gentoo.el |
32 |
@@ -0,0 +1,3 @@ |
33 |
+(add-to-list 'load-path "@SITELISP@") |
34 |
+(autoload 'skribe-mode "skribe" |
35 |
+ "Minor mode for editing Skribe sources." t) |
36 |
|
37 |
diff --git a/dev-scheme/skribilo/metadata.xml b/dev-scheme/skribilo/metadata.xml |
38 |
new file mode 100644 |
39 |
index 000000000000..24602493b44a |
40 |
--- /dev/null |
41 |
+++ b/dev-scheme/skribilo/metadata.xml |
42 |
@@ -0,0 +1,21 @@ |
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>scheme@g.o</email> |
49 |
+ <name>Gentoo Scheme Project</name> |
50 |
+ </maintainer> |
51 |
+ <longdescription> |
52 |
+ Skribilo is a free document production tool that takes a structured |
53 |
+ document representation as its input and renders that document in a variety |
54 |
+ of output formats: HTML and Info for on-line browsing, and Lout and LaTeX |
55 |
+ for high-quality hard copies. |
56 |
+ The input document can use Skribilo's markup language to provide |
57 |
+ information about the document's structure, which is similar to HTML or |
58 |
+ LaTeX and does not require expertise. Alternatively, it can use a simpler, |
59 |
+ "markup-less" format that borrows from Emacs' outline mode and from other |
60 |
+ conventions used in emails, Usenet and text. |
61 |
+ Lastly, Skribilo provides Guile Scheme APIs. |
62 |
+ </longdescription> |
63 |
+</pkgmetadata> |
64 |
|
65 |
diff --git a/dev-scheme/skribilo/skribilo-0.9.5.ebuild b/dev-scheme/skribilo/skribilo-0.9.5.ebuild |
66 |
new file mode 100644 |
67 |
index 000000000000..fa72296a9295 |
68 |
--- /dev/null |
69 |
+++ b/dev-scheme/skribilo/skribilo-0.9.5.ebuild |
70 |
@@ -0,0 +1,78 @@ |
71 |
+# Copyright 1999-2022 Gentoo Authors |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+ |
74 |
+EAPI=8 |
75 |
+ |
76 |
+inherit elisp-common |
77 |
+ |
78 |
+DESCRIPTION="Document production tool written in Guile Scheme" |
79 |
+HOMEPAGE="https://www.nongnu.org/skribilo/" |
80 |
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" |
81 |
+ |
82 |
+LICENSE="GPL-3" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~amd64 ~x86" |
85 |
+IUSE="emacs" |
86 |
+RESTRICT="strip test" # tests fail, seem broken |
87 |
+ |
88 |
+RDEPEND=" |
89 |
+ app-text/ghostscript-gpl |
90 |
+ media-gfx/imagemagick |
91 |
+ |
92 |
+ >=dev-scheme/guile-2.0.0:= |
93 |
+ dev-scheme/guile-lib |
94 |
+ dev-scheme/guile-reader |
95 |
+" |
96 |
+DEPEND="${RDEPEND}" |
97 |
+BDEPEND="emacs? ( >=app-editors/emacs-23.1:* )" |
98 |
+ |
99 |
+# guile generates ELF files without use of C or machine code |
100 |
+# It's a portage's false positive. bug #677600 |
101 |
+QA_PREBUILT='*[.]go' |
102 |
+ |
103 |
+SITEFILE="50${PN}-gentoo.el" |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ default |
107 |
+ |
108 |
+ # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112 |
109 |
+ find "${S}" -name "*.scm" -exec touch {} + || die |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ if ! use emacs ; then |
114 |
+ export EMACS="no" |
115 |
+ export EMACSLOADPATH="/dev/null" |
116 |
+ fi |
117 |
+ |
118 |
+ econf |
119 |
+} |
120 |
+ |
121 |
+src_compile() { |
122 |
+ default |
123 |
+ |
124 |
+ use emacs && elisp-compile ./emacs/*.el |
125 |
+} |
126 |
+ |
127 |
+src_install() { |
128 |
+ default |
129 |
+ |
130 |
+ if use emacs ; then |
131 |
+ elisp-install ${PN} ./emacs/*.el{,c} |
132 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
133 |
+ else |
134 |
+ local emacsd="${D}"/usr/share/emacs |
135 |
+ if [[ -d "${emacsd}" ]] ; then |
136 |
+ echo "Building without Emacs support but ${emacsd} found! Removing." |
137 |
+ rm -r "${emacsd}" || die |
138 |
+ fi |
139 |
+ fi |
140 |
+} |
141 |
+ |
142 |
+pkg_postinst() { |
143 |
+ use emacs && elisp-site-regen |
144 |
+} |
145 |
+ |
146 |
+pkg_postrm() { |
147 |
+ use emacs && elisp-site-regen |
148 |
+} |