Line 0
Link Here
|
|
|
1 |
--- guile-2.2.6/test-suite/tests/00-repl-server.test.old 2017-04-14 23:26:40.000000000 +0200 |
Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2019 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
inherit autotools flag-o-matic |
7 |
|
8 |
MAJOR="2.2" |
9 |
DESCRIPTION="GNU Ubiquitous Intelligent Language for Extensions" |
10 |
HOMEPAGE="https://www.gnu.org/software/guile/" |
11 |
SRC_URI="mirror://gnu/guile/${P}.tar.gz" |
12 |
|
13 |
LICENSE="LGPL-3+" |
14 |
SLOT="2.2/2.2-1" # libguile-2.2.so.1 => 2.2-1 |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
16 |
IUSE="debug debug-malloc +deprecated +networking +nls +regex +threads" # upstream recommended +networking +nls |
17 |
REQUIRED_USE="regex" # workaround for bug 596322 |
18 |
RESTRICT="strip" |
19 |
|
20 |
RDEPEND=" |
21 |
!>=dev-scheme/guile-2.2:12 |
22 |
>=dev-libs/boehm-gc-7.0:=[threads?] |
23 |
dev-libs/gmp:= |
24 |
virtual/libffi:= |
25 |
dev-libs/libltdl:= |
26 |
dev-libs/libunistring:0= |
27 |
sys-libs/ncurses:0= |
28 |
sys-libs/readline:0=" |
29 |
DEPEND="${RDEPEND}" |
30 |
BDEPEND=" |
31 |
virtual/pkgconfig |
32 |
sys-devel/libtool |
33 |
sys-devel/gettext" |
34 |
|
35 |
PATCHES=( |
36 |
"${FILESDIR}/${PN}-2.2.3-gentoo-sandbox.patch" |
37 |
"${FILESDIR}/${P}-configure-ldflags.patch" # bug 590904 |
38 |
"${FILESDIR}/${P}-tests-00-repl-server.patch" # bug 629004 |
39 |
) |
40 |
DOCS=( GUILE-VERSION HACKING README ) |
41 |
|
42 |
src_prepare() { |
43 |
default |
44 |
eautoreconf |
45 |
} |
46 |
|
47 |
src_configure() { |
48 |
# see bug #178499 |
49 |
filter-flags -ftree-vectorize |
50 |
# see bug #598986 |
51 |
append-cflags $(test-flags-CC -fno-fast-math) |
52 |
|
53 |
econf \ |
54 |
--program-suffix="-${MAJOR}" \ |
55 |
--infodir="${EPREFIX}"/usr/share/info/guile-${MAJOR} \ |
56 |
--disable-error-on-warning \ |
57 |
--disable-rpath \ |
58 |
--disable-static \ |
59 |
--enable-posix \ |
60 |
--without-libgmp-prefix \ |
61 |
--without-libiconv-prefix \ |
62 |
--without-libintl-prefix \ |
63 |
--without-libltdl-prefix \ |
64 |
--without-libreadline-prefix \ |
65 |
--without-libunistring-prefix \ |
66 |
$(use_enable debug guile-debug) \ |
67 |
$(use_enable debug-malloc) \ |
68 |
$(use_enable deprecated) \ |
69 |
$(use_enable networking) \ |
70 |
$(use_enable nls) \ |
71 |
$(use_enable regex) \ |
72 |
$(use_with threads) |
73 |
} |
74 |
|
75 |
src_install() { |
76 |
default |
77 |
|
78 |
# The guile.m4 macro files conflicts with other slots |
79 |
mv "${ED}"/usr/share/aclocal/guile.m4 "${ED}"/usr/share/aclocal/guile-${MAJOR}.m4 || die "rename of guile.m4 failed" |
80 |
|
81 |
# From Novell |
82 |
# https://bugzilla.novell.com/show_bug.cgi?id=874028#c0 |
83 |
dodir /usr/share/gdb/auto-load/$(get_libdir) |
84 |
mv "${ED}"/usr/$(get_libdir)/libguile-*-gdb.scm "${ED}"/usr/share/gdb/auto-load/$(get_libdir) || die |
85 |
|
86 |
# necessary for registering slib, see bug 206896 |
87 |
keepdir /usr/share/guile/site |
88 |
|
89 |
find "${D}" -name '*.la' -delete || die |
90 |
} |