summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2013-09-13 06:56:46 +0000
committerMark Wright <gienah@gentoo.org>2013-09-13 06:56:46 +0000
commit7b98adea7587b126b8f79155ddc6184a58c29b78 (patch)
tree27e544e7d83ec6d71c8d069aa2952d708c88dba5 /sci-mathematics/agda-stdlib
parentagda-executable must be rebuilt when agda is upgraded (diff)
downloadgentoo-2-7b98adea7587b126b8f79155ddc6184a58c29b78.tar.gz
gentoo-2-7b98adea7587b126b8f79155ddc6184a58c29b78.tar.bz2
gentoo-2-7b98adea7587b126b8f79155ddc6184a58c29b78.zip
Bump agda-stdlib to 0.7
(Portage version: 2.2.3/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
Diffstat (limited to 'sci-mathematics/agda-stdlib')
-rw-r--r--sci-mathematics/agda-stdlib/ChangeLog7
-rw-r--r--sci-mathematics/agda-stdlib/agda-stdlib-0.7.ebuild59
2 files changed, 65 insertions, 1 deletions
diff --git a/sci-mathematics/agda-stdlib/ChangeLog b/sci-mathematics/agda-stdlib/ChangeLog
index afae7a43d007..81bcac32115b 100644
--- a/sci-mathematics/agda-stdlib/ChangeLog
+++ b/sci-mathematics/agda-stdlib/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-mathematics/agda-stdlib
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog,v 1.3 2013/01/10 12:31:25 gienah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog,v 1.4 2013/09/13 06:56:46 gienah Exp $
+
+*agda-stdlib-0.7 (13 Sep 2013)
+
+ 13 Sep 2013; Mark Wright <gienah@gentoo.org> +agda-stdlib-0.7.ebuild:
+ Bump agda-stdlib to 0.7
*agda-stdlib-0.7_pre20130109 (10 Jan 2013)
diff --git a/sci-mathematics/agda-stdlib/agda-stdlib-0.7.ebuild b/sci-mathematics/agda-stdlib/agda-stdlib-0.7.ebuild
new file mode 100644
index 000000000000..474fc6116ab0
--- /dev/null
+++ b/sci-mathematics/agda-stdlib/agda-stdlib-0.7.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/agda-stdlib-0.7.ebuild,v 1.1 2013/09/13 06:56:46 gienah Exp $
+
+EAPI=5
+
+CABAL_FEATURES="bin"
+inherit haskell-cabal elisp-common
+
+DESCRIPTION="Agda standard library"
+HOMEPAGE="http://wiki.portal.chalmers.se/agda/"
+SRC_URI="http://www.cse.chalmers.se/~nad/software/lib-${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="profile"
+
+DEPEND=">=sci-mathematics/agda-executable-2.3.0.1"
+RDEPEND="=sci-mathematics/agda-2.3.2*[profile?]
+ =dev-haskell/filemanip-0.3*[profile?]"
+
+SITEFILE="50${PN}-gentoo.el"
+
+S="${WORKDIR}/lib-${PV}"
+
+src_prepare() {
+ cabal-mksetup
+}
+
+src_compile() {
+ haskell-cabal_src_compile
+ "${S}"/dist/build/GenerateEverything/GenerateEverything \
+ || die "GenerateEverything failed"
+ local prof
+ use profile && prof="--ghc-flag=-prof"
+ agda +RTS -K1G -RTS ${prof} \
+ -i "${S}" -i "${S}"/src "${S}"/Everything.agda || die
+ # Although my agda-9999 build has
+ # /var/tmp/portage/sci-mathematics/agda-9999/work/agda-9999/dist/build/autogen/Paths_Agda.hs
+ # containing:
+ # datadir = "/usr/share/agda-9999/ghc-7.6.1"
+ # it fails without the --css option like:
+ # /usr/share/agda-9999/ghc-7.4.1/Agda.css: copyFile: does not exist
+ local cssdir=$(egrep 'datadir *=' "${S}/dist/build/autogen/Paths_lib.hs" | sed -e 's@datadir = \(.*\)@\1@')
+ agda --html -i "${S}" -i "${S}"/src --css="${cssdir}/Agda.css" "${S}"/README.agda || die
+}
+
+src_test() {
+ agda -i "${S}" -i "${S}"/src README.agda || die
+}
+
+src_install() {
+ insinto usr/share/agda-stdlib
+ export INSOPTIONS=--preserve-timestamps
+ doins -r src/*
+ dodoc -r html/*
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+}