diff options
author | Jack Todaro <solpeth@posteo.org> | 2020-07-31 07:19:53 +1000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-01 09:03:30 +0100 |
commit | f6772185d20890abc6f02cec182ff603f95a559b (patch) | |
tree | eeea90aa182aacb680b1ff669803ce7a10ebde96 /dev-haskell/alex | |
parent | dev-haskell/opengl: loosen dependency upper bounds (diff) | |
download | gentoo-f6772185d20890abc6f02cec182ff603f95a559b.tar.gz gentoo-f6772185d20890abc6f02cec182ff603f95a559b.tar.bz2 gentoo-f6772185d20890abc6f02cec182ff603f95a559b.zip |
dev-haskell/alex: bump up to 3.2.5
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jack Todaro <solpeth@posteo.org>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/alex')
-rw-r--r-- | dev-haskell/alex/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/alex/alex-3.2.5.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-haskell/alex/Manifest b/dev-haskell/alex/Manifest index c91ebc947b60..2b7c0b6ef25c 100644 --- a/dev-haskell/alex/Manifest +++ b/dev-haskell/alex/Manifest @@ -2,3 +2,4 @@ DIST alex-3.1.3.tar.gz 99868 BLAKE2B 9a7d03fed24dfec82584edc5043ee9cac1416490359 DIST alex-3.1.7.tar.gz 103624 BLAKE2B c7ca36113bf5951621906dffc47481e8e4a2cb2007773de7480b63379d648ca2b2b2c73d835eb981d1f46087a8adeec1887898e6d1c5205c8e1c7308bab7ec90 SHA512 0c4e87011617d8f8ad7cdf32b91e3ecc65ad66ea378c8086de8cbeb7ae3b37df478fb834e3bc453e3448fcae9d03b19ce9844bba35ad66a3cdf6e912790fe0a1 DIST alex-3.2.1.tar.gz 111167 BLAKE2B efad30da0e26303d08d74b762a83ad3ddc0ec8069942b0e5ae170e480dde6b65771f5cb4fedfd27e9379719c2eebbaef68d33328a87be49dc60a0e7b86861619 SHA512 97e2e1677efcde5ec04a393f8b768f97a291ff63a3411cc0a0aef18b75e6825307d22d9c379eb7775dde519ebf60378e07c9181ea1a8bf9ea2ef631d7071c2e7 DIST alex-3.2.4.tar.gz 110688 BLAKE2B 182f58317bcca6c72f54f63792e04a9108d9311e7f1dd8b7247f847fe577e0ba1297f442a4f533f5b55ee1f7963167d9818149807b46fb400818d163cc18a939 SHA512 e9e99caef4bc985aa37bd42488121f9b83c4f3026c9745ad12f50b5896e9f7c07f48a753c647c30ff16be804529d2478f8d90fa38e352f1d8861e610651c871a +DIST alex-3.2.5.tar.gz 108531 BLAKE2B 283f8f619f72e72da0786b1f8975b256d4aa0c075be849d50763e7d57201089e2e8c09a59df27f1ff21d90e9fead94e8466ddd63d61a6055fbfb4bb6e18161fe SHA512 5823fb066c5ec67256108cfc1550703b86881f319337922e7248fb33def374f0010c60605538a49cfaaa880b0f73ace9dba6d088c078f3c455c5d9adce2719c9 diff --git a/dev-haskell/alex/alex-3.2.5.ebuild b/dev-haskell/alex/alex-3.2.5.ebuild new file mode 100644 index 000000000000..7688f8c487bc --- /dev/null +++ b/dev-haskell/alex/alex-3.2.5.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.4.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="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc" + +RDEPEND=">=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() { + default + + 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() { + # 1. workaround Setup.hs deadlock: https://github.com/haskell/cabal/issues/2398 + # 2. use freshly built ALEX= binary and datadir path + alex_datadir="${S}"/data \ + emake -k -C tests all ALEX="${S}"/dist/build/alex/alex +} + +src_install() { + haskell-cabal_src_install + + if use doc; then + doman "${S}/doc/alex.1" + docinto html + dodoc -r "${S}/doc/alex/" + fi +} |