/[gentoo-x86]/dev-scheme/scheme48/scheme48-1.8-r2.ebuild
Gentoo

Contents of /dev-scheme/scheme48/scheme48-1.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Nov 4 13:56:32 2012 UTC (2 years, 6 months ago) by ulm
Branch: MAIN
Changes since 1.2: +2 -2 lines
Specify LICENSE more precisely.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/scheme48/scheme48-1.8-r2.ebuild,v 1.2 2012/10/28 16:17:22 pacho Exp $
4
5 EAPI=4
6 inherit elisp-common multilib eutils flag-o-matic
7
8 DESCRIPTION="Scheme48 is an implementation of the Scheme Programming Language."
9 HOMEPAGE="http://www.s48.org/"
10 SRC_URI="http://www.s48.org/${PV}/${P}.tgz"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="~x86 ~amd64 ~amd64-linux ~x86-linux ~x86-macos"
15 IUSE="doc emacs"
16
17 DEPEND="emacs? ( virtual/emacs )"
18 RDEPEND="${DEPEND}"
19 SITEFILE=50scheme48-gentoo.el
20
21 src_prepare() {
22 epatch "${FILESDIR}/${P}-as-needed+fix_destdir.patch"
23 sed -i -e "s/\$(LD) /&\$(LFLAGS) /" Makefile.in || die #332007
24 }
25
26 src_compile() {
27 emake LFLAGS="$(raw-ldflags)"
28 if use emacs; then
29 elisp-compile "${S}"/emacs/cmuscheme48.el
30 fi
31 }
32
33 src_install() {
34 # weird parallel failures!
35 emake -j1 DESTDIR="${D}" install
36
37 if use emacs; then
38 elisp-install ${PN} emacs/cmuscheme48.el emacs/*.elc
39 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
40 fi
41
42 dodoc README
43 if use doc; then
44 dodoc doc/manual.ps doc/manual.pdf doc/*.txt
45 dohtml -r doc/html/*
46 docinto src
47 dodoc doc/src/*
48 fi
49
50 #this symlink clashes with gambit
51 rm "${ED}"/usr/bin/scheme-r5rs || die
52 }
53
54 pkg_postinst() {
55 use emacs && elisp-site-regen
56 }
57
58 pkg_postrm() {
59 use emacs && elisp-site-regen
60 }

  ViewVC Help
Powered by ViewVC 1.1.20