summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2016-07-20 12:46:06 -0400
committerMichael Orlitzky <mjo@gentoo.org>2016-07-20 12:59:20 -0400
commite247a3e78e82add733ba00f06f69dd235ae45fb2 (patch)
tree34c00832b7ea66e06095a35a7a97a12b3d4973b3 /dev-libs/librep/librep-0.92.6.ebuild
parentx11-libs/rep-gtk: new version 0.90.8.3 updating the ebuild to EAPI=6. (diff)
downloadgentoo-e247a3e78e82add733ba00f06f69dd235ae45fb2.tar.gz
gentoo-e247a3e78e82add733ba00f06f69dd235ae45fb2.tar.bz2
gentoo-e247a3e78e82add733ba00f06f69dd235ae45fb2.zip
dev-libs/librep: new version 0.92.6.
Gentoo-Bug: 493110 Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-libs/librep/librep-0.92.6.ebuild')
-rw-r--r--dev-libs/librep/librep-0.92.6.ebuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/librep/librep-0.92.6.ebuild b/dev-libs/librep/librep-0.92.6.ebuild
new file mode 100644
index 000000000000..2004ec4570b1
--- /dev/null
+++ b/dev-libs/librep/librep-0.92.6.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools elisp-common eutils flag-o-matic
+
+DESCRIPTION="Shared library implementing a Lisp dialect"
+HOMEPAGE="http://librep.sourceforge.net/"
+SRC_URI="http://download.tuxfamily.org/librep/${PN}_${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="emacs readline"
+
+RDEPEND="
+ >=sys-libs/gdbm-1.8.0
+ emacs? ( virtual/emacs )
+ readline? ( sys-libs/readline:0= )
+"
+DEPEND="${RDEPEND}
+ sys-apps/texinfo
+ app-arch/xz-utils
+"
+
+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 \
+ --libexecdir=/usr/$(get_libdir) \
+ --without-gmp \
+ --without-ffi \
+ --disable-static \
+ $(use_with readline)
+}
+
+src_compile() {
+ default
+
+ if use emacs; then
+ elisp-compile rep-debugger.el || die "elisp-compile failed"
+ fi
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ 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
+}