summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-11 23:01:52 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-11 23:24:28 +0200
commitc0793a75cba53098a46a48db6bdac9f1e6b3a717 (patch)
tree28970376e50c051a56455da7745a02b0450bebc4 /app-emacs/geiser-guile
parentapp-emacs/geiser-chez: new package; add version 0.17 (diff)
downloadgentoo-c0793a75cba53098a46a48db6bdac9f1e6b3a717.tar.gz
gentoo-c0793a75cba53098a46a48db6bdac9f1e6b3a717.tar.bz2
gentoo-c0793a75cba53098a46a48db6bdac9f1e6b3a717.zip
app-emacs/geiser-guile: new package; add version 0.23.2
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/geiser-guile')
-rw-r--r--app-emacs/geiser-guile/Manifest1
-rw-r--r--app-emacs/geiser-guile/files/50geiser-guile-gentoo.el7
-rw-r--r--app-emacs/geiser-guile/files/geiser-guile-guile-scheme-src-dir.patch12
-rw-r--r--app-emacs/geiser-guile/geiser-guile-0.23.2.ebuild42
-rw-r--r--app-emacs/geiser-guile/metadata.xml17
5 files changed, 79 insertions, 0 deletions
diff --git a/app-emacs/geiser-guile/Manifest b/app-emacs/geiser-guile/Manifest
new file mode 100644
index 000000000000..69d46e3c16b1
--- /dev/null
+++ b/app-emacs/geiser-guile/Manifest
@@ -0,0 +1 @@
+DIST geiser-guile-0.23.2.tar.gz 15615 BLAKE2B e30f5eef1496f8016be35fa3eda2bf02fc651e5bdb9ac8cf8c90a130bd72dd13b67140f172aab24ed38858294ff83c366eaa4b3e354b0a1107c28a0258b2f787 SHA512 c696bc0e406869d9c68f3cda9bbc2f5f0690148264e221c6fc3217f867a5cae3fd6df59851fdbec8a6c9eb6aab7f9482c3231fe75a509d58d2d9d16c008774b8
diff --git a/app-emacs/geiser-guile/files/50geiser-guile-gentoo.el b/app-emacs/geiser-guile/files/50geiser-guile-gentoo.el
new file mode 100644
index 000000000000..c9ac820301e1
--- /dev/null
+++ b/app-emacs/geiser-guile/files/50geiser-guile-gentoo.el
@@ -0,0 +1,7 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'connect-to-guile "geiser-guile"
+ "Start a Guile REPL connected to a remote process." t)
+(autoload 'run-guile "geiser-guile"
+ "Start a Geiser Guile REPL." t)
+(autoload 'switch-to-guile "geiser-guile"
+ "Start a Geiser Guile REPL, or switch to a running one." t)
diff --git a/app-emacs/geiser-guile/files/geiser-guile-guile-scheme-src-dir.patch b/app-emacs/geiser-guile/files/geiser-guile-guile-scheme-src-dir.patch
new file mode 100644
index 000000000000..e86ffaa5edb7
--- /dev/null
+++ b/app-emacs/geiser-guile/files/geiser-guile-guile-scheme-src-dir.patch
@@ -0,0 +1,12 @@
+index db42945..2a6537c 100644
+--- a/geiser-guile.el
++++ b/geiser-guile.el
+@@ -141,7 +141,7 @@ effect on new REPLs. For existing ones, use the command
+ geiser-guile-binary))
+
+ (defvar geiser-guile-scheme-dir
+- (expand-file-name "src" (file-name-directory load-file-name))
++ (expand-file-name "src" "@SITEETC@")
+ "Directory where the Guile scheme geiser modules are installed.")
+
+ (defvar-local geiser-guile-scheme-local-dir
diff --git a/app-emacs/geiser-guile/geiser-guile-0.23.2.ebuild b/app-emacs/geiser-guile/geiser-guile-0.23.2.ebuild
new file mode 100644
index 000000000000..fb3e084e139d
--- /dev/null
+++ b/app-emacs/geiser-guile/geiser-guile-0.23.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=25.1
+
+inherit elisp
+
+DESCRIPTION="Guile's implementation of the Geiser protocols"
+HOMEPAGE="https://gitlab.com/emacs-geiser/guile/"
+SRC_URI="https://gitlab.com/emacs-geiser/guile/-/archive/${PV}/guile-${PV}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}"/guile-${PV}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-emacs/geiser"
+RDEPEND="
+ ${BDEPEND}
+ dev-scheme/guile
+"
+
+DOCS=( readme.org )
+PATCHES=( "${FILESDIR}"/${PN}-guile-scheme-src-dir.patch )
+ELISP_TEXINFO="${PN}.texi"
+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-guile/metadata.xml b/app-emacs/geiser-guile/metadata.xml
new file mode 100644
index 000000000000..7698a7c42f05
--- /dev/null
+++ b/app-emacs/geiser-guile/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/guile/-/issues/</bugs-to>
+ <remote-id type="gitlab">emacs-geiser/guile</remote-id>
+ </upstream>
+</pkgmetadata>