Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-scheme/gerbil/files/, dev-scheme/gerbil/
Date: Mon, 01 Feb 2021 15:24:09
Message-Id: 1612192830.b71f6353f25d301e4fb7c1eebef35291ba08f23a.xgqt@gentoo
1 commit: b71f6353f25d301e4fb7c1eebef35291ba08f23a
2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com>
3 AuthorDate: Mon Feb 1 15:20:30 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> protonmail <DOT> com>
5 CommitDate: Mon Feb 1 15:20:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b71f6353
7
8 dev-scheme/gerbil: fix emacs mode; verbose compilation
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>
12
13 dev-scheme/gerbil/files/70gerbil-gentoo.el | 6 ++++++
14 dev-scheme/gerbil/gerbil-0.16.ebuild | 10 ++++++++--
15 dev-scheme/gerbil/gerbil-9999.ebuild | 10 ++++++++--
16 3 files changed, 22 insertions(+), 4 deletions(-)
17
18 diff --git a/dev-scheme/gerbil/files/70gerbil-gentoo.el b/dev-scheme/gerbil/files/70gerbil-gentoo.el
19 new file mode 100644
20 index 00000000..019fc534
21 --- /dev/null
22 +++ b/dev-scheme/gerbil/files/70gerbil-gentoo.el
23 @@ -0,0 +1,6 @@
24 +;;; gerbil site-lisp configuration
25 +
26 +(add-to-list 'load-path "@SITELISP@")
27 +
28 +(autoload 'gerbil-mode "gerbil-mode" nil t)
29 +(add-to-list 'auto-mode-alist '("\\.ss\\'" . gerbil-mode))
30
31 diff --git a/dev-scheme/gerbil/gerbil-0.16.ebuild b/dev-scheme/gerbil/gerbil-0.16.ebuild
32 index b5ddf8a9..b015d2b5 100644
33 --- a/dev-scheme/gerbil/gerbil-0.16.ebuild
34 +++ b/dev-scheme/gerbil/gerbil-0.16.ebuild
35 @@ -40,6 +40,8 @@ RDEPEND="${DEPEND}"
36
37 S="${WORKDIR}/${P}/src"
38
39 +SITEFILE="70${PN}-gentoo.el"
40 +
41 src_configure() {
42 # Just to be safe, because './configure --help' says:
43 # "Set default GERBIL_HOME (environment variable still overrides)"
44 @@ -61,6 +63,10 @@ src_configure() {
45 }
46
47 src_compile() {
48 + # Verbose build process
49 + GAMBCOMP_VERBOSE="yes"
50 + export GAMBCOMP_VERBOSE
51 +
52 # The 'build.sh' script uses environment variables that are exported
53 # by portage, ie.: CFLAGS, LDFLAGS, ...
54 sh ./build.sh \
55 @@ -82,10 +88,10 @@ src_install() {
56 || die "Failed to fix '/usr/share/gerbil/TAGS' install path"
57
58 # Compile the 'gerbil-mode.el'
59 - # FIXME: Doesn't autoload
60 if use emacs; then
61 pushd "${D}/usr/share/emacs/site-lisp/gerbil" || die
62 - elisp-compile *.el || die
63 + elisp-compile *.el || die "Failed to compile elisp files"
64 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
65 popd || die
66 fi
67
68
69 diff --git a/dev-scheme/gerbil/gerbil-9999.ebuild b/dev-scheme/gerbil/gerbil-9999.ebuild
70 index 831c6b68..0f0bbda0 100644
71 --- a/dev-scheme/gerbil/gerbil-9999.ebuild
72 +++ b/dev-scheme/gerbil/gerbil-9999.ebuild
73 @@ -40,6 +40,8 @@ RDEPEND="${DEPEND}"
74
75 S="${WORKDIR}/${P}/src"
76
77 +SITEFILE="70${PN}-gentoo.el"
78 +
79 src_prepare() {
80 default
81
82 @@ -68,6 +70,10 @@ src_configure() {
83 }
84
85 src_compile() {
86 + # Verbose build process
87 + GAMBCOMP_VERBOSE="yes"
88 + export GAMBCOMP_VERBOSE
89 +
90 # The 'build.sh' script uses environment variables that are exported
91 # by portage, ie.: CFLAGS, LDFLAGS, ...
92 sh ./build.sh \
93 @@ -89,10 +95,10 @@ src_install() {
94 || die "Failed to fix '/usr/share/gerbil/TAGS' install path"
95
96 # Compile the 'gerbil-mode.el'
97 - # FIXME: Doesn't autoload
98 if use emacs; then
99 pushd "${D}/usr/share/emacs/site-lisp/gerbil" || die
100 - elisp-compile *.el || die
101 + elisp-compile *.el || die "Failed to compile elisp files"
102 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
103 popd || die
104 fi