Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (opfer)" <opfer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/agda: ChangeLog agda-1.0.2-r1.ebuild
Date: Sun, 23 Sep 2007 12:20:19
Message-Id: E1IZQJg-000721-Ug@stork.gentoo.org
1 opfer 07/09/23 12:12:04
2
3 Modified: ChangeLog
4 Added: agda-1.0.2-r1.ebuild
5 Log:
6 add elisp-site-regen to postrm and canonicalise it in postinst; depending on USE=emacs
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.5 sci-mathematics/agda/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/agda/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/agda/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/agda/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/agda/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 31 Jul 2007 21:55:39 -0000 1.4
23 +++ ChangeLog 23 Sep 2007 12:12:04 -0000 1.5
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sci-mathematics/agda
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda/ChangeLog,v 1.4 2007/07/31 21:55:39 phreak Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda/ChangeLog,v 1.5 2007/09/23 12:12:04 opfer Exp $
29 +
30 +*agda-1.0.2-r1 (23 Sep 2007)
31 +
32 + 23 Sep 2007; Christian Faulhammer <opfer@g.o>
33 + +agda-1.0.2-r1.ebuild:
34 + add elisp-site-regen to postrm and canonicalise it in postinst; depending on
35 + USE=emacs
36
37 31 Jul 2007; Christian Heim <phreak@g.o> metadata.xml:
38 Reassigning to sci from math-proof.
39
40
41
42 1.1 sci-mathematics/agda/agda-1.0.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/agda/agda-1.0.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/agda/agda-1.0.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: agda-1.0.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda/agda-1.0.2-r1.ebuild,v 1.1 2007/09/23 12:12:04 opfer Exp $
52
53 inherit autotools elisp-common
54
55 MY_PN="Agda"
56 S="${WORKDIR}/${MY_PN}-${PV}"
57
58 DESCRIPTION="Agda is a proof assistant in Haskell."
59 HOMEPAGE="http://unit.aist.go.jp/cvs/Agda/"
60 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}.tar.gz"
61
62 LICENSE="MIT"
63 SLOT="0"
64 KEYWORDS="~x86"
65 IUSE="doc emacs"
66
67 DEPEND="virtual/ghc
68 emacs? ( virtual/emacs )
69 doc? ( dev-haskell/haddock )"
70 RDEPEND=""
71
72 SITEFILE="50${PN}-gentoo.el"
73
74 src_unpack() {
75 unpack ${A}
76 cd "${S}"
77 epatch "${FILESDIR}/agda-make_install.patch"
78 }
79
80 src_compile() {
81 cd "${S}"
82 econf --enable-newsyntax || die "./configure failed"
83 emake || die "make failed"
84 if use doc ; then
85 emake html
86 fi
87 }
88
89 src_install() {
90 if use emacs; then
91 cd "${S}/elisp"
92 elisp-install ${PN} *.el
93 elisp-site-file-install ${FILESDIR}/${SITEFILE}
94 fi
95 cd "${S}/src"
96 make prefix="${D}/usr" install || die "make install failed"
97 dosym /usr/lib/EmacsAgda/bin/emacsagda /usr/bin/emacsagda
98 dosym /usr/bin/emacsagda /usr/bin/agda
99
100 }
101
102 pkg_postinst() {
103 use emacs && elisp-site-regen
104 }
105
106 pkg_postrm() {
107 use emacs && elisp-site-regen
108 }
109
110
111
112 --
113 gentoo-commits@g.o mailing list