1 |
commit: 1347cc863ef59c588aabbe27d7cb9067801cb004 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 8 14:17:39 2021 +0000 |
4 |
Commit: 罗百科 <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 8 19:01:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1347cc86 |
7 |
|
8 |
dev-lang/lfe: Bump |
9 |
|
10 |
Since the latest release doesn't build use snapshot. |
11 |
Thanks to Maciej Barc for figuring this out. |
12 |
|
13 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
14 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
15 |
|
16 |
dev-lang/lfe/Manifest | 1 + |
17 |
dev-lang/lfe/files/70lfe-gentoo.el | 6 +++ |
18 |
dev-lang/lfe/lfe-1.3.0_p20210112.ebuild | 75 +++++++++++++++++++++++++++++++++ |
19 |
dev-lang/lfe/metadata.xml | 6 +++ |
20 |
4 files changed, 88 insertions(+) |
21 |
|
22 |
diff --git a/dev-lang/lfe/Manifest b/dev-lang/lfe/Manifest |
23 |
index 157950b638b..3af9f48f189 100644 |
24 |
--- a/dev-lang/lfe/Manifest |
25 |
+++ b/dev-lang/lfe/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST lfe-1.1.1.zip 386864 BLAKE2B d966e483c0490d7c6e48ae53819a0f1f30ea0edd7dcc6c7c3fe82c79ed0e4013d66dde4e74d4369e72fc46076723612f00ccb8d33d912d46dfdbf8e38940f72b SHA512 8660716a73126615bd0cde161a780cc49ba57718afd820dbe891da5e1d9ec2f52cc1864159dcedba1c674ccfef42b9662ec8e0bbfe82c10798527ae0979b8f8e |
28 |
+DIST lfe-1.3.0_p20210112.zip 447903 BLAKE2B bc63fd7f988abba77e7f4baef906c2fd4370e1aeb2bc04b019d429586cbcb91792ac0f65a3d29a904997d2488a2540411c38e904c0208e2183a8f0f8362f7c36 SHA512 ee178436ca8aea1f1001e5f679a366414229f584cc0e0a38d9749b7cb49d7378a3f8681dcb8c1d5c61e4f498aa31c575a791fe21337b3079a11b623ada363de9 |
29 |
|
30 |
diff --git a/dev-lang/lfe/files/70lfe-gentoo.el b/dev-lang/lfe/files/70lfe-gentoo.el |
31 |
new file mode 100644 |
32 |
index 00000000000..2be4c13d18a |
33 |
--- /dev/null |
34 |
+++ b/dev-lang/lfe/files/70lfe-gentoo.el |
35 |
@@ -0,0 +1,6 @@ |
36 |
+;;; lfe site-lisp configuration |
37 |
+ |
38 |
+(add-to-list 'load-path "@SITELISP@") |
39 |
+ |
40 |
+(autoload 'lfe-mode "lfe-mode" nil t) |
41 |
+(autoload 'inferior-lfe-mode "inferior-lfe-mode" nil t) |
42 |
|
43 |
diff --git a/dev-lang/lfe/lfe-1.3.0_p20210112.ebuild b/dev-lang/lfe/lfe-1.3.0_p20210112.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..17f438b3df2 |
46 |
--- /dev/null |
47 |
+++ b/dev-lang/lfe/lfe-1.3.0_p20210112.ebuild |
48 |
@@ -0,0 +1,75 @@ |
49 |
+# Copyright 1999-2021 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=7 |
53 |
+ |
54 |
+inherit elisp-common toolchain-funcs |
55 |
+ |
56 |
+DESCRIPTION="Lisp-flavoured Erlang" |
57 |
+HOMEPAGE="http://lfe.github.io/" |
58 |
+SRC_URI="https://github.com/rvirding/lfe/archive/v${PV}.zip -> ${P}.zip" |
59 |
+ |
60 |
+if [[ "${PV}" == *9999* ]]; then |
61 |
+ inherit git-r3 |
62 |
+ EGIT_BRANCH="develop" |
63 |
+ EGIT_REPO_URI="https://github.com/rvirding/${PN}.git" |
64 |
+else |
65 |
+ COMMIT_SHA="e5f20c459a13b35ed1e71b1d2667363af168e958" |
66 |
+ SRC_URI="https://github.com/rvirding/${PN}/archive/${COMMIT_SHA}.zip -> ${P}.zip" |
67 |
+ KEYWORDS="~amd64 ~x86" |
68 |
+ S="${WORKDIR}/${PN}-${COMMIT_SHA}" |
69 |
+fi |
70 |
+ |
71 |
+RESTRICT="mirror test" |
72 |
+LICENSE="Apache-2.0" |
73 |
+SLOT="0" |
74 |
+IUSE="doc emacs" |
75 |
+ |
76 |
+RDEPEND=" |
77 |
+ dev-lang/erlang |
78 |
+" |
79 |
+DEPEND=" |
80 |
+ ${RDEPEND} |
81 |
+ doc? ( app-text/pandoc ) |
82 |
+" |
83 |
+ |
84 |
+SITEFILE="70${PN}-gentoo.el" |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ |
89 |
+ sed -i "s|cc |$(tc-getCC) ${CFLAGS} |g" ./Makefile \ |
90 |
+ || die "Failed to fix the makefile" |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ emake compile |
95 |
+ |
96 |
+ use doc && emake docs |
97 |
+ use emacs && emake emacs |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ dodir "/usr/$(get_libdir)/erlang/lib/lfe/ebin/" |
102 |
+ cp -R ./ebin "${D}/usr/$(get_libdir)/erlang/lib/lfe/" |
103 |
+ dobin ./bin/* |
104 |
+ |
105 |
+ if use doc; then |
106 |
+ dodoc ./doc/*.txt |
107 |
+ doman ./doc/man/* |
108 |
+ fi |
109 |
+ |
110 |
+ if use emacs; then |
111 |
+ elisp-install lfe emacs/* \ |
112 |
+ || die "elisp-install failed" |
113 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
114 |
+ fi |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ use emacs && elisp-site-regen |
119 |
+} |
120 |
+ |
121 |
+pkg_postrm() { |
122 |
+ use emacs && elisp-site-regen |
123 |
+} |
124 |
|
125 |
diff --git a/dev-lang/lfe/metadata.xml b/dev-lang/lfe/metadata.xml |
126 |
index afa3a329e3a..9345ada5e45 100644 |
127 |
--- a/dev-lang/lfe/metadata.xml |
128 |
+++ b/dev-lang/lfe/metadata.xml |
129 |
@@ -5,6 +5,12 @@ |
130 |
<email>patrick@g.o</email> |
131 |
<name>Patrick Lauer</name> |
132 |
</maintainer> |
133 |
+ <longdescription lang="en"> |
134 |
+ LFE, Lisp Flavoured Erlang, is a lisp syntax front-end |
135 |
+ to the Erlang compiler. Code produced with it is compatible |
136 |
+ with "normal" Erlang code. |
137 |
+ An LFE evaluator and shell is also included. |
138 |
+ </longdescription> |
139 |
<upstream> |
140 |
<remote-id type="github">rvirding/lfe</remote-id> |
141 |
</upstream> |