1 |
commit: d3bce60414f651b5044d8276ad9c3e3f5afe9e15 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 23 09:01:48 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 16:08:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3bce604 |
7 |
|
8 |
dev-scheme/guile: fix guile-2.0.0 building with clang |
9 |
|
10 |
Also update to EAPI=6 |
11 |
|
12 |
.../files/guile-2.0.0-clang-apicontrol-texi.patch | 12 +++++++++ |
13 |
dev-scheme/guile/guile-2.0.0.ebuild | 31 +++++++++------------- |
14 |
2 files changed, 24 insertions(+), 19 deletions(-) |
15 |
|
16 |
diff --git a/dev-scheme/guile/files/guile-2.0.0-clang-apicontrol-texi.patch b/dev-scheme/guile/files/guile-2.0.0-clang-apicontrol-texi.patch |
17 |
new file mode 100644 |
18 |
index 0000000..cbd3f46 |
19 |
--- /dev/null |
20 |
+++ b/dev-scheme/guile/files/guile-2.0.0-clang-apicontrol-texi.patch |
21 |
@@ -0,0 +1,12 @@ |
22 |
+--- a/doc/ref/api-control.texi 2016-06-23 03:35:29.973976657 -0500 |
23 |
++++ b/doc/ref/api-control.texi 2016-06-23 03:33:36.589969005 -0500 |
24 |
+@@ -1492,8 +1492,8 @@ |
25 |
+ @deftypefnx {C Function} void scm_wrong_type_arg (char *@var{subr}, int @var{argnum}, SCM @var{bad_value}) |
26 |
+ @deftypefnx {C Function} void scm_wrong_type_arg_msg (char *@var{subr}, int @var{argnum}, SCM @var{bad_value}, const char *@var{expected}) |
27 |
+ @deftypefnx {C Function} void scm_memory_error (char *@var{subr}) |
28 |
+-Throw an error with the various keys described above. |
29 |
+ @deftypefnx {C Function} void scm_misc_error (const char *@var{subr}, const char *@var{message}, SCM @var{args}) |
30 |
++Throw an error with the various keys described above. |
31 |
+ |
32 |
+ In @code{scm_wrong_num_args}, @var{proc} should be a Scheme symbol |
33 |
+ which is the name of the procedure incorrectly invoked. The other |
34 |
|
35 |
diff --git a/dev-scheme/guile/guile-2.0.0.ebuild b/dev-scheme/guile/guile-2.0.0.ebuild |
36 |
index 59f04c6..e5204ae 100644 |
37 |
--- a/dev-scheme/guile/guile-2.0.0.ebuild |
38 |
+++ b/dev-scheme/guile/guile-2.0.0.ebuild |
39 |
@@ -1,9 +1,9 @@ |
40 |
-# Copyright 1999-2014 Gentoo Foundation |
41 |
+# Copyright 1999-2016 Gentoo Foundation |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
# $Id$ |
44 |
|
45 |
-EAPI=3 |
46 |
-inherit eutils flag-o-matic elisp-common |
47 |
+EAPI=6 |
48 |
+inherit flag-o-matic elisp-common |
49 |
|
50 |
DESCRIPTION="GNU Ubiquitous Intelligent Language for Extensions" |
51 |
HOMEPAGE="https://www.gnu.org/software/guile/" |
52 |
@@ -29,11 +29,15 @@ DEPEND="${RDEPEND} |
53 |
SLOT="2" |
54 |
MAJOR="2.0" |
55 |
|
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}/${P}-clang-apicontrol-texi.patch" |
58 |
+ ) |
59 |
+ |
60 |
src_configure() { |
61 |
# see bug #178499 |
62 |
filter-flags -ftree-vectorize |
63 |
|
64 |
- #will fail for me if posix is disabled or without modules -- hkBst |
65 |
+ # will fail for me if posix is disabled or without modules -- hkBst |
66 |
econf \ |
67 |
--disable-error-on-warning \ |
68 |
--disable-static \ |
69 |
@@ -51,26 +55,15 @@ src_configure() { |
70 |
# EMACS=no |
71 |
} |
72 |
|
73 |
-src_compile() { |
74 |
- emake || die "make failed" |
75 |
- |
76 |
- # Above we have disabled the build system's Emacs support; |
77 |
- # for USE=emacs we compile (and install) the files manually |
78 |
- # if use emacs; then |
79 |
- # cd emacs |
80 |
- # make |
81 |
- # elisp-compile *.el || die |
82 |
- # fi |
83 |
-} |
84 |
- |
85 |
src_install() { |
86 |
- einstall || die "install failed" |
87 |
+ default |
88 |
|
89 |
- dodoc AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README THANKS || die |
90 |
+ dodoc GUILE-VERSION HACKING |
91 |
|
92 |
# texmacs needs this, closing bug #23493 |
93 |
dodir /etc/env.d |
94 |
- echo "GUILE_LOAD_PATH=\"${EPREFIX}/usr/share/guile/${MAJOR}\"" > "${ED}"/etc/env.d/50guile |
95 |
+ echo "GUILE_LOAD_PATH=\"${EPREFIX}/usr/share/guile/${MAJOR}\"" \ |
96 |
+ > "${ED}"/etc/env.d/50guile || die |
97 |
|
98 |
# necessary for registering slib, see bug 206896 |
99 |
keepdir /usr/share/guile/site |