apply-refact-0.9.0.0-r1.ebuild 1.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

# ebuild generated by hackport 0.6.7.9999

CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="Perform refactorings specified by the refact library"
HOMEPAGE="https://github.com/mpickering/apply-refact"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="executable"

PATCHES=( "${FILESDIR}/${P}-add-executable-flag.patch" )

RDEPEND=">=dev-haskell/extra-1.7.3:=[profile?]
	>=dev-haskell/filemanip-0.3.6.3:=[profile?] <dev-haskell/filemanip-0.4:=[profile?]
	>=dev-haskell/ghc-exactprint-0.6.3.3:=[profile?]
	>=dev-haskell/refact-0.2:=[profile?]
	>=dev-haskell/syb-0.7.1:=[profile?]
	>=dev-haskell/uniplate-1.6.13:=[profile?]
	>=dev-haskell/unix-compat-0.5.2:=[profile?]
	>=dev-lang/ghc-8.6.5:=
	executable? ( >=dev-haskell/optparse-applicative-0.15.1.0:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.4.0.1
	test? ( dev-haskell/silently
		dev-haskell/tasty
		dev-haskell/tasty-expected-failure
		dev-haskell/tasty-golden )
"
39
40
41
42
43
44
45
46
47
48
49
src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag executable executable)
}

pkg_postinst() {
	if use executable; then
		elog "The executable installed with this package (normally named 'refactor')"
		elog "has been renamed to 'apply-refactor' to help prevent name collisions."
	fi
}