blob: d9ef584149a7d31611a2a6353f22e0cd8bda3cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit multilib flag-o-matic #elisp-common
DESCRIPTION="GNU/MIT-Scheme"
HOMEPAGE="http://www.swiss.ai.mit.edu/projects/scheme/"
SRC_URI="http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc" # emacs"
#SITEFILE="50mitscheme-gentoo.el"
RDEPEND="app-crypt/mhash
dev-db/postgresql-base
dev-libs/libmcrypt
dev-libs/openssl
sys-libs/gdbm
sys-libs/ncurses
x11-libs/libX11"
DEPEND="${RDEPEND}
doc? ( dev-texlive/texlive-texinfo )"
src_prepare() {
sed "s:@for:@+for:" -i \
Makefile || die "sed failed"
sed "s:make:make -j1:" -i \
src/etc/make-in-subdirs.sh || die "sed failed"
sed "s:CFLAGS=\"\${CFLAGS} -O3\":CFLAGS=\"${CFLAGS}\":" -i \
{src/lib/include,src/microcode}/configure{,.ac} || die "sed failed"
}
src_configure() {
if use doc; then
cd "${S}"/doc
econf
fi
}
src_compile() {
cd "${S}"/src
./etc/make-liarc.sh --prefix=/usr --exec-prefix=/usr --libdir=/usr/$(get_libdir) || die "making liar C failed"
if use doc ; then
cd "${S}"/doc
emake -j1 || die "emake doc failed"
fi
cd ..
# if use emacs ; then
# elisp-compile etc/*.el || die
# fi
}
src_install() {
cd "${S}"/src
emake DESTDIR="${D}" install || die "make install failed"
cd "${S}"/doc
doman scheme.1 || die "doman failed"
if use doc ; then
dohtml index.html || die "dhtml failed"
doinfo ref-manual/mit-scheme-ref.info* || die "doinfo failed"
dodoc ref-manual/mit-scheme-ref.{pdf,ps} || die "dodoc failed"
doinfo user-manual/mit-scheme-user.info || die "doinfo failed"
dodoc user-manual/mit-scheme-user.{pdf,ps} || die "dodoc failed"
doinfo sos/mit-scheme-sos.info || die "doinfo failed"
dodoc sos/mit-scheme-sos.{pdf,ps} || die "dodoc failed"
doinfo imail/mit-scheme-imail.info || die "doinfo failed"
dodoc imail/mit-scheme-imail.{pdf,ps} || die "dodoc failed"
cd ref-manual
docinto html/mit-scheme-ref
dohtml mit-scheme-ref/* || die "dhtml failed"
cd ../user-manual
docinto html/mit-scheme-user
dohtml mit-scheme-user/* || die "dhtml failed"
cd ../sos
docinto html/mit-scheme-sos
dohtml mit-scheme-sos/* || die "dhtml failed"
cd ../imail
docinto html/mit-scheme-imail
dohtml mit-scheme-imail/* || die "dhtml failed"
cd ../
fi
}
#pkg_postinst() {
# use emacs && elisp-site-regen
#}
#pkg_postrm() {
# use emacs && elisp-site-regen
#}
|