diff options
author | Mark Wright <gienah@gentoo.org> | 2013-04-02 04:13:22 +0000 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2013-04-02 04:13:22 +0000 |
commit | 5b2d3cb2ca6c540593d4bce9f800e37c1ca8b3f3 (patch) | |
tree | aad53b8a0c06edcefb560ed9c8f49f390be620c2 /dev-haskell/alex | |
parent | Mask USE=udisks for <gvfs-1.14, thanks to Samuli Suominen (bug #463792). (diff) | |
download | gentoo-2-5b2d3cb2ca6c540593d4bce9f800e37c1ca8b3f3.tar.gz gentoo-2-5b2d3cb2ca6c540593d4bce9f800e37c1ca8b3f3.tar.bz2 gentoo-2-5b2d3cb2ca6c540593d4bce9f800e37c1ca8b3f3.zip |
Bump alex to 3.0.5
(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
Diffstat (limited to 'dev-haskell/alex')
-rw-r--r-- | dev-haskell/alex/ChangeLog | 9 | ||||
-rw-r--r-- | dev-haskell/alex/alex-3.0.5.ebuild | 70 |
2 files changed, 77 insertions, 2 deletions
diff --git a/dev-haskell/alex/ChangeLog b/dev-haskell/alex/ChangeLog index a865484a03ec..e0f738a6779a 100644 --- a/dev-haskell/alex/ChangeLog +++ b/dev-haskell/alex/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-haskell/alex -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/ChangeLog,v 1.60 2012/09/12 14:51:30 qnikst Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/ChangeLog,v 1.61 2013/04/02 04:13:22 gienah Exp $ + +*alex-3.0.5 (02 Apr 2013) + + 02 Apr 2013; Mark Wright <gienah@gentoo.org> +alex-3.0.5.ebuild: + Bump alex to 3.0.5 12 Sep 2012; Alexander Vershilov <qnikst@gentoo.org> alex-2.3.5.ebuild, alex-3.0.2.ebuild: diff --git a/dev-haskell/alex/alex-3.0.5.ebuild b/dev-haskell/alex/alex-3.0.5.ebuild new file mode 100644 index 000000000000..1002ea0771a6 --- /dev/null +++ b/dev-haskell/alex/alex-3.0.5.ebuild @@ -0,0 +1,70 @@ +# 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.0.5.ebuild,v 1.1 2013/04/02 04:13:22 gienah Exp $ + +EAPI=5 + +# ebuild generated by hackport 0.3.2.9999 + +CABAL_FEATURES="bin test-suite" +inherit autotools eutils 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() { + cabal_chdeps \ + 'build-depends: process' 'build-depends: process, base' + + for f in Scan Parser; do + rm "${S}/src/$f."* + mv "${S}/dist/build/alex/alex-tmp/$f.hs" "${S}"/src/ + done + + if use doc; then + cd "${S}/doc/" + eautoreconf || die "eautoreconf for docs failed" + fi +} + +src_configure() { + haskell-cabal_src_configure + + if use doc; then + cd "${S}/doc/" + econf || die "econf for docs failed" + fi +} + +src_compile() { + cabal_src_compile + + if use doc; then + emake -C "${S}/doc/" -j1 || die "emake for docs failed" + fi +} + +src_install() { + cabal_src_install + + if use doc; then + doman "${S}/doc/alex.1" + dohtml -r "${S}/doc/alex/" + fi + dodoc README +} |