From a5ae4e9b7add4620418b425c385de71bcee15ccc Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Sun, 17 Jul 2022 02:25:05 +0200 Subject: app-emacs/geiser-chicken: new package; add version 0.17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- app-emacs/geiser-chicken/Manifest | 1 + .../files/50geiser-chicken-gentoo.el | 7 ++++ .../files/geiser-chicken-scheme-dir.patch | 11 ++++++ .../geiser-chicken/geiser-chicken-0.17.ebuild | 41 ++++++++++++++++++++++ app-emacs/geiser-chicken/metadata.xml | 17 +++++++++ 5 files changed, 77 insertions(+) create mode 100644 app-emacs/geiser-chicken/Manifest create mode 100644 app-emacs/geiser-chicken/files/50geiser-chicken-gentoo.el create mode 100644 app-emacs/geiser-chicken/files/geiser-chicken-scheme-dir.patch create mode 100644 app-emacs/geiser-chicken/geiser-chicken-0.17.ebuild create mode 100644 app-emacs/geiser-chicken/metadata.xml (limited to 'app-emacs') diff --git a/app-emacs/geiser-chicken/Manifest b/app-emacs/geiser-chicken/Manifest new file mode 100644 index 000000000000..93bdca3cb105 --- /dev/null +++ b/app-emacs/geiser-chicken/Manifest @@ -0,0 +1 @@ +DIST geiser-chicken-0.17.tar.gz 13083 BLAKE2B 02c27de099c1cc835827781159c42664a13a8adf858bb81488f88fa1dadc0b440c791ebdde112ab33aad19dd53f9f7138ff720aee7e14541a903a2a18599f1e0 SHA512 6c292a2c3ca5d036a7af95b029f2fd913675131dd04c3481dc4fe43c534b8c0183ef63bfa386b3393cc34284451b8aa095d3ebdcc8d1bb27fb3649b64d4f5279 diff --git a/app-emacs/geiser-chicken/files/50geiser-chicken-gentoo.el b/app-emacs/geiser-chicken/files/50geiser-chicken-gentoo.el new file mode 100644 index 000000000000..e8c115fa7126 --- /dev/null +++ b/app-emacs/geiser-chicken/files/50geiser-chicken-gentoo.el @@ -0,0 +1,7 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'connect-to-chicken "geiser-chicken" + "Connect to a remote Geiser Chicken REPL." t) +(autoload 'run-chicken "geiser-chicken" + "Start a Geiser Chicken REPL." t) +(autoload 'switch-to-chicken "geiser-chicken" + "Start a Geiser Chicken REPL, or switch to a running one." t) diff --git a/app-emacs/geiser-chicken/files/geiser-chicken-scheme-dir.patch b/app-emacs/geiser-chicken/files/geiser-chicken-scheme-dir.patch new file mode 100644 index 000000000000..5779f23a733f --- /dev/null +++ b/app-emacs/geiser-chicken/files/geiser-chicken-scheme-dir.patch @@ -0,0 +1,11 @@ +--- a/geiser-chicken.el ++++ b/geiser-chicken.el +@@ -123,7 +123,7 @@ this variable to t." + ;;; REPL support: + + (defvar geiser-chicken-scheme-dir +- (expand-file-name "src" (file-name-directory load-file-name)) ++ (expand-file-name "src" "@SITEETC@") + "Directory where the Chicken scheme geiser modules are installed.") + + (defun geiser-chicken--binary () diff --git a/app-emacs/geiser-chicken/geiser-chicken-0.17.ebuild b/app-emacs/geiser-chicken/geiser-chicken-0.17.ebuild new file mode 100644 index 000000000000..a1cc4fd51604 --- /dev/null +++ b/app-emacs/geiser-chicken/geiser-chicken-0.17.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26.1 + +inherit elisp + +DESCRIPTION="Chicken Scheme's implementation of the Geiser protocols" +HOMEPAGE="https://gitlab.com/emacs-geiser/chicken/" +SRC_URI="https://gitlab.com/emacs-geiser/chicken/-/archive/${PV}/chicken-${PV}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}"/chicken-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="app-emacs/geiser" +RDEPEND=" + ${BDEPEND} + dev-scheme/chicken +" + +DOCS=( readme.org ) +PATCHES=( "${FILESDIR}"/${PN}-scheme-dir.patch ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" -i ${PN}.el || die +} + +src_install() { + elisp_src_install + + insinto ${SITEETC}/${PN} + doins -r src +} diff --git a/app-emacs/geiser-chicken/metadata.xml b/app-emacs/geiser-chicken/metadata.xml new file mode 100644 index 000000000000..4a6b5ade29ce --- /dev/null +++ b/app-emacs/geiser-chicken/metadata.xml @@ -0,0 +1,17 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + scheme@gentoo.org + Gentoo Scheme Project + + + https://gitlab.com/emacs-geiser/chicken/-/issues/ + emacs-geiser/chicken + + -- cgit v1.2.3-65-gdbad