Diff hackport-0.7.2.2 with a hackport-9999

/usr/portage/app-portage/hackport/hackport-9999.ebuild 2024-07-02 13:51:43.869851455 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
# ebuild generated by hackport 0.7.1.1.9999
7
#hackport: flags: +cabal-v1
6
# ebuild generated by hackport 0.8.4.0.9999
7
#hackport: flags: +cabal-v1,+gentoo-tests,+pedantic
8 8

  
9 9
CABAL_FEATURES="test-suite"
10
inherit haskell-cabal
10
EGIT_REPO_URI="https://github.com/gentoo-haskell/hackport.git"
11

  
12
inherit git-r3 haskell-cabal bash-completion-r1
11 13

  
12 14
DESCRIPTION="Hackage and Portage integration tool"
13
HOMEPAGE="https://hackage.haskell.org/package/hackport"
15
HOMEPAGE="https://github.com/gentoo-haskell/hackport#readme"
14 16

  
15 17
LICENSE="GPL-3+"
16 18
SLOT="0"
17
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
18

  
19
GHC_BOOTSTRAP_PACKAGES=(
20
	cabal-doctest
21
)
22

  
23
RDEPEND=">=dev-haskell/async-2.0:=
24
	>=dev-haskell/base16-bytestring-0.1.1:=
25
	>=dev-haskell/base64-bytestring-1.0:=
26
	>=dev-haskell/cryptohash-sha256-0.11:=
27
	>=dev-haskell/echo-0.1.3:=
28
	>=dev-haskell/ed25519-0.0:=
29
	>=dev-haskell/edit-distance-0.2.2:=
30
	dev-haskell/extensible-exceptions:=
31
	>=dev-haskell/hashable-1.0:=
32
	>=dev-haskell/http-4000.1.5:=
33
	>=dev-haskell/network-3.0:=
34
	>=dev-haskell/network-uri-2.6.0.2:=
35
	>=dev-haskell/parallel-3.2.1.0:=
19
KEYWORDS=""
20
IUSE="profile +threads"
21
REQUIRED_USE="profile? ( threads ) test? ( threads )"
22

  
23
RDEPEND="
24
	>=dev-haskell/async-2.0:=[profile?]
25
	>=dev-haskell/base16-bytestring-0.1.1:=[profile?]
26
	>=dev-haskell/base64-bytestring-1.0:=[profile?]
27
	>=dev-haskell/cryptohash-sha256-0.11:=[profile?]
28
	dev-haskell/dlist:=[profile?]
29
	>=dev-haskell/echo-0.1.3:=[profile?]
30
	>=dev-haskell/ed25519-0.0:=[profile?]
31
	>=dev-haskell/edit-distance-0.2.2:=[profile?]
32
	dev-haskell/extensible-exceptions:=[profile?]
33
	>=dev-haskell/hashable-1.0:=[profile?]
34
	>=dev-haskell/http-4000.1.5:=[profile?]
35
	dev-haskell/lifted-base:=[profile?]
36
	>=dev-haskell/lukko-0.1:=[profile?]
37
	dev-haskell/monad-control:=[profile?]
38
	>=dev-haskell/network-3.0:=[profile?]
39
	>=dev-haskell/network-uri-2.6.0.2:=[profile?]
40
	dev-haskell/optparse-applicative:=[profile?]
41
	>=dev-haskell/parallel-3.2.1.0:=[profile?]
42
	>=dev-haskell/parsec-3.1.13.0:=[profile?]
43
	dev-haskell/parser-combinators:=[profile?]
44
	dev-haskell/prettyprinter:=[profile?]
36 45
	dev-haskell/quickcheck:=
37
	>=dev-haskell/random-1:=
38
	>=dev-haskell/regex-base-0.94.0.0:=
39
	>=dev-haskell/regex-posix-0.96.0.0:=
40
	>=dev-haskell/resolv-0.1.1:=
41
	dev-haskell/split:=
42
	>=dev-haskell/stm-2.0:=
43
	>=dev-haskell/tar-0.5.0.3:=
44
	dev-haskell/xml:=
45
	>=dev-haskell/zlib-0.5.3:=
46
	>=dev-lang/ghc-8.4.3:= <dev-lang/ghc-9.1
46
	>=dev-haskell/random-1.2:=[profile?]
47
	>=dev-haskell/regex-base-0.94.0.0:=[profile?]
48
	>=dev-haskell/regex-posix-0.96.0.0:=[profile?]
49
	>=dev-haskell/resolv-0.1.1:=[profile?]
50
	>=dev-haskell/safe-exceptions-0.1.7.0:=[profile?]
51
	dev-haskell/split:=[profile?]
52
	>=dev-haskell/tar-0.5.0.3:=[profile?]
53
	>=dev-haskell/text-1.2.3.0:=[profile?]
54
	dev-haskell/xml:=[profile?]
55
	>=dev-haskell/zlib-0.5.3:=[profile?]
56
	>=dev-lang/ghc-8.10.6:=[profile?]
47 57
"
48 58
DEPEND="${RDEPEND}
49
	>=dev-haskell/cabal-2.2.0.1
50
	test? ( dev-haskell/base-compat
51
		dev-haskell/cabal-doctest
59
	>=dev-haskell/cabal-3.2.1.0
60
	test? (
61
		dev-haskell/base-compat
62
		>=dev-haskell/cabal-doctest-1.0
52 63
		>=dev-haskell/doctest-0.8
53 64
		dev-haskell/glob
54 65
		>=dev-haskell/hspec-2.0
55
		>=dev-haskell/quickcheck-2.0 )
56
"
57
RDEPEND+="
58
	dev-util/pkgcheck
66
		dev-haskell/hunit
67
		>=dev-haskell/quickcheck-2.0
68
	)
59 69
"
60 70

  
71
src_prepare() {
72
	haskell-cabal_src_prepare
73
	sed -e 's/^version:.*/&.9999/' -i ${PN}.cabal || die # just to distinguish from release install
74
}
75

  
61 76
src_configure() {
77
	if use test; then
78
		export GHC_BOOTSTRAP_PACKAGES=(
79
			cabal-doctest
80
		)
81
	fi
82

  
62 83
	haskell-cabal_src_configure \
63
		--flag=cabal-v1
84
		--flag=cabal-v1 \
85
		--flag=gentoo-tests \
86
		--flag=pedantic \
87
		$(cabal_flag profile profile) \
88
		$(cabal-flag threads threads)
64 89
}
65 90

  
66 91
src_install() {
67 92
	haskell-cabal_src_install
68 93
	doman man/hackport.1
94

  
95
	# We only install bash completion scripts currently
96
	newbashcomp "${FILESDIR}/${PN}.bash.completion" "${PN}"
69 97
}
Thank you!