| 6 |
6 |
|
| 7 |
7 |
DESCRIPTION="GNU Common Lisp"
|
| 8 |
8 |
HOMEPAGE="https://www.gnu.org/software/gcl/gcl.html"
|
| 9 |
|
SRC_URI="https://ftp.gnu.org/gnu/${PN}/${P}.tar.gz"
|
|
9 |
SRC_URI="http://git.savannah.gnu.org/cgit/gcl.git/snapshot/${PN}-Version_2_6_15pre3.tar.gz
|
|
10 |
https://dev.gentoo.org/~grozin/${PF}-spelling.patch.gz"
|
| 10 |
11 |
|
| 11 |
12 |
LICENSE="LGPL-2+ GPL-2+"
|
| 12 |
13 |
SLOT="0"
|
| 13 |
|
KEYWORDS="amd64 ~arm ~ppc ppc64 x86"
|
| 14 |
|
IUSE="+ansi athena emacs +readline tk X"
|
|
14 |
KEYWORDS="amd64 ~arm ~ppc ppc64 ~riscv x86"
|
|
15 |
IUSE="+ansi athena doc emacs +readline tk X"
|
| 15 |
16 |
RESTRICT="strip" #205803
|
| 16 |
17 |
|
| 17 |
18 |
RDEPEND="dev-libs/gmp
|
| ... | ... | |
| 26 |
27 |
app-text/texi2html
|
| 27 |
28 |
>=dev-build/autoconf-2.52"
|
| 28 |
29 |
|
|
30 |
PATCHES=(
|
|
31 |
"${WORKDIR}"/${PF}-spelling.patch
|
|
32 |
# bug 893938
|
|
33 |
"${FILESDIR}"/${PN}-2.6.15-riscv.patch
|
|
34 |
)
|
|
35 |
S="${WORKDIR}"/${PN}-Version_2_6_15pre3/${PN}
|
|
36 |
|
| 29 |
37 |
src_configure() {
|
| 30 |
38 |
filter-lto # bug #931082
|
| 31 |
39 |
strip-flags
|
| 32 |
40 |
append-cflags -std=gnu17 # bug #947758
|
|
41 |
append-cppflags -std=gnu17 # ditto
|
| 33 |
42 |
filter-flags -fstack-protector -fstack-protector-all
|
| 34 |
|
# breaks linking on multiple defined syms
|
| 35 |
|
#append-cflags $(test-flags-CC -fgnu89-inline)
|
| 36 |
43 |
|
| 37 |
44 |
local tcl=""
|
| 38 |
45 |
if use tk; then
|
| ... | ... | |
| 77 |
84 |
|
| 78 |
85 |
src_install() {
|
| 79 |
86 |
emake DESTDIR="${D}" install
|
|
87 |
dodoc readme readme.gmp readme.xgcl ChangeLog doc/*
|
| 80 |
88 |
|
| 81 |
|
rm elisp/add-defaults.el
|
| 82 |
|
dodoc readme readme.gmp readme.xgcl ChangeLog doc/* info/*.pdf
|
| 83 |
|
dodoc -r info/gcl-si
|
| 84 |
|
doman man/man1/gcl.1
|
| 85 |
|
doinfo info/gcl.info* info/gcl-si.info
|
| 86 |
|
|
| 87 |
|
use athena && dodoc xgcl-2/*.pdf
|
| 88 |
|
|
| 89 |
|
if use tk; then
|
| 90 |
|
dodoc -r info/gcl-tk
|
| 91 |
|
doinfo info/gcl-tk.info*
|
|
89 |
pushd "${D}"/usr/share/doc > /dev/null
|
|
90 |
rm dwdoc.tex || die "rm dwdoc.tex.bz2 failed"
|
|
91 |
if use doc; then
|
|
92 |
mv *.pdf gcl gcl-si gcl-tk dwdoc ${PF} || die "mv * ${PF} failed"
|
|
93 |
else
|
|
94 |
rm -rf *.pdf gcl gcl-si gcl-tk dwdoc
|
| 92 |
95 |
fi
|
|
96 |
popd > /dev/null
|
| 93 |
97 |
|
| 94 |
98 |
if use emacs; then
|
| 95 |
99 |
elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
|