1 |
commit: f69e87993b67dd0eec87b107856549b5f4e2a70c |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 25 23:24:24 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Mar 26 00:09:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f69e8799 |
7 |
|
8 |
dev-lisp/PSL: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-lisp/PSL/Manifest | 1 + |
13 |
dev-lisp/PSL/PSL-6.1_p20210604.ebuild | 45 +++++++++++++++++ |
14 |
.../files/PSL-6.1_p20210604-respect-flags.patch | 56 ++++++++++++++++++++++ |
15 |
dev-lisp/PSL/metadata.xml | 11 +++++ |
16 |
4 files changed, 113 insertions(+) |
17 |
|
18 |
diff --git a/dev-lisp/PSL/Manifest b/dev-lisp/PSL/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..1f6abbefd |
21 |
--- /dev/null |
22 |
+++ b/dev-lisp/PSL/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST PSL-6.1_p20210604.tar.gz 391030 BLAKE2B 7a26d6c03a9533e43075d545da692917225bd50206202212f0cccb9ae881f0f137c4b496a53972d542e45687146f35026a559ff72de03766e7aadd191bbadd05 SHA512 65f4892699a4574d130c606904ba18c8ecda128e4b01286256266eccc4c980173e1eeb2aec83f2629dff63834b69c6a938964ef2e239accbf745abcc29d51628 |
25 |
|
26 |
diff --git a/dev-lisp/PSL/PSL-6.1_p20210604.ebuild b/dev-lisp/PSL/PSL-6.1_p20210604.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..081af787f |
29 |
--- /dev/null |
30 |
+++ b/dev-lisp/PSL/PSL-6.1_p20210604.ebuild |
31 |
@@ -0,0 +1,45 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+COMMIT="f489ea67801d04d44cc65d63365d187cdd58dbe9" |
38 |
+ |
39 |
+DESCRIPTION="Portable Standard Lisp" |
40 |
+HOMEPAGE="https://github.com/blakemcbride/PSL" |
41 |
+SRC_URI="https://github.com/blakemcbride/PSL/archive/${COMMIT}.tar.gz -> ${PF}.tar.gz" |
42 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
43 |
+ |
44 |
+IUSE="doc" |
45 |
+LICENSE="BSD-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+ |
49 |
+DEPEND="" |
50 |
+RDEPEND="" |
51 |
+BDEPEND=" |
52 |
+ doc? ( |
53 |
+ app-text/texlive-core |
54 |
+ dev-texlive/texlive-latex |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+DOCS=( README.md README.2 manual/sl.pdf manual/lispman.pdf ) |
59 |
+PATCHES="${FILESDIR}/${P}-respect-flags.patch" |
60 |
+ |
61 |
+src_compile() { |
62 |
+ default |
63 |
+ emake sizes |
64 |
+ if use doc; then |
65 |
+ pushd manual || die |
66 |
+ emake all |
67 |
+ popd || die |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ newbin lisp standardlisp |
73 |
+ exeinto "/usr/libexec/${PN}" |
74 |
+ doexe sizes |
75 |
+ einstalldocs |
76 |
+} |
77 |
|
78 |
diff --git a/dev-lisp/PSL/files/PSL-6.1_p20210604-respect-flags.patch b/dev-lisp/PSL/files/PSL-6.1_p20210604-respect-flags.patch |
79 |
new file mode 100644 |
80 |
index 000000000..52b368dbe |
81 |
--- /dev/null |
82 |
+++ b/dev-lisp/PSL/files/PSL-6.1_p20210604-respect-flags.patch |
83 |
@@ -0,0 +1,56 @@ |
84 |
+--- a/Makefile |
85 |
++++ b/Makefile |
86 |
+@@ -11,10 +11,10 @@ |
87 |
+ all: lisp lispc LISP-INI |
88 |
+ |
89 |
+ lisp : lisp1.o lisp2.o crc cri |
90 |
+- gcc -ggdb -O0 -o lisp lisp1.o lisp2.o -lm |
91 |
++ ${CC} ${CFLAGS} ${LDFLAGS} -fPIE -o lisp lisp1.o lisp2.o -lm |
92 |
+ |
93 |
+ lispc : lisp1c.o lisp2.o lispc1.o |
94 |
+- gcc -o $@ $^ -lm |
95 |
++ ${CC} ${CFLAGS} -fPIC -o $@ $^ -lm |
96 |
+ ./cri comp |
97 |
+ |
98 |
+ LISP-INI : $(COMPILER_FILES) cri |
99 |
+@@ -34,25 +34,25 @@ |
100 |
+ ./crc comp |
101 |
+ |
102 |
+ lisp1.o : lisp1.c |
103 |
+- gcc -ggdb -O0 -Wall -pedantic -c lisp1.c |
104 |
++ ${CC} ${CFLAGS} -fPIC -Wall -pedantic -c lisp1.c |
105 |
+ |
106 |
+ lisp2.o : lisp2.c |
107 |
+- gcc -ggdb -O0 -Wall -pedantic -Wno-parentheses -c lisp2.c |
108 |
++ ${CC} ${CFLAGS} -fPIC -Wall -pedantic -Wno-parentheses -c lisp2.c |
109 |
+ |
110 |
+ $(COMPILER_FILES): compiler.lsp lap.lsp lisp |
111 |
+ ./compile-compiler |
112 |
+ |
113 |
+ cr1 : cr1.c crfile.h |
114 |
+- gcc -Wall -pedantic -o cr1 cr1.c |
115 |
++ ${CC} ${CFLAGS} ${LDFLAGS} -fPIE -Wall -pedantic -o cr1 cr1.c |
116 |
+ |
117 |
+ cr2 : cr2.c crfile.h |
118 |
+- gcc -Wall -pedantic -o cr2 cr2.c |
119 |
++ ${CC} ${CFLAGS} ${LDFLAGS} -fPIE -Wall -pedantic -o cr2 cr2.c |
120 |
+ |
121 |
+ crc : crc.c crfile.h |
122 |
+- gcc -Wall -pedantic -o crc crc.c |
123 |
++ ${CC} ${CFLAGS} ${LDFLAGS} -fPIE -Wall -pedantic -o crc crc.c |
124 |
+ |
125 |
+ cri : cri.c |
126 |
+- gcc -Wall -pedantic -o cri cri.c |
127 |
++ ${CC} ${CFLAGS} ${LDFLAGS} -fPIE -Wall -pedantic -o cri cri.c |
128 |
+ |
129 |
+ clean: |
130 |
+ rm -f lisp*.c *.o *~ *.bak |
131 |
+@@ -62,7 +62,7 @@ |
132 |
+ rm -f lisp lispc cr? LISP-INI |
133 |
+ |
134 |
+ sizes : sizes.c flags.l |
135 |
+- gcc -Wall -pedantic -o sizes sizes.c |
136 |
++ ${CC} ${CFLAGS} ${LDFLAGS} -fPIE -Wall -pedantic -o sizes sizes.c |
137 |
+ |
138 |
+ install: lisp |
139 |
+ mv lisp /usr/local/bin |
140 |
|
141 |
diff --git a/dev-lisp/PSL/metadata.xml b/dev-lisp/PSL/metadata.xml |
142 |
new file mode 100644 |
143 |
index 000000000..855f88ab8 |
144 |
--- /dev/null |
145 |
+++ b/dev-lisp/PSL/metadata.xml |
146 |
@@ -0,0 +1,11 @@ |
147 |
+<?xml version="1.0" encoding="UTF-8"?> |
148 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
149 |
+<pkgmetadata> |
150 |
+ <maintainer type="person"> |
151 |
+ <email>lssndrbarbieri@×××××.com</email> |
152 |
+ <name>Alessandro Barbieri</name> |
153 |
+ </maintainer> |
154 |
+ <upstream> |
155 |
+ <remote-id type="github">blakemcbride/PSL</remote-id> |
156 |
+ </upstream> |
157 |
+</pkgmetadata> |