mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-haskell/isocline: refresh ebuild
Signed-off-by: hololeap <hololeap@protonmail.com> Signed-off-by: Mark Wright <gienah@gentoo.org>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From 7ee00f85833370913ba38e746f93a4891a928494 Mon Sep 17 00:00:00 2001
|
||||
From: hololeap <hololeap@protonmail.com>
|
||||
Date: Sat, 2 Aug 2025 08:33:00 -0600
|
||||
Subject: [PATCH 1/1] Add examples flag (disabled by default)
|
||||
|
||||
Signed-off-by: hololeap <hololeap@protonmail.com>
|
||||
--- a/isocline.cabal
|
||||
+++ b/isocline.cabal
|
||||
@@ -71,7 +71,14 @@ library
|
||||
, text
|
||||
default-language: Haskell2010
|
||||
|
||||
+flag examples
|
||||
+ description: Build example executable
|
||||
+ manual: True
|
||||
+ default: False
|
||||
+
|
||||
executable example
|
||||
+ if !flag(examples)
|
||||
+ buildable: False
|
||||
main-is: Example.hs
|
||||
other-modules:
|
||||
Paths_isocline
|
||||
--
|
||||
2.49.1
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# ebuild generated by hackport 0.8.2.0.9999
|
||||
# ebuild generated by hackport 0.9.1.0.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
@@ -14,10 +14,24 @@ HOMEPAGE="https://github.com/daanx/isocline#readme"
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0.9-add-examples-flag.patch"
|
||||
)
|
||||
|
||||
CABAL_CHBINS=(
|
||||
'example' "${PN}-example"
|
||||
)
|
||||
|
||||
RDEPEND="dev-haskell/text:=[profile?]
|
||||
>=dev-lang/ghc-8.8.1:=
|
||||
>=dev-lang/ghc-9.0.2:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-3.0.0.0
|
||||
>=dev-haskell/cabal-3.4.1.0
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag examples examples)
|
||||
}
|
||||
Reference in New Issue
Block a user