diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2016-01-16 17:16:02 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2016-01-16 19:42:39 +0000 |
commit | 21d0625464e10f60797c360fb6e55a538f028232 (patch) | |
tree | fce0117a36c1e6f4db0a633b43337fd3cb99b036 /dev-haskell/alex | |
parent | dev-haskell/adjunctions: bump up to 4.2.2 (diff) | |
download | gentoo-21d0625464e10f60797c360fb6e55a538f028232.tar.gz gentoo-21d0625464e10f60797c360fb6e55a538f028232.tar.bz2 gentoo-21d0625464e10f60797c360fb6e55a538f028232.zip |
dev-haskell/alex: bump up to 3.1.7
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-haskell/alex')
-rw-r--r-- | dev-haskell/alex/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/alex/alex-3.1.7.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-haskell/alex/Manifest b/dev-haskell/alex/Manifest index 539b86d0352d..2a76f5a97c0f 100644 --- a/dev-haskell/alex/Manifest +++ b/dev-haskell/alex/Manifest @@ -2,3 +2,4 @@ DIST alex-3.0.5.tar.gz 100004 SHA256 c3326417a0538e355e5ad1871ab931b9c8145391e8b DIST alex-3.1.2.tar.gz 101215 SHA256 1d14eb255c44f440f04876c496ed5db24aba8d05b45d665463633afe92361e6d SHA512 21874caf41412d926866b0450db9e29984d1df076d277a2325b3d0b80114e039462ab766b0964177f98d9b625635e219489271ab2853e39f1fef3e7d6caa8660 WHIRLPOOL f38c2381d5587bb11754011c31104477a4fbc577f9fd469eab9b255e74a0efe093a25538296093bdf4a0369e545402865fff8c92f20ec3982d83113c761a46ce DIST alex-3.1.3.tar.gz 99868 SHA256 8d41a6e72a016155f00c846f7146ab4b27fe9640668a4b592d6a9b856f970a92 SHA512 f09f720627b9f2cae5d9d3a99488c2249e82c9310f0a436bccbd5238bd3215fae287706ee6f7530533c801348bdbfebc9fd54cafc15a75d528462b2ee987eb3c WHIRLPOOL 8bdaaa8ee0e4f431603f2e299a83b3d0c30b46bfe19863a04c487687afe377ec5df34ba411c3669412cc406e30ab4e176afad51491ea1612bd19ab620a99f1f1 DIST alex-3.1.4.tar.gz 101827 SHA256 d64e4eccd953c62795ed566a6de5f3d150b653e05872ff697b3d9dbc961da19f SHA512 880a6a97b62701712f28c9dc649d90c50bfedecd2c52d7a3781b2f1672826cb2b7a8872528acbae16448494f07743a4c2b4a80e4a9d8de049077fdf4f4bd75d0 WHIRLPOOL c0dd2e8f7925da7ee2ac4893a35330bf0a96561204adf161c0ed34d8616fea220eb86e4645f091af2f94b9952b00262ba84c7c32367a3ec4847645b8fae74aec +DIST alex-3.1.7.tar.gz 103624 SHA256 89a1a13da6ccbeb006488d9574382e891cf7c0567752b330cc8616d748bf28d1 SHA512 0c4e87011617d8f8ad7cdf32b91e3ecc65ad66ea378c8086de8cbeb7ae3b37df478fb834e3bc453e3448fcae9d03b19ce9844bba35ad66a3cdf6e912790fe0a1 WHIRLPOOL d8f0a87afab475805fc56f6c2cc35c786c9a8431cdcf93b00677546e1c2e895e3828d100559dbd693a501dcc30d0c62d89132d7d35ba6a8ea80e97133afa18e2 diff --git a/dev-haskell/alex/alex-3.1.7.ebuild b/dev-haskell/alex/alex-3.1.7.ebuild new file mode 100644 index 000000000000..655ae146408a --- /dev/null +++ b/dev-haskell/alex/alex-3.1.7.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.4.6.9999 +#hackport: flags: +small_base + +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=">=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 ) +" + +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 \ + --flag=small_base + + 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_test() { + # workaround https://github.com/haskell/cabal/issues/2398 + emake -k -C tests all || die +} + +src_install() { + cabal_src_install + + if use doc; then + doman "${S}/doc/alex.1" + dohtml -r "${S}/doc/alex/" + fi + dodoc README +} |