Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/scheme48/
Date: Sat, 06 Nov 2021 09:21:13
Message-Id: 1636190454.16fc3e3f9809bbd732700deaf42838374a10e326.hattya@gentoo
1 commit: 16fc3e3f9809bbd732700deaf42838374a10e326
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 6 09:20:00 2021 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 6 09:20:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16fc3e3f
7
8 dev-scheme/scheme48: update to EAPI 8
9
10 Closes: https://bugs.gentoo.org/819600
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
13
14 dev-scheme/scheme48/metadata.xml | 19 ++++----
15 ...48-1.9.2-r1.ebuild => scheme48-1.9.2-r2.ebuild} | 53 +++++++++++-----------
16 2 files changed, 36 insertions(+), 36 deletions(-)
17
18 diff --git a/dev-scheme/scheme48/metadata.xml b/dev-scheme/scheme48/metadata.xml
19 index c3094c04edf..a1a67089712 100644
20 --- a/dev-scheme/scheme48/metadata.xml
21 +++ b/dev-scheme/scheme48/metadata.xml
22 @@ -1,13 +1,14 @@
23 <?xml version="1.0" encoding="UTF-8"?>
24 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
25 <pkgmetadata>
26 -<maintainer type="project">
27 - <email>scheme@g.o</email>
28 - <name>Gentoo Scheme Project</name>
29 -</maintainer>
30 -<longdescription lang="en">
31 -Scheme 48 is an implementation of Scheme written by Richard Kelsey and Jonathan
32 -Rees. It is based on a byte-code interpreter and is designed to be used as a
33 -testbed for experiments in implementation techniques and as an expository tool.
34 -</longdescription>
35 + <maintainer type="project">
36 + <email>scheme@g.o</email>
37 + <name>Gentoo Scheme Project</name>
38 + </maintainer>
39 + <longdescription lang="en">
40 + Scheme 48 is an implementation of Scheme written by Richard Kelsey and
41 + Jonathan Rees. It is based on a byte-code interpreter and is designed
42 + to be used as a testbed for experiments in implementation techniques
43 + and as an expository tool.
44 + </longdescription>
45 </pkgmetadata>
46
47 diff --git a/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild b/dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild
48 similarity index 60%
49 rename from dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild
50 rename to dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild
51 index f8c9cd599d6..16a05163890 100644
52 --- a/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild
53 +++ b/dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild
54 @@ -1,9 +1,9 @@
55 # Copyright 1999-2021 Gentoo Authors
56 # Distributed under the terms of the GNU General Public License v2
57
58 -EAPI=5
59 +EAPI="8"
60
61 -inherit elisp-common epatch flag-o-matic toolchain-funcs
62 +inherit elisp-common flag-o-matic toolchain-funcs
63
64 DESCRIPTION="Scheme48 is an implementation of the Scheme Programming Language"
65 HOMEPAGE="https://www.s48.org/"
66 @@ -14,29 +14,36 @@ SLOT="0"
67 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
68 IUSE="doc emacs"
69
70 -DEPEND="emacs? ( >=app-editors/emacs-23.1:* )"
71 -RDEPEND="${DEPEND}"
72 +RDEPEND="emacs? ( >=app-editors/emacs-23.1:* )"
73 +DEPEND="${RDEPEND}"
74
75 -SITEFILE=50scheme48-gentoo.el
76 +PATCHES=( "${FILESDIR}"/CVE-2014-4150.patch )
77 +
78 +SITEFILE="50${PN}-gentoo.el"
79
80 src_prepare() {
81 - epatch "${FILESDIR}"/CVE-2014-4150.patch
82 + default
83 +
84 + append-cflags -fno-strict-aliasing
85 +
86 sed -i \
87 -e "/# Cygwin/,/fi/d" \
88 -e "s/\tar /\t$(tc-getAR) /" \
89 -e "s/\tranlib/\t$(tc-getRANLIB) /" \
90 + -e "/\/COPYING/d" \
91 + -e "/for .*html/,/done/d" \
92 Makefile.in
93 }
94
95 src_configure() {
96 - append-cflags -fno-strict-aliasing
97 econf --docdir=/usr/share/doc/${PF}
98 }
99
100 src_compile() {
101 - emake
102 + default
103 +
104 if use emacs; then
105 - elisp-compile "${S}"/emacs/cmuscheme48.el
106 + elisp-compile emacs/*.el
107 fi
108 }
109
110 @@ -44,28 +51,20 @@ src_install() {
111 # weird parallel failures!
112 emake -j1 DESTDIR="${D}" install
113
114 - if use emacs; then
115 - elisp-install ${PN} emacs/cmuscheme48.el emacs/*.elc
116 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
117 - fi
118 -
119 - dodoc README
120 if use doc; then
121 - dodoc doc/*.txt
122 - docinto src
123 - dodoc doc/src/*
124 - pushd "${ED}/usr/share/doc/${P}" > /dev/null
125 - install -dm755 html
126 - mv *.html *.css *.gif html/
127 - popd > /dev/null
128 + DOCS=( README doc/*.txt )
129 + HTML_DOCS=( doc/html/. )
130 else
131 - pushd "${ED}/usr/share/doc/${P}" > /dev/null
132 - rm -f *.html *.css *.gif
133 - rm -f manu*
134 - popd > /dev/null
135 + rm -f "${ED}"/usr/share/doc/${PF}/man*
136 + fi
137 + einstalldocs
138 +
139 + if use emacs; then
140 + elisp-install ${PN} emacs/*.el{,c}
141 + elisp-site-file-install "${FILESDIR}"/${SITEFILE}
142 fi
143
144 - #this symlink clashes with gambit
145 + # this symlink clashes with gambit
146 rm "${ED}"/usr/bin/scheme-r5rs || die
147 }