PORTNAME=	ghcup
DISTVERSION=	0.1.50.2
CATEGORIES=	devel haskell

MAINTAINER=	tiga@FreeBSD.org
COMMENT=	GHC toolchain installer
WWW=		https://github.com/haskell/ghcup-hs

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cabal libarchive pkgconfig

USE_CABAL=	Cabal-3.14.2.0 \
		Cabal-syntax-3.14.2.0 \
		OneTuple-0.4.2.1 \
		QuickCheck-2.16.0.0 \
		StateVar-1.2.2 \
		aeson-2.2.3.0_4 \
		aeson-pretty-0.8.10 \
		alex-3.5.4.0 \
		ansi-terminal-1.1.5 \
		ansi-terminal-types-1.1.3 \
		assoc-1.1.1_2 \
		async-2.2.6 \
		atomic-counter-0.1.2.4 \
		attoparsec-0.14.4_6 \
		attoparsec-aeson-2.2.2.0 \
		base-compat-0.15.0 \
		base-orphans-0.9.4 \
		base16-bytestring-1.0.2.0_1 \
		bifunctors-5.6.3_1 \
		bimap-0.5.0 \
		bindings-DSL-1.0.25 \
		bitvec-1.1.5.0_3 \
		blaze-builder-0.4.4.1 \
		brick-2.7_1 \
		bz2-1.0.1.2 \
		bzlib-conduit-0.3.0.4 \
		c2hs-0.28.8_3 \
		case-insensitive-1.2.1.0 \
		casing-0.1.4.1_1 \
		cereal-0.5.8.3 \
		character-ps-0.1 \
		chs-cabal-1.0.0.0 \
		chs-deps-0.1.0.1 \
		cmdargs-0.10.22 \
		colour-2.3.6 \
		comonad-5.0.10 \
		composition-prelude-3.0.1.0 \
		conduit-1.3.6.1 \
		conduit-extra-1.3.8_1 \
		conduit-zstd-0.0.2.0 \
		config-ini-0.2.7.0_1 \
		contravariant-1.5.6 \
		cpphs-1.20.10 \
		cryptohash-sha256-0.11.102.1_6 \
		data-clist-0.2_1 \
		data-default-0.8.0.2 \
		data-default-class-0.2.0.0 \
		data-fix-0.3.4_2 \
		digest-0.0.2.1 \
		directory-ospath-streaming-0.3_1 \
		disk-free-space-0.1.0.1_3 \
		distributive-0.6.3 \
		dlist-1.0_2 \
		file-io-0.1.6 \
		file-uri-0.1.0.0_3 \
		free-5.2_8 \
		generically-0.1.1_5 \
		happy-2.2 \
		happy-lib-2.2 \
		hashable-1.5.1.0 \
		hsc2hs-0.68.10_5 \
		indexed-profunctors-0.1.1.1 \
		indexed-traversable-0.1.4_1 \
		indexed-traversable-instances-0.1.2_1 \
		integer-conversion-0.1.1_2 \
		integer-logarithms-1.0.5 \
		language-c-0.10.1 \
		libarchive-3.0.5.0 \
		libyaml-0.1.4 \
		libyaml-clib-0.2.5 \
		megaparsec-9.7.0_1 \
		microlens-0.4.13.1 \
		microlens-mtl-0.2.1.0 \
		microlens-th-0.4.3.17 \
		monad-control-1.0.3.1 \
		mono-traversable-1.0.21.0 \
		mtl-compat-0.2.2 \
		network-3.2.8.0 \
		network-uri-2.6.4.2_1 \
		optics-0.4.2.1_1 \
		optics-core-0.4.1.1_1 \
		optics-extra-0.4.2.1_4 \
		optics-th-0.4.1_10 \
		optparse-applicative-0.18.1.0_1 \
		os-release-1.0.2.1 \
		parser-combinators-1.3.1 \
		polyparse-1.13.1 \
		pretty-terminal-0.1.0.0_1 \
		prettyprinter-1.7.1 \
		prettyprinter-ansi-terminal-1.1.3 \
		primitive-0.9.1.0_1 \
		profunctors-5.6.3 \
		random-1.3.1 \
		recursion-schemes-5.2.3_1 \
		regex-base-0.94.0.3 \
		regex-posix-0.96.0.2 \
		resourcet-1.3.0 \
		retry-0.9.3.1 \
		safe-0.3.21_1 \
		safe-exceptions-0.1.7.4_1 \
		scientific-0.3.8.1 \
		semialign-1.3.1_2 \
		semigroupoids-6.0.2_1 \
		split-0.2.5 \
		splitmix-0.1.3.2 \
		streaming-commons-0.2.3.1 \
		strict-0.5.1_1 \
		strict-base-0.4.0.0_1 \
		tagged-0.8.10_1 \
		tagsoup-0.14.8 \
		tar-0.6.4.0_4 \
		tasty-1.5.3_2 \
		temporary-1.3 \
		terminal-size-0.3.4_1 \
		text-iso8601-0.1.1_2 \
		text-short-0.1.6.1 \
		text-zipper-0.13 \
		th-abstraction-0.7.2.0 \
		th-compat-0.1.7 \
		th-lift-0.8.7 \
		th-lift-instances-0.1.20 \
		these-1.2.1_2 \
		time-compat-1.9.8 \
		transformers-base-0.4.6 \
		transformers-compat-0.7.2 \
		typed-process-0.2.13.0 \
		unix-bytestring-0.4.0.3 \
		unix-compat-0.7.4.1 \
		unliftio-core-0.2.1.0_4 \
		unordered-containers-0.2.21_2 \
		uri-bytestring-0.4.0.1 \
		utf8-string-1.0.2 \
		uuid-types-1.0.6_3 \
		variant-1.0.1 \
		vector-0.13.2.0_2 \
		vector-algorithms-0.9.1.0 \
		vector-stream-0.1.0.1_4 \
		versions-6.0.8 \
		vty-6.2 \
		vty-crossplatform-0.5.0.0 \
		vty-unix-0.2.0.0 \
		witherable-0.5_2 \
		word-wrap-0.5 \
		word8-0.1.3 \
		xz-5.6.3_2 \
		yaml-0.11.11.2_2 \
		zip-2.1.0_3 \
		zlib-0.7.1.1 \
		zstd-0.1.3.0

CABAL_PROJECT=		remove
CABAL_EXECUTABLES=	ghcup

CABAL_REVISION=		1
CABAL_EXECUTABLES=	ghcup

.include <bsd.port.mk>
