diff options
author | Jack Todaro <solpeth@posteo.org> | 2020-07-29 11:21:53 +1000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-01 08:59:45 +0100 |
commit | 7043e99b27f3b54f60293304d5ec79ab1a6e04cb (patch) | |
tree | 6fbc98644127796d67f60c2b6ca495b274945be0 /dev-haskell/transformers-compat | |
parent | dev-haskell/nats: bump up to 1.1.2 (diff) | |
download | gentoo-7043e99b27f3b54f60293304d5ec79ab1a6e04cb.tar.gz gentoo-7043e99b27f3b54f60293304d5ec79ab1a6e04cb.tar.bz2 gentoo-7043e99b27f3b54f60293304d5ec79ab1a6e04cb.zip |
dev-haskell/transformers-compat: bump up to 0.6.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/transformers-compat')
-rw-r--r-- | dev-haskell/transformers-compat/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/transformers-compat/transformers-compat-0.6.5.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-haskell/transformers-compat/Manifest b/dev-haskell/transformers-compat/Manifest index 0671d49dc5e3..6d23ac621250 100644 --- a/dev-haskell/transformers-compat/Manifest +++ b/dev-haskell/transformers-compat/Manifest @@ -2,3 +2,4 @@ DIST transformers-compat-0.1.1.1.tar.gz 5221 BLAKE2B b8c050fb67bfe43529619bc14b6 DIST transformers-compat-0.3.3.4.tar.gz 11143 BLAKE2B 3fd082d92945620acbe1cf043c73b9d22322581df782473a40b507260bd8c5eaaa6b475f9659863a2b922d4edff388d336946ff423cc9a99e934ec0a5a03d2ad SHA512 1f50ddeaec4ea2e17ec348194a6efcfab35c4b9d49f9eba9e70a0c1ebfdfd39387461c133fb99e6cdad234b7facae74fa73c99f604807d7f3ad7c31d0188d462 DIST transformers-compat-0.4.0.4.tar.gz 12048 BLAKE2B a72513e0a5b482067ee912e467c29166bdebef75bf70cee9661b6f8e3a649cbdca57cd159483f4187e520425b46a8dd600e7f5b409705f67e851d9d11ec91c24 SHA512 5850fa8ed63684b3dc37897c22d1d32d7412374dcd892e42db7ed975d493fdc8e216630735813ed00203f83dcd17722484a6ec182ccffb6fc8794b4b82b6c951 DIST transformers-compat-0.5.1.4.tar.gz 18574 BLAKE2B e08bbb9b6104a9e46b17478b156d4e5b9198ab9e93ecc1e0faec4402a8b403b19ee517bb81a1f4c0d8633ff6a74ec59470d6a27a3c3df947ee25ce11312a84a0 SHA512 7e4ff75cdae7afbf640b3ddbfc0a260be8bb3b06cdb1be803bfd7cdb333d289919164923ab4fcde4b270883548cce115643f908410ed394aec67efa389d5aeb2 +DIST transformers-compat-0.6.5.tar.gz 40421 BLAKE2B c3d4b55bef310f717cdf2069a4d8b58cc38ea037bbd982f21c11ddbfd3175689f681fed615f30f7026e826e90a0ee6bee51e7448ad2468a084ed00ad6311a643 SHA512 86ce6e81baf4e71cc4ac854066543a8777628ae67182e8059e582754608b279a053f7f98a539ec5cc07e1771d8173a6de6ebe5df4eee2b4c41278734774c3958 diff --git a/dev-haskell/transformers-compat/transformers-compat-0.6.5.ebuild b/dev-haskell/transformers-compat/transformers-compat-0.6.5.ebuild new file mode 100644 index 000000000000..5ac53b6cbadc --- /dev/null +++ b/dev-haskell/transformers-compat/transformers-compat-0.6.5.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.1.9999 +#hackport: flags: -two,+mtl,-generic-deriving" + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +# break circular dependencies: +# https://github.com/gentoo-haskell/gentoo-haskell/issues/810 +CABAL_FEATURES+=" nocabaldep" +inherit haskell-cabal + +DESCRIPTION="A small compatibility shim for dev-haskell/transformers" +HOMEPAGE="https://github.com/ekmett/transformers-compat/" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/fail-4.9:=[profile?] <dev-haskell/fail-4.10:=[profile?] + >=dev-haskell/mtl-2.1:=[profile?] + >=dev-haskell/transformers-0.3:=[profile?] + >=dev-lang/ghc-7.8.2:= +" +DEPEND="${RDEPEND}" + +src_configure() { + local tf3_arg=() + + if has_version '=dev-haskell/transformers-0.3*'; then + tf3_arg+=(--flag=three) + else + tf3_arg+=(--flag=-three) + fi + + local tf4_arg=() + + if has_version '=dev-haskell/transformers-0.4*'; then + tf4_arg+=(--flag=four) + else + tf4_arg+=(--flag=-four) + fi + + local tf5_arg=() + + if has_version '=dev-haskell/transformers-0.5*'; then + if has_version '>dev-haskell/transformers-0.5.3'; then + tf5_arg+=(--flag=-five) + else + tf5_arg+=(--flag=five) + fi + else + tf5_arg+=(--flag=-five) + fi + + haskell-cabal_src_configure \ + --flag=mtl \ + --flag=-two \ + ${tf3_arg[@]} \ + ${tf4_arg[@]} \ + ${tf5_arg[@]} +} |