blob: f031c3aa13c5a55e0ab3664f974606a3c60195cd (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda/agda-1.0.2.ebuild,v 1.3 2007/10/31 13:28:20 dcoutts Exp $
inherit autotools elisp-common
MY_PN="Agda"
S="${WORKDIR}/${MY_PN}-${PV}"
DESCRIPTION="Agda is a proof assistant in Haskell."
HOMEPAGE="http://unit.aist.go.jp/cvs/Agda/"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc emacs"
DEPEND="dev-lang/ghc
emacs? ( virtual/emacs )
doc? ( dev-haskell/haddock )"
RDEPEND=""
SITEFILE="50${PN}-gentoo.el"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/agda-make_install.patch"
}
src_compile() {
cd "${S}"
econf --enable-newsyntax || die "./configure failed"
emake || die "make failed"
if use doc ; then
emake html
fi
}
src_install() {
if use emacs; then
cd "${S}/elisp"
elisp-install ${PN} *.el
elisp-site-file-install ${FILESDIR}/${SITEFILE}
fi
cd "${S}/src"
make prefix="${D}/usr" install || die "make install failed"
dosym /usr/lib/EmacsAgda/bin/emacsagda /usr/bin/emacsagda
dosym /usr/bin/emacsagda /usr/bin/agda
}
pkg_postinst() {
if use emacs; then
elisp-site-regen
fi
}
|