blob: f0593a2c0d4d1a1a31d1ee8c80294d92aed8c64e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools elisp-common flag-o-matic
DESCRIPTION="Shared library implementing a Lisp dialect"
HOMEPAGE="https://sawfish.fandom.com/"
SRC_URI="https://download.tuxfamily.org/librep/${PN}_${PV}.tar.xz"
S="${WORKDIR}/${PN}_${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86"
IUSE="emacs gmp readline"
RDEPEND="
>=sys-libs/gdbm-1.8.0:=
virtual/libcrypt:=
emacs? ( >=app-editors/emacs-23.1:* )
gmp? ( dev-libs/gmp:= )
readline? ( sys-libs/readline:0= )
"
DEPEND="${RDEPEND}"
BDEPEND="
sys-apps/texinfo
"
PATCHES=(
"${FILESDIR}"/${PN}-0.92.0-disable-elisp.patch
"${FILESDIR}"/${P}-libtool.patch
"${FILESDIR}"/${PN}-0.92.7-configure-clang16.patch
)
src_prepare() {
default
# The configure script is missing from this version.
eautoreconf
}
src_configure() {
# fix #570072 by restoring pre-GCC5 inline semantics
append-cflags -std=gnu89
econf \
$(use_with gmp) \
$(use_with readline) \
--libexecdir=/usr/$(get_libdir) \
--without-ffi
}
src_compile() {
default
if use emacs; then
elisp-compile rep-debugger.el || die "elisp-compile failed"
fi
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
find "${D}/usr/share/man" -name '*.gz' -exec gunzip {} \; || die
dodoc doc/*
if use emacs; then
elisp-install ${PN} rep-debugger.{el,elc} || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" \
|| die "elisp-site-file-install failed"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|