From b697251a6537ec367b6fe2f854333e27bd44ebfe Mon Sep 17 00:00:00 2001 From: hololeap Date: Fri, 23 Jan 2026 23:22:40 -0700 Subject: [PATCH] dev-haskell/isocline: refresh ebuild Signed-off-by: hololeap Signed-off-by: Mark Wright --- .../isocline-1.0.9-add-examples-flag.patch | 26 +++++++++++++++++++ ...-1.0.9.ebuild => isocline-1.0.9-r1.ebuild} | 22 +++++++++++++--- 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 dev-haskell/isocline/files/isocline-1.0.9-add-examples-flag.patch rename dev-haskell/isocline/{isocline-1.0.9.ebuild => isocline-1.0.9-r1.ebuild} (54%) diff --git a/dev-haskell/isocline/files/isocline-1.0.9-add-examples-flag.patch b/dev-haskell/isocline/files/isocline-1.0.9-add-examples-flag.patch new file mode 100644 index 0000000000000..1619fbca9bde6 --- /dev/null +++ b/dev-haskell/isocline/files/isocline-1.0.9-add-examples-flag.patch @@ -0,0 +1,26 @@ +From 7ee00f85833370913ba38e746f93a4891a928494 Mon Sep 17 00:00:00 2001 +From: hololeap +Date: Sat, 2 Aug 2025 08:33:00 -0600 +Subject: [PATCH 1/1] Add examples flag (disabled by default) + +Signed-off-by: hololeap +--- 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 + diff --git a/dev-haskell/isocline/isocline-1.0.9.ebuild b/dev-haskell/isocline/isocline-1.0.9-r1.ebuild similarity index 54% rename from dev-haskell/isocline/isocline-1.0.9.ebuild rename to dev-haskell/isocline/isocline-1.0.9-r1.ebuild index c75b7f1f68084..f43b71e20931d 100644 --- a/dev-haskell/isocline/isocline-1.0.9.ebuild +++ b/dev-haskell/isocline/isocline-1.0.9-r1.ebuild @@ -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) +}