summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Vershilov <qnikst@gentoo.org>2013-12-25 22:47:52 +0000
committerAlexander Vershilov <qnikst@gentoo.org>2013-12-25 22:47:52 +0000
commita928f23e84575c7c30a0151f91d535af1eed6601 (patch)
tree7e51e006c3e3b50039d6858f892feaf2a983050d /dev-haskell
parentVersion bump. (diff)
downloadgentoo-2-a928f23e84575c7c30a0151f91d535af1eed6601.tar.gz
gentoo-2-a928f23e84575c7c30a0151f91d535af1eed6601.tar.bz2
gentoo-2-a928f23e84575c7c30a0151f91d535af1eed6601.zip
dev-haskell/alex: bump up to 3.1.3
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xEAD50D64D8D3571A!)
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/alex/ChangeLog7
-rw-r--r--dev-haskell/alex/alex-3.1.3.ebuild73
2 files changed, 79 insertions, 1 deletions
diff --git a/dev-haskell/alex/ChangeLog b/dev-haskell/alex/ChangeLog
index 32ccfb5c0a44..08c14c1f4748 100644
--- a/dev-haskell/alex/ChangeLog
+++ b/dev-haskell/alex/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-haskell/alex
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/ChangeLog,v 1.71 2013/11/14 18:12:08 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/ChangeLog,v 1.72 2013/12/25 22:47:52 qnikst Exp $
+
+*alex-3.1.3 (25 Dec 2013)
+
+ 25 Dec 2013; Alexander Vershilov <qnikst@gentoo.org> +alex-3.1.3.ebuild:
+ dev-haskell/alex: bump up to 3.1.3
*alex-3.1.2 (14 Nov 2013)
diff --git a/dev-haskell/alex/alex-3.1.3.ebuild b/dev-haskell/alex/alex-3.1.3.ebuild
new file mode 100644
index 000000000000..c1c2a810fdc5
--- /dev/null
+++ b/dev-haskell/alex/alex-3.1.3.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/alex-3.1.3.ebuild,v 1.1 2013/12/25 22:47:52 qnikst Exp $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.4.9999
+
+CABAL_FEATURES="bin test-suite"
+inherit autotools haskell-cabal
+
+DESCRIPTION="Alex is a tool for generating lexical analysers in Haskell"
+HOMEPAGE="http://www.haskell.org/alex/"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ >=dev-haskell/quickcheck-2
+ >=dev-lang/ghc-6.10.4
+ doc? ( ~app-text/docbook-xml-dtd-4.2
+ app-text/docbook-xsl-stylesheets
+ >=dev-libs/libxslt-1.1.2 )"
+
+src_prepare() {
+ # drop depend on itself and happy, otherwise cabal tries to regenerate it
+ rm src/{Scan.x,Parser.y} || die
+
+ for f in Scan Parser; do
+ mv "${S}/dist/build/alex/alex-tmp/$f.hs" "${S}"/src/ || die
+ done
+
+ if use doc; then
+ cd "${S}/doc/"
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ # make sure we don't accidentally use those
+ # installed in system
+ haskell-cabal_src_configure \
+ --with-alex=false \
+ --with-happy=false
+
+ if use doc; then
+ cd "${S}/doc/"
+ econf
+ fi
+}
+
+src_compile() {
+ cabal_src_compile
+
+ if use doc; then
+ emake -C "${S}/doc/" -j1
+ fi
+}
+
+src_install() {
+ cabal_src_install
+
+ if use doc; then
+ doman "${S}/doc/alex.1"
+ dohtml -r "${S}/doc/alex/"
+ fi
+ dodoc README
+}