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>
This commit is contained in:
Maciej Barć
2021-02-01 16:20:30 +01:00
parent 46bebd65b9
commit b71f6353f2
3 changed files with 22 additions and 4 deletions

View File

@@ -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))

View File

@@ -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

View File

@@ -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