1 |
commit: 4be74dcf6262b8018b188aa5f155cf154220c1f9 |
2 |
Author: François Bissey <frp.bissey <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Nov 3 21:41:54 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 5 07:38:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be74dcf |
7 |
|
8 |
dev-lisp/ecls: Fix QA, port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Closes: https://bugs.gentoo.org/727618 |
12 |
Signed-off-by: François René Pierre Bissey <frp.bissey <AT> gmail.com> |
13 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
14 |
|
15 |
dev-lisp/ecls/ecls-21.2.1-r4.ebuild | 89 +++++++++++++++++++++++++++++++++++++ |
16 |
dev-lisp/ecls/files/README.gentoo | 13 ++++++ |
17 |
2 files changed, 102 insertions(+) |
18 |
|
19 |
diff --git a/dev-lisp/ecls/ecls-21.2.1-r4.ebuild b/dev-lisp/ecls/ecls-21.2.1-r4.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..9bec3c30a5e |
22 |
--- /dev/null |
23 |
+++ b/dev-lisp/ecls/ecls-21.2.1-r4.ebuild |
24 |
@@ -0,0 +1,89 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit readme.gentoo-r1 |
31 |
+ |
32 |
+# test phase only works if ecls already installed #516876 |
33 |
+RESTRICT="test" |
34 |
+ |
35 |
+MY_P=ecl-${PV} |
36 |
+ |
37 |
+DESCRIPTION="ECL is an embeddable Common Lisp implementation" |
38 |
+HOMEPAGE="https://common-lisp.net/project/ecl/" |
39 |
+SRC_URI="https://common-lisp.net/project/ecl/static/files/release/${MY_P}.tgz" |
40 |
+ |
41 |
+LICENSE="BSD-2 LGPL-2.1+" |
42 |
+SLOT="0/${PV}" |
43 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux" |
44 |
+IUSE="cxx debug emacs gengc precisegc cpu_flags_x86_sse +threads +unicode X" |
45 |
+ |
46 |
+CDEPEND="dev-libs/gmp:0= |
47 |
+ dev-libs/libffi:= |
48 |
+ dev-libs/libatomic_ops |
49 |
+ >=dev-libs/boehm-gc-7.1[threads?] |
50 |
+ >=dev-lisp/asdf-2.33-r3:=" |
51 |
+DEPEND="${CDEPEND} |
52 |
+ app-text/texi2html |
53 |
+ emacs? ( >=app-editors/emacs-23.1:* >=app-eselect/eselect-emacs-1.12 )" |
54 |
+RDEPEND="${CDEPEND}" |
55 |
+ |
56 |
+S="${WORKDIR}"/${MY_P} |
57 |
+ |
58 |
+DOCS=( README.md CHANGELOG ) |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}/${PN}-16.1.3-headers-gentoo.patch" |
62 |
+ "${FILESDIR}/${PN}-16.1.3-build.patch" |
63 |
+) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ econf \ |
72 |
+ --enable-gmp=system \ |
73 |
+ --enable-boehm=system \ |
74 |
+ --with-dffi \ |
75 |
+ --enable-libatomic=system \ |
76 |
+ --with-defsystem \ |
77 |
+ $(use_with cxx) \ |
78 |
+ $(use_enable gengc) \ |
79 |
+ $(use_enable precisegc) \ |
80 |
+ $(use_with debug debug-cflags) \ |
81 |
+ $(use_with cpu_flags_x86_sse sse) \ |
82 |
+ $(use_enable threads) \ |
83 |
+ $(use_enable unicode) \ |
84 |
+ $(use_with X x) |
85 |
+} |
86 |
+ |
87 |
+src_compile() { |
88 |
+ if use emacs; then |
89 |
+ local ETAGS=$(eselect --brief etags list | sed -ne '/emacs/{p;q}') |
90 |
+ [[ -n ${ETAGS} ]] || die "No etags implementation found" |
91 |
+ pushd build > /dev/null || die |
92 |
+ emake ETAGS=${ETAGS} TAGS |
93 |
+ popd > /dev/null || die |
94 |
+ else |
95 |
+ touch build/TAGS |
96 |
+ fi |
97 |
+ |
98 |
+ emake |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ default |
103 |
+ |
104 |
+ readme.gentoo_create_doc |
105 |
+ pushd build/doc > /dev/null || die |
106 |
+ newman ecl.man ecl.1 |
107 |
+ newman ecl-config.man ecl-config.1 |
108 |
+ popd > /dev/null || die |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ readme.gentoo_print_elog |
113 |
+} |
114 |
|
115 |
diff --git a/dev-lisp/ecls/files/README.gentoo b/dev-lisp/ecls/files/README.gentoo |
116 |
new file mode 100644 |
117 |
index 00000000000..c95b6cb7516 |
118 |
--- /dev/null |
119 |
+++ b/dev-lisp/ecls/files/README.gentoo |
120 |
@@ -0,0 +1,13 @@ |
121 |
+-*- outline -*- |
122 |
+ |
123 |
+Gentoo GNU/Linux specific notes for ECL |
124 |
+--------------------------------------- |
125 |
+ |
126 |
+ * The Gentoo port includes a patch to ECL's installed header file (ech.h) so |
127 |
+ that TRUE and FALSE are not redefined if they're already included from |
128 |
+ elsewhere. This makes it easier to use ECL with other software which defines |
129 |
+ those C preprocesser symbols (eg. glib-2.0). |
130 |
+ |
131 |
+If you encounter any problems or have suggestions, use https://bugs.gentoo.org/. |
132 |
+Please don't bother the upstream authors unless you are absolutely certain it is |
133 |
+not Gentoo-related. |