mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
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:
6
dev-scheme/gerbil/files/70gerbil-gentoo.el
Normal file
6
dev-scheme/gerbil/files/70gerbil-gentoo.el
Normal 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))
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user