From 16fc3e3f9809bbd732700deaf42838374a10e326 Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Sat, 6 Nov 2021 18:20:00 +0900 Subject: dev-scheme/scheme48: update to EAPI 8 Closes: https://bugs.gentoo.org/819600 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Akinori Hattori --- dev-scheme/scheme48/metadata.xml | 19 +++---- dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild | 78 ---------------------------- dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild | 77 +++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 87 deletions(-) delete mode 100644 dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild create mode 100644 dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild (limited to 'dev-scheme/scheme48') diff --git a/dev-scheme/scheme48/metadata.xml b/dev-scheme/scheme48/metadata.xml index c3094c04edfa..a1a67089712a 100644 --- a/dev-scheme/scheme48/metadata.xml +++ b/dev-scheme/scheme48/metadata.xml @@ -1,13 +1,14 @@ - - scheme@gentoo.org - Gentoo Scheme Project - - -Scheme 48 is an implementation of Scheme written by Richard Kelsey and Jonathan -Rees. It is based on a byte-code interpreter and is designed to be used as a -testbed for experiments in implementation techniques and as an expository tool. - + + scheme@gentoo.org + Gentoo Scheme Project + + + Scheme 48 is an implementation of Scheme written by Richard Kelsey and + Jonathan Rees. It is based on a byte-code interpreter and is designed + to be used as a testbed for experiments in implementation techniques + and as an expository tool. + diff --git a/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild b/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild deleted file mode 100644 index f8c9cd599d66..000000000000 --- a/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit elisp-common epatch flag-o-matic toolchain-funcs - -DESCRIPTION="Scheme48 is an implementation of the Scheme Programming Language" -HOMEPAGE="https://www.s48.org/" -SRC_URI="https://www.s48.org/${PV}/${P}.tgz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc emacs" - -DEPEND="emacs? ( >=app-editors/emacs-23.1:* )" -RDEPEND="${DEPEND}" - -SITEFILE=50scheme48-gentoo.el - -src_prepare() { - epatch "${FILESDIR}"/CVE-2014-4150.patch - sed -i \ - -e "/# Cygwin/,/fi/d" \ - -e "s/\tar /\t$(tc-getAR) /" \ - -e "s/\tranlib/\t$(tc-getRANLIB) /" \ - Makefile.in -} - -src_configure() { - append-cflags -fno-strict-aliasing - econf --docdir=/usr/share/doc/${PF} -} - -src_compile() { - emake - if use emacs; then - elisp-compile "${S}"/emacs/cmuscheme48.el - fi -} - -src_install() { - # weird parallel failures! - emake -j1 DESTDIR="${D}" install - - if use emacs; then - elisp-install ${PN} emacs/cmuscheme48.el emacs/*.elc - elisp-site-file-install "${FILESDIR}"/${SITEFILE} - fi - - dodoc README - if use doc; then - dodoc doc/*.txt - docinto src - dodoc doc/src/* - pushd "${ED}/usr/share/doc/${P}" > /dev/null - install -dm755 html - mv *.html *.css *.gif html/ - popd > /dev/null - else - pushd "${ED}/usr/share/doc/${P}" > /dev/null - rm -f *.html *.css *.gif - rm -f manu* - popd > /dev/null - fi - - #this symlink clashes with gambit - rm "${ED}"/usr/bin/scheme-r5rs || die -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild b/dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild new file mode 100644 index 000000000000..16a051638906 --- /dev/null +++ b/dev-scheme/scheme48/scheme48-1.9.2-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit elisp-common flag-o-matic toolchain-funcs + +DESCRIPTION="Scheme48 is an implementation of the Scheme Programming Language" +HOMEPAGE="https://www.s48.org/" +SRC_URI="https://www.s48.org/${PV}/${P}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc emacs" + +RDEPEND="emacs? ( >=app-editors/emacs-23.1:* )" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/CVE-2014-4150.patch ) + +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + default + + append-cflags -fno-strict-aliasing + + sed -i \ + -e "/# Cygwin/,/fi/d" \ + -e "s/\tar /\t$(tc-getAR) /" \ + -e "s/\tranlib/\t$(tc-getRANLIB) /" \ + -e "/\/COPYING/d" \ + -e "/for .*html/,/done/d" \ + Makefile.in +} + +src_configure() { + econf --docdir=/usr/share/doc/${PF} +} + +src_compile() { + default + + if use emacs; then + elisp-compile emacs/*.el + fi +} + +src_install() { + # weird parallel failures! + emake -j1 DESTDIR="${D}" install + + if use doc; then + DOCS=( README doc/*.txt ) + HTML_DOCS=( doc/html/. ) + else + rm -f "${ED}"/usr/share/doc/${PF}/man* + fi + einstalldocs + + if use emacs; then + elisp-install ${PN} emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}"/${SITEFILE} + fi + + # this symlink clashes with gambit + rm "${ED}"/usr/bin/scheme-r5rs || die +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} -- cgit v1.2.3-65-gdbad