diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2016-11-05 22:53:53 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2016-11-05 23:23:00 +0000 |
commit | 14b16c1e7cc1305e180d4ba364aeb20f8ee5dc39 (patch) | |
tree | a42298018f5a7cd6c18597e043aecf2842690d40 /dev-haskell | |
parent | dev-games/goatee: bump up to 0.3.1.2 (diff) | |
download | gentoo-14b16c1e7cc1305e180d4ba364aeb20f8ee5dc39.tar.gz gentoo-14b16c1e7cc1305e180d4ba364aeb20f8ee5dc39.tar.bz2 gentoo-14b16c1e7cc1305e180d4ba364aeb20f8ee5dc39.zip |
dev-haskell/alex: bump up to 3.2.1
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-haskell')
-rw-r--r-- | dev-haskell/alex/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/alex/alex-3.2.1.ebuild | 84 |
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-haskell/alex/Manifest b/dev-haskell/alex/Manifest index f55cac656044..4df179ebb90a 100644 --- a/dev-haskell/alex/Manifest +++ b/dev-haskell/alex/Manifest @@ -1,2 +1,3 @@ DIST alex-3.1.3.tar.gz 99868 SHA256 8d41a6e72a016155f00c846f7146ab4b27fe9640668a4b592d6a9b856f970a92 SHA512 f09f720627b9f2cae5d9d3a99488c2249e82c9310f0a436bccbd5238bd3215fae287706ee6f7530533c801348bdbfebc9fd54cafc15a75d528462b2ee987eb3c WHIRLPOOL 8bdaaa8ee0e4f431603f2e299a83b3d0c30b46bfe19863a04c487687afe377ec5df34ba411c3669412cc406e30ab4e176afad51491ea1612bd19ab620a99f1f1 DIST alex-3.1.7.tar.gz 103624 SHA256 89a1a13da6ccbeb006488d9574382e891cf7c0567752b330cc8616d748bf28d1 SHA512 0c4e87011617d8f8ad7cdf32b91e3ecc65ad66ea378c8086de8cbeb7ae3b37df478fb834e3bc453e3448fcae9d03b19ce9844bba35ad66a3cdf6e912790fe0a1 WHIRLPOOL d8f0a87afab475805fc56f6c2cc35c786c9a8431cdcf93b00677546e1c2e895e3828d100559dbd693a501dcc30d0c62d89132d7d35ba6a8ea80e97133afa18e2 +DIST alex-3.2.1.tar.gz 111167 SHA256 a4e7f7ec729f4fae5a5c778bc48421a90acf65c7278f6970cf123fb3b6230e6c SHA512 97e2e1677efcde5ec04a393f8b768f97a291ff63a3411cc0a0aef18b75e6825307d22d9c379eb7775dde519ebf60378e07c9181ea1a8bf9ea2ef631d7071c2e7 WHIRLPOOL 8ba434cb87f6bd162bee526ee797e58e78b95ec94897be012aada18e127751809c373bd277c63333bb8c264f7f56fdc471a87c1dcfe7a359f0b18b65215d9652 diff --git a/dev-haskell/alex/alex-3.2.1.ebuild b/dev-haskell/alex/alex-3.2.1.ebuild new file mode 100644 index 000000000000..9f163a2d5013 --- /dev/null +++ b/dev-haskell/alex/alex-3.2.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +# ebuild generated by hackport 0.5.9999 +#hackport: flags: +small_base + +CABAL_FEATURES="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=">=dev-haskell/quickcheck-2:2= + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + doc? ( ~app-text/docbook-xml-dtd-4.2 + app-text/docbook-xsl-stylesheets + >=dev-libs/libxslt-1.1.2 ) +" + +RESTRICT=test # fails tests + +src_prepare() { + default + + # 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 \ + --flag=small_base + + if use doc; then + cd "${S}/doc/" + econf + fi +} + +src_compile() { + haskell-cabal_src_compile + + if use doc; then + emake -C "${S}/doc/" -j1 + fi +} + +src_test() { + # workaround https://github.com/haskell/cabal/issues/2398 + emake -k -C tests all || die +} + +src_install() { + haskell-cabal_src_install + + if use doc; then + doman "${S}/doc/alex.1" + dohtml -r "${S}/doc/alex/" + fi +} |