diff options
Diffstat (limited to 'dev-libs/librep')
-rw-r--r-- | dev-libs/librep/Manifest | 5 | ||||
-rw-r--r-- | dev-libs/librep/files/50librep-gentoo.el | 6 | ||||
-rw-r--r-- | dev-libs/librep/files/librep-0.92.0-disable-elisp.patch | 19 | ||||
-rw-r--r-- | dev-libs/librep/librep-0.92.6.ebuild | 78 | ||||
-rw-r--r-- | dev-libs/librep/metadata.xml | 8 |
5 files changed, 116 insertions, 0 deletions
diff --git a/dev-libs/librep/Manifest b/dev-libs/librep/Manifest new file mode 100644 index 000000000000..2d45712383a5 --- /dev/null +++ b/dev-libs/librep/Manifest @@ -0,0 +1,5 @@ +AUX 50librep-gentoo.el 180 BLAKE2B 7d60b7ef76c4c695eca84d2c85e1d139fc34fcaaa76189510d8fe021b05a276da9ab33f38622e04c55bee7dcd312bc20baf86383114e527b34cc8daa305b35f5 SHA512 04a4da2e38ddf04bccd28002a46f13526249f31d2e25769056e1b763e3a22f75ffc2a906b68eef0ce04b1e6505acbf858f4d7f911258461e39419ebe4b098b71 +AUX librep-0.92.0-disable-elisp.patch 838 BLAKE2B ec37012dd440def1beab62335b787d7d064b416f3274bf5e563127801f0b242313fbdc5b30e43dd7e518c2a91a05532f606126645af33d45c808d570731a759b SHA512 cdbfe9f8f210869243e38e6ed4f2ea66cee4a1c626e7fcd8b9733870998e59e0a294c3cb9c491eefac8d6b89a8effc9068ea0dd9f2d2d6a86c9dc49dd838f126 +DIST librep_0.92.6.tar.xz 472152 BLAKE2B 165fa8b1d68360e0b08909663cab0f334774030e970c0d376652bc819368eae647882091f1e8d1329f4d3c1c53def4f69aeb8c4d7fe5f327d06d528dc9bb2267 SHA512 6e347e788922af9458e6eddfdaf7935b69df8f70b3f6deb11e6abd67596aec05e7dce7f41db1c84e478347d379ced10cfb34672a797c853913fd538a78a1f96d +EBUILD librep-0.92.6.ebuild 1496 BLAKE2B 86d825c017bcea3436af965a595905c78d54f6a67c01b66eb1f07fba152840d2183fc69f1fbaa1898ce7b93be304713a3b8c06445b83ab81e14a2736f0f30915 SHA512 d608885996b4e13d3de2e96f2bc2194d411643e5e5c0f649c222450b46aa39df40fd1d7e5c712b3042e29e92c6297f07a908f842b9044320e804263e76a8541d +MISC metadata.xml 243 BLAKE2B 424708417b0be4fbbd98ebe053b99952e71bf62573e9c47eccd5adfa07de8ed4d9477bf5883b3ba4d4e9d1af015ff6e4f347fe1caa3fefa1ae7a1d5c9c0a82fc SHA512 6d786c0bd00b4cfc39b7705053bfda7169666513c7e7ca16f9fdcca5244b89f1e0024731214956e6cdcde8d241914c6f66b7dae153c4c48e5a41e44bd1b04411 diff --git a/dev-libs/librep/files/50librep-gentoo.el b/dev-libs/librep/files/50librep-gentoo.el new file mode 100644 index 000000000000..59025bbb9d0e --- /dev/null +++ b/dev-libs/librep/files/50librep-gentoo.el @@ -0,0 +1,6 @@ + +;;; librep site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'rep-debugger "rep-debugger" + "Run the rep debugger on program FILE in buffer *gud-FILE*." t) diff --git a/dev-libs/librep/files/librep-0.92.0-disable-elisp.patch b/dev-libs/librep/files/librep-0.92.0-disable-elisp.patch new file mode 100644 index 000000000000..03cec6f710b6 --- /dev/null +++ b/dev-libs/librep/files/librep-0.92.0-disable-elisp.patch @@ -0,0 +1,19 @@ +--- librep_0.92.5/Makefile.in.old 2011-07-25 14:08:18.000000000 +0200 ++++ librep_0.92.5/Makefile.in 2011-07-25 14:09:05.000000000 +0200 +@@ -53,15 +53,13 @@ + $(INSTALL_SCRIPT) libtool $(DESTDIR)$(repcommonexecdir) + $(INSTALL_DATA) rules.mk $(DESTDIR)$(repcommonexecdir) + $(INSTALL_SCRIPT) install-aliases $(DESTDIR)$(repcommonexecdir) +- $(INSTALL_DATA) rep-debugger.el $(DESTDIR)$(emacssitelispdir) + mkdir -p $(DESTDIR)$(libdir)/pkgconfig + $(INSTALL_DATA) $(top_srcdir)/librep.pc $(DESTDIR)$(libdir)/pkgconfig/ + + installdirs : mkinstalldirs + $(SHELL) $< $(DESTDIR)$(repdir) \ + $(DESTDIR)$(bindir) $(DESTDIR)$(aclocaldir) \ +- $(DESTDIR)$(repcommonexecdir) $(DESTDIR)$(repexecdir) \ +- $(DESTDIR)$(emacssitelispdir) ++ $(DESTDIR)$(repcommonexecdir) $(DESTDIR)$(repexecdir) + + uninstall : + -for dir in $(INSTALL_SUBDIRS); do \ 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..259b0e4cdbfa --- /dev/null +++ b/dev-libs/librep/librep-0.92.6.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} diff --git a/dev-libs/librep/metadata.xml b/dev-libs/librep/metadata.xml new file mode 100644 index 000000000000..c962fd87965c --- /dev/null +++ b/dev-libs/librep/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">librep</remote-id> + </upstream> +</pkgmetadata> |