| 1 |
|
# Copyright 1999-2023 Gentoo Authors
|
|
1 |
# Copyright 1999-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
|
# ebuild generated by hackport 0.7.1.1.9999
|
| 7 |
|
#hackport: flags: +semigroupoids
|
|
6 |
# ebuild generated by hackport 0.8.5.1.9999
|
|
7 |
|
|
8 |
CABAL_HACKAGE_REVISION=2
|
| 8 |
9 |
|
| 9 |
10 |
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
| 10 |
|
CABAL_HACKAGE_REVISION="1"
|
| 11 |
11 |
inherit haskell-cabal
|
| 12 |
12 |
|
| 13 |
13 |
DESCRIPTION="Align and Zip type-classes from the common Semialign ancestor"
|
| 14 |
14 |
HOMEPAGE="https://github.com/haskellari/these"
|
| 15 |
|
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz
|
| 16 |
|
https://hackage.haskell.org/package/${P}/revision/${CABAL_HACKAGE_REVISION}.cabal -> ${PF}.cabal"
|
| 17 |
15 |
|
| 18 |
16 |
LICENSE="BSD"
|
| 19 |
17 |
SLOT="0/${PV}"
|
| 20 |
18 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
|
|
19 |
IUSE="+semigroupoids"
|
| 21 |
20 |
|
| 22 |
|
RDEPEND=">=dev-haskell/hashable-1.2.7.0:=[profile?] <dev-haskell/hashable-1.5:=[profile?]
|
| 23 |
|
>=dev-haskell/indexed-traversable-0.1.1:=[profile?] <dev-haskell/indexed-traversable-0.2:=[profile?]
|
| 24 |
|
>=dev-haskell/indexed-traversable-instances-0.1:=[profile?] <dev-haskell/indexed-traversable-instances-0.2:=[profile?]
|
| 25 |
|
>=dev-haskell/semigroupoids-5.3.2:=[profile?] <dev-haskell/semigroupoids-5.4:=[profile?]
|
| 26 |
|
>=dev-haskell/tagged-0.8.6:=[profile?] <dev-haskell/tagged-0.9:=[profile?]
|
| 27 |
|
>=dev-haskell/these-1.1.1.1:=[profile?] <dev-haskell/these-1.2:=[profile?]
|
|
21 |
RDEPEND=">=dev-haskell/hashable-1.4.4.0:=[profile?] <dev-haskell/hashable-1.6:=[profile?]
|
|
22 |
>=dev-haskell/indexed-traversable-0.1.4:=[profile?] <dev-haskell/indexed-traversable-0.2:=[profile?]
|
|
23 |
>=dev-haskell/indexed-traversable-instances-0.1.2:=[profile?]
|
|
24 |
<dev-haskell/indexed-traversable-instances-0.2:=[profile?]
|
|
25 |
>=dev-haskell/tagged-0.8.8:=[profile?] <dev-haskell/tagged-0.9:=[profile?]
|
|
26 |
>=dev-haskell/these-1.2.1:=[profile?] <dev-haskell/these-1.3:=[profile?]
|
| 28 |
27 |
>=dev-haskell/unordered-containers-0.2.8.0:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
|
| 29 |
|
>=dev-haskell/vector-0.12.0.2:=[profile?] <dev-haskell/vector-0.13:=[profile?]
|
| 30 |
|
>=dev-lang/ghc-8.4.3:=
|
|
28 |
>=dev-haskell/vector-0.13.0.0:=[profile?] <dev-haskell/vector-0.14:=[profile?]
|
|
29 |
>=dev-lang/ghc-9.0.2:=
|
|
30 |
semigroupoids? ( >=dev-haskell/semigroupoids-6.0.1:=[profile?] <dev-haskell/semigroupoids-6.1:=[profile?] )
|
| 31 |
31 |
"
|
| 32 |
32 |
DEPEND="${RDEPEND}
|
| 33 |
|
>=dev-haskell/cabal-2.2.0.1
|
|
33 |
>=dev-haskell/cabal-3.4.1.0
|
| 34 |
34 |
"
|
| 35 |
|
BDEPEND="app-text/dos2unix"
|
| 36 |
|
|
| 37 |
|
src_prepare() {
|
| 38 |
|
# pull revised cabal from upstream
|
| 39 |
|
cp "${DISTDIR}/${PF}.cabal" "${S}/${PN}.cabal" || die
|
| 40 |
|
|
| 41 |
|
# Convert to unix line endings
|
| 42 |
|
dos2unix "${S}/${PN}.cabal" || die
|
| 43 |
|
|
| 44 |
|
# Apply patches *after* pulling the revised cabal
|
| 45 |
|
default
|
| 46 |
|
}
|
| 47 |
35 |
|
| 48 |
36 |
src_configure() {
|
| 49 |
37 |
haskell-cabal_src_configure \
|
| 50 |
|
--flag=semigroupoids
|
|
38 |
$(cabal_flag semigroupoids semigroupoids)
|
| 51 |
39 |
}
|