summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2012-01-23 13:52:38 +0000
committerMark Wright <gienah@gentoo.org>2012-01-23 13:52:38 +0000
commit90ce16c72926f33e4ec82fc8d2440736be6f9d91 (patch)
tree3e52f2c1f81a0cbae5a7ba8634c1aefffcb745f3 /sci-mathematics
parentVersion bump to fix regressions in last version, fixes bugs 399233, 399117, 3... (diff)
downloadgentoo-2-90ce16c72926f33e4ec82fc8d2440736be6f9d91.tar.gz
gentoo-2-90ce16c72926f33e4ec82fc8d2440736be6f9d91.tar.bz2
gentoo-2-90ce16c72926f33e4ec82fc8d2440736be6f9d91.zip
Bump agda to 2.3.0 bug #349460
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/agda/ChangeLog10
-rw-r--r--sci-mathematics/agda/agda-2.3.0.ebuild70
-rw-r--r--sci-mathematics/agda/files/agda-2.3.0-emacs.patch27
-rw-r--r--sci-mathematics/agda/metadata.xml3
4 files changed, 108 insertions, 2 deletions
diff --git a/sci-mathematics/agda/ChangeLog b/sci-mathematics/agda/ChangeLog
index 747aac9bcf7f..0cbe0345ff99 100644
--- a/sci-mathematics/agda/ChangeLog
+++ b/sci-mathematics/agda/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-mathematics/agda
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda/ChangeLog,v 1.10 2010/11/20 13:45:12 kolmodin Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda/ChangeLog,v 1.11 2012/01/23 13:52:38 gienah Exp $
+
+*agda-2.3.0 (23 Jan 2012)
+
+ 23 Jan 2012; Mark Wright <gienah@gentoo.org> +agda-2.3.0.ebuild,
+ +files/agda-2.3.0-emacs.patch, metadata.xml:
+ Bump agda to 2.3.0 bug #349460
*agda-2.2.6-r1 (20 Nov 2010)
diff --git a/sci-mathematics/agda/agda-2.3.0.ebuild b/sci-mathematics/agda/agda-2.3.0.ebuild
new file mode 100644
index 000000000000..469ba891b76e
--- /dev/null
+++ b/sci-mathematics/agda/agda-2.3.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda/agda-2.3.0.ebuild,v 1.1 2012/01/23 13:52:38 gienah Exp $
+
+# ebuild generated by hackport 0.2.14
+
+EAPI="3"
+
+CABAL_FEATURES="lib"
+inherit haskell-cabal eutils elisp-common
+
+MY_PN="Agda"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A dependently typed functional programming language and proof assistant"
+HOMEPAGE="http://wiki.portal.chalmers.se/agda/"
+SRC_URI="http://hackage.haskell.org/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="epic"
+
+RDEPEND="<dev-haskell/binary-0.6
+ epic? ( dev-lang/epic )
+ =dev-haskell/hashable-1.1*
+ =dev-haskell/hashtables-1.0*
+ >=dev-haskell/haskeline-0.6.3.2
+ >=dev-haskell/haskell-src-exts-1.9.6
+ =dev-haskell/mtl-2.0*
+ =dev-haskell/quickcheck-2.4*
+ =dev-haskell/xhtml-3000.2*
+ <dev-haskell/zlib-0.6
+ >=dev-lang/ghc-6.10.4"
+DEPEND="${RDEPEND}
+ dev-haskell/alex
+ >=dev-haskell/cabal-1.8
+ dev-haskell/happy"
+
+SITEFILE="50${PN}2-gentoo.el"
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ sed -e 's@epic >= 0.1.13 && < 0.2@epic >= 0.1.13 \&\& < 0.10@' \
+ -i "${S}/${MY_PN}.cabal" || die "Could not loosen dependencies"
+ epatch "${FILESDIR}"/${P}-emacs.patch
+ cabal-mksetup
+}
+
+src_configure() {
+ cabal_src_configure $(cabal_flag epic)
+}
+
+src_install() {
+ haskell-cabal_src_install
+ elisp-install ${PN} src/data/emacs-mode/*.el \
+ || die "Failed to install emacs mode"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die "Failed to install elisp site file"
+}
+
+pkg_postinst() {
+ ghc-package_pkg_postinst
+ elisp-site-regen
+}
+
+pkg_postrm() {
+ ghc-package_pkg_prerm
+ elisp-site-regen
+}
diff --git a/sci-mathematics/agda/files/agda-2.3.0-emacs.patch b/sci-mathematics/agda/files/agda-2.3.0-emacs.patch
new file mode 100644
index 000000000000..bfe89a34f29a
--- /dev/null
+++ b/sci-mathematics/agda/files/agda-2.3.0-emacs.patch
@@ -0,0 +1,27 @@
+--- agda-9999-orig/Agda.cabal 2011-11-26 00:25:45.382153242 +1100
++++ agda-9999/Agda.cabal 2011-11-26 17:43:50.076056097 +1100
+@@ -40,7 +40,6 @@
+ doc/release-notes/*.txt
+ data-dir: src/data
+ data-files: Agda.css
+- emacs-mode/*.el
+ EpicInclude/AgdaPrelude.e
+ EpicInclude/stdagda.c
+ EpicInclude/stdagda.h
+@@ -323,16 +322,3 @@
+ if impl(ghc >= 7.2)
+ ghc-options: -fwarn-identities
+ ghc-prof-options: -auto-all
+-
+-executable agda-mode
+- hs-source-dirs: src/agda-mode
+- main-is: Main.hs
+- other-modules: Paths_Agda
+- if flag(use-locale)
+- build-depends: base >= 4.2 && < 4.5
+- else
+- build-depends: base == 4.1.*,
+- utf8-string == 0.3.*
+- build-depends: filepath >= 1.1 && < 1.3,
+- process >= 1.0.1.0 && < 1.2,
+- directory >= 1.0 && < 1.2
diff --git a/sci-mathematics/agda/metadata.xml b/sci-mathematics/agda/metadata.xml
index d60792b2fbcc..711ce7a4000b 100644
--- a/sci-mathematics/agda/metadata.xml
+++ b/sci-mathematics/agda/metadata.xml
@@ -9,4 +9,7 @@
theory á la Martin-Löf, extended with dependent record types,
inductive definitions, module structures and a class hierarchy mechanism.
</longdescription>
+<use>
+ <flag name='epic'>Add support for the epic compiler.</flag>
+</use>
</pkgmetadata>