blob: 698bf5b369e23b623f891b35d75f2f93f1aa9302 (
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
|
# Copyright 1999-2010 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-r2.ebuild,v 1.2 2010/09/14 19:53:51 bicatali Exp $
EAPI=2
inherit elisp-common eutils
MY_PN="Agda"
S="${WORKDIR}/${MY_PN}-${PV}"
DESCRIPTION="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="~amd64 ~x86"
IUSE=""
RDEPEND="virtual/emacs
app-emacs/haskell-mode"
DEPEND="${RDEPEND}
dev-lang/ghc
dev-haskell/mtl"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
epatch "${FILESDIR}"/${PN}-make_install.patch
epatch "${FILESDIR}"/${P}-upstream-fixes.patch
sed -e "s:-package lang::" -i src/Makefile.in \
|| die "Failed to fix Makfile.in"
}
src_configure() {
econf --enable-newsyntax
}
src_install() {
emake -C src ROOT="${D}" install || die "emake install failed"
dosym /usr/lib/EmacsAgda/bin/emacsagda /usr/bin/emacsagda
dosym emacsagda /usr/bin/agda
elisp-install ${PN} elisp/agda-mode.el || die
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
}
pkg_postinst() {
elisp-site-regen
}
pkg_postrm() {
elisp-site-regen
}
|