aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@protonmail.com>2021-02-01 16:20:30 +0100
committerMaciej Barć <xgqt@protonmail.com>2021-02-01 16:20:30 +0100
commitb71f6353f25d301e4fb7c1eebef35291ba08f23a (patch)
treeef44438e55a44602ceffd943d73dd83bc57318b1
parentmedia-video/qliveplayer: update dependencies (diff)
downloadguru-b71f6353.tar.gz
guru-b71f6353.tar.bz2
guru-b71f6353.zip
dev-scheme/gerbil: fix emacs mode; verbose compilation
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
-rw-r--r--dev-scheme/gerbil/files/70gerbil-gentoo.el6
-rw-r--r--dev-scheme/gerbil/gerbil-0.16.ebuild10
-rw-r--r--dev-scheme/gerbil/gerbil-9999.ebuild10
3 files changed, 22 insertions, 4 deletions
diff --git a/dev-scheme/gerbil/files/70gerbil-gentoo.el b/dev-scheme/gerbil/files/70gerbil-gentoo.el
new file mode 100644
index 000000000..019fc534a
--- /dev/null
+++ b/dev-scheme/gerbil/files/70gerbil-gentoo.el
@@ -0,0 +1,6 @@
+;;; gerbil site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'gerbil-mode "gerbil-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.ss\\'" . gerbil-mode))
diff --git a/dev-scheme/gerbil/gerbil-0.16.ebuild b/dev-scheme/gerbil/gerbil-0.16.ebuild
index b5ddf8a9f..b015d2b5b 100644
--- a/dev-scheme/gerbil/gerbil-0.16.ebuild
+++ b/dev-scheme/gerbil/gerbil-0.16.ebuild
@@ -40,6 +40,8 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/src"
+SITEFILE="70${PN}-gentoo.el"
+
src_configure() {
# Just to be safe, because './configure --help' says:
# "Set default GERBIL_HOME (environment variable still overrides)"
@@ -61,6 +63,10 @@ src_configure() {
}
src_compile() {
+ # Verbose build process
+ GAMBCOMP_VERBOSE="yes"
+ export GAMBCOMP_VERBOSE
+
# The 'build.sh' script uses environment variables that are exported
# by portage, ie.: CFLAGS, LDFLAGS, ...
sh ./build.sh \
@@ -82,10 +88,10 @@ src_install() {
|| die "Failed to fix '/usr/share/gerbil/TAGS' install path"
# Compile the 'gerbil-mode.el'
- # FIXME: Doesn't autoload
if use emacs; then
pushd "${D}/usr/share/emacs/site-lisp/gerbil" || die
- elisp-compile *.el || die
+ elisp-compile *.el || die "Failed to compile elisp files"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
popd || die
fi
diff --git a/dev-scheme/gerbil/gerbil-9999.ebuild b/dev-scheme/gerbil/gerbil-9999.ebuild
index 831c6b68d..0f0bbda04 100644
--- a/dev-scheme/gerbil/gerbil-9999.ebuild
+++ b/dev-scheme/gerbil/gerbil-9999.ebuild
@@ -40,6 +40,8 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/src"
+SITEFILE="70${PN}-gentoo.el"
+
src_prepare() {
default
@@ -68,6 +70,10 @@ src_configure() {
}
src_compile() {
+ # Verbose build process
+ GAMBCOMP_VERBOSE="yes"
+ export GAMBCOMP_VERBOSE
+
# The 'build.sh' script uses environment variables that are exported
# by portage, ie.: CFLAGS, LDFLAGS, ...
sh ./build.sh \
@@ -89,10 +95,10 @@ src_install() {
|| die "Failed to fix '/usr/share/gerbil/TAGS' install path"
# Compile the 'gerbil-mode.el'
- # FIXME: Doesn't autoload
if use emacs; then
pushd "${D}/usr/share/emacs/site-lisp/gerbil" || die
- elisp-compile *.el || die
+ elisp-compile *.el || die "Failed to compile elisp files"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
popd || die
fi