2021-01-07 23:55:56 +03:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2014-03-18 09:57:13 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
inherit elisp-common multilib eutils flag-o-matic
|
|
|
|
|
2014-08-12 13:29:40 +04:00
|
|
|
DESCRIPTION="Scheme48 is an implementation of the Scheme Programming Language"
|
2014-03-18 09:57:13 +04:00
|
|
|
HOMEPAGE="http://www.s48.org/"
|
|
|
|
SRC_URI="http://www.s48.org/${PV}/${P}.tgz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2021-01-07 23:55:56 +03:00
|
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
2014-03-18 09:57:13 +04:00
|
|
|
IUSE="doc emacs"
|
|
|
|
|
2019-12-21 17:27:14 +03:00
|
|
|
DEPEND="emacs? ( >=app-editors/emacs-23.1:* )"
|
2014-03-18 09:57:13 +04:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
SITEFILE=50scheme48-gentoo.el
|
|
|
|
|
2016-07-06 00:24:45 +03:00
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/CVE-2014-4150.patch
|
|
|
|
}
|
|
|
|
|
2014-03-18 09:57:13 +04:00
|
|
|
src_configure() {
|
|
|
|
append-cflags -fno-strict-aliasing
|
|
|
|
econf --docdir=/usr/share/doc/${P}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|