summaryrefslogtreecommitdiff
path: root/app-emacs/geiser-chez
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/geiser-chez')
-rw-r--r--app-emacs/geiser-chez/Manifest6
-rw-r--r--app-emacs/geiser-chez/files/50geiser-chez-gentoo.el5
-rw-r--r--app-emacs/geiser-chez/files/geiser-chez-chez-scheme-binary.patch12
-rw-r--r--app-emacs/geiser-chez/files/geiser-chez-chez-scheme-src-dir.patch12
-rw-r--r--app-emacs/geiser-chez/geiser-chez-0.17.ebuild44
-rw-r--r--app-emacs/geiser-chez/metadata.xml17
6 files changed, 96 insertions, 0 deletions
diff --git a/app-emacs/geiser-chez/Manifest b/app-emacs/geiser-chez/Manifest
new file mode 100644
index 000000000000..8826caec9944
--- /dev/null
+++ b/app-emacs/geiser-chez/Manifest
@@ -0,0 +1,6 @@
+AUX 50geiser-chez-gentoo.el 206 BLAKE2B 28c176df2f9e9892252d8d25ab9450eff152e2c5f7a625e109fb2ea5ec32ea5ec90dee1b55954a33bd8a963bc8b5aee3d7be83c90b06b5da67d65dec1a0362e8 SHA512 c6b926fcac1e41c41130abdd7ecba0b86431cb952af2c70ca912aaf9f2cf138d1ba8d3f98714ff13aeac66ea3883907fb46c7d192aebbfbab082c77912b86d9b
+AUX geiser-chez-chez-scheme-binary.patch 329 BLAKE2B b2684a2be111f7733d7b5f7a2da5cfbe74149b53f2b63ce5d82e2a9aeb7e2a9c4c6c3ce54a94e816810b6f23de18494ddcaaa44fa0c10c6785ce45cf7bcc44f7 SHA512 abffb86e7c82baab7e21066b1f0b3b55915cfa8d258eec2d481bb4f85b711894aa530c8ee1e837042226c43fab323a078d8569a550247b1781328d4524734555
+AUX geiser-chez-chez-scheme-src-dir.patch 404 BLAKE2B f2d00fdc70856aa2f17e201a90f3657d6fac3aaabe3fba2157189105a9a4036ce26c784307323da83ee2b0ec8c02a52a3de9555794007d715dcf2579ee499547 SHA512 f4c868d3a1d646449f393cae4af694570234b13213bf2a2f32f98e5fe64b967439fa047b9440fd8c12911f63ca8f1bfaa81d1dd688c35ff6f844545d470acec7
+DIST geiser-chez-0.17.tar.gz 6664 BLAKE2B d4f72de512e9d443a1ea2dc0cf6cf03f59980097ff26dd51df7a618c651c5beef142c42b1dea9bb56f94fe4a97b370c6844231eea8968618f6d0dbff499c601d SHA512 bfb1e77a3a0be3750e0e30c421a2b34179edbdb3585fe318c3f6a5a14d7220b3933c63cb970e80af4e14f8d220b620915192d7a34759cc91dfed45878d63ed6e
+EBUILD geiser-chez-0.17.ebuild 841 BLAKE2B f085d2b95c0e73c3d9c06abbb6a002ae97a57f5a64846800804a67ed7f58aff74baf8d0221dd3818f5fd15bea95127a53ec1a1df3d21d786fd46f501914bd29a SHA512 33b1a86d86d3aa900d151bbe6aecc18d62924885fd7e49bcd9850d42e8862ec112c87bc9c78151e484302670cac712f19ae3ef8ea070d8cc6e1595f422cddbca
+MISC metadata.xml 547 BLAKE2B 86fa034eb7e4c6787f7d708a1fc28ad93252d35f75f34dbb2d3c56a74ddc6d8bc3d84c5bf10c86042ebf9bfb53a062237f7ae5ef8b59d3faac3e343ca1814648 SHA512 d16f5d1d6d4b89b9d88a578d2a60606d0d9209aff3e91f2c75757705b5a27dc66db5f352a174db0f0e404121af89e80e1e326403cfbf3ce135cf0c0af9a01e96
diff --git a/app-emacs/geiser-chez/files/50geiser-chez-gentoo.el b/app-emacs/geiser-chez/files/50geiser-chez-gentoo.el
new file mode 100644
index 000000000000..e839ddce889c
--- /dev/null
+++ b/app-emacs/geiser-chez/files/50geiser-chez-gentoo.el
@@ -0,0 +1,5 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'run-chez "geiser-chez"
+ "Start a Geiser Chez REPL." t)
+(autoload 'switch-to-chez "geiser-chez"
+ "Start a Geiser Chez REPL, or switch to a running one." t)
diff --git a/app-emacs/geiser-chez/files/geiser-chez-chez-scheme-binary.patch b/app-emacs/geiser-chez/files/geiser-chez-chez-scheme-binary.patch
new file mode 100644
index 000000000000..321dffa716f6
--- /dev/null
+++ b/app-emacs/geiser-chez/files/geiser-chez-chez-scheme-binary.patch
@@ -0,0 +1,12 @@
+index 7f29927..45c194e 100644
+--- a/geiser-chez.el
++++ b/geiser-chez.el
+@@ -40,7 +40,7 @@
+ :group 'geiser)
+
+ (geiser-custom--defcustom geiser-chez-binary
+- "scheme"
++ "chezscheme"
+ "Name to use to call the Chez Scheme executable when starting a REPL."
+ :type '(choice string (repeat string))
+ :group 'geiser-chez)
diff --git a/app-emacs/geiser-chez/files/geiser-chez-chez-scheme-src-dir.patch b/app-emacs/geiser-chez/files/geiser-chez-chez-scheme-src-dir.patch
new file mode 100644
index 000000000000..547c8663012b
--- /dev/null
+++ b/app-emacs/geiser-chez/files/geiser-chez-chez-scheme-src-dir.patch
@@ -0,0 +1,12 @@
+index 7f29927..cc1f4ca 100644
+--- a/geiser-chez.el
++++ b/geiser-chez.el
+@@ -78,7 +78,7 @@ init file at this location in remote host."
+ geiser-chez-binary))
+
+ (defvar geiser-chez-scheme-dir
+- (expand-file-name "src" (file-name-directory load-file-name))
++ (expand-file-name "src" "@SITEETC@")
+ "Directory where the Chez scheme geiser modules are installed.")
+
+ (defun geiser-chez--parameters ()
diff --git a/app-emacs/geiser-chez/geiser-chez-0.17.ebuild b/app-emacs/geiser-chez/geiser-chez-0.17.ebuild
new file mode 100644
index 000000000000..9aa98f60f933
--- /dev/null
+++ b/app-emacs/geiser-chez/geiser-chez-0.17.ebuild
@@ -0,0 +1,44 @@
+# 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="Chez Scheme's implementation of the Geiser protocols"
+HOMEPAGE="https://gitlab.com/emacs-geiser/chez/"
+SRC_URI="https://gitlab.com/emacs-geiser/chez/-/archive/${PV}/chez-${PV}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}"/chez-${PV}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-emacs/geiser"
+RDEPEND="
+ ${BDEPEND}
+ dev-scheme/chez
+"
+
+DOCS=( readme.org )
+PATCHES=(
+ "${FILESDIR}"/${PN}-chez-scheme-binary.patch
+ "${FILESDIR}"/${PN}-chez-scheme-src-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-chez/metadata.xml b/app-emacs/geiser-chez/metadata.xml
new file mode 100644
index 000000000000..a2f55c9af35d
--- /dev/null
+++ b/app-emacs/geiser-chez/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://gitlab.com/emacs-geiser/chez/-/issues/</bugs-to>
+ <remote-id type="gitlab">emacs-geiser/chez</remote-id>
+ </upstream>
+</pkgmetadata>