diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-05-15 07:18:54 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-05-15 08:42:48 +0200 |
commit | aaaa49be97b9862adf671aa7d1dcd12fc7965000 (patch) | |
tree | c714acdea9312045a668a0edcf6eb0c4e2225498 /dev-libs/librep/librep-0.92.7.ebuild | |
parent | gentoo/dev-python: Remove old version (diff) | |
download | gentoo-aaaa49be97b9862adf671aa7d1dcd12fc7965000.tar.gz gentoo-aaaa49be97b9862adf671aa7d1dcd12fc7965000.tar.bz2 gentoo-aaaa49be97b9862adf671aa7d1dcd12fc7965000.zip |
dev-libs/librep: Version 0.92.7
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'dev-libs/librep/librep-0.92.7.ebuild')
-rw-r--r-- | dev-libs/librep/librep-0.92.7.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/librep/librep-0.92.7.ebuild b/dev-libs/librep/librep-0.92.7.ebuild new file mode 100644 index 000000000000..829d45fb63d6 --- /dev/null +++ b/dev-libs/librep/librep-0.92.7.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="emacs gmp readline" + +RDEPEND=" + >=sys-libs/gdbm-1.8.0 + emacs? ( >=app-editors/emacs-23.1:* ) + gmp? ( dev-libs/gmp:= ) + readline? ( sys-libs/readline:0= ) +" +BDEPEND=" + ${RDEPEND} + sys-apps/texinfo +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.92.0-disable-elisp.patch +) + +S="${WORKDIR}/${PN}_${PV}" + +src_prepare() { + # fix #570072 by restoring pre-GCC5 inline semantics + append-cflags -std=gnu89 + default + + # The configure script is missing from this version. + eautoreconf +} + +src_configure() { + econf \ + $(use_with gmp) \ + $(use_with readline) \ + --disable-static \ + --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 +} |