summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhololeap <hololeap@protonmail.com>2023-10-05 22:54:02 -0600
committerSam James <sam@gentoo.org>2023-10-23 04:09:32 +0100
commit42f5a64dd967b24177144f86d66a662af8100ae3 (patch)
tree515419284f607cd1e9a5a8c5da2ae07292505e5d /dev-haskell/doctest-driver-gen
parentdev-haskell/markdown-unlit: add 0.6.0 (diff)
downloadgentoo-42f5a64dd967b24177144f86d66a662af8100ae3.tar.gz
gentoo-42f5a64dd967b24177144f86d66a662af8100ae3.tar.bz2
gentoo-42f5a64dd967b24177144f86d66a662af8100ae3.zip
dev-haskell/doctest-driver-gen: new package, add 0.3.0.7
Signed-off-by: hololeap <hololeap@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-haskell/doctest-driver-gen')
-rw-r--r--dev-haskell/doctest-driver-gen/Manifest1
-rw-r--r--dev-haskell/doctest-driver-gen/doctest-driver-gen-0.3.0.7.ebuild40
-rw-r--r--dev-haskell/doctest-driver-gen/files/doctest-driver-gen-0.3.0.7-add-executable-flag.patch31
-rw-r--r--dev-haskell/doctest-driver-gen/metadata.xml15
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-haskell/doctest-driver-gen/Manifest b/dev-haskell/doctest-driver-gen/Manifest
new file mode 100644
index 000000000000..23203e5c86d1
--- /dev/null
+++ b/dev-haskell/doctest-driver-gen/Manifest
@@ -0,0 +1 @@
+DIST doctest-driver-gen-0.3.0.7.tar.gz 3299 BLAKE2B 74012e950328df902b6021496f554c418df797b2b08c01cc93f2b4bd182cb6f7dbc0afaf2c906fcbe2dbec5ee47210bc790e9be43a2835d3bc034d6f7f8209ce SHA512 892a713d7a3d22e1bc25b6722d74ae37be3db90c439f70a19baf2ef6f5dc6acd60359e101c222c1b736614a53fef0928399c6fa4e6e35deecf4994c6973954ca
diff --git a/dev-haskell/doctest-driver-gen/doctest-driver-gen-0.3.0.7.ebuild b/dev-haskell/doctest-driver-gen/doctest-driver-gen-0.3.0.7.ebuild
new file mode 100644
index 000000000000..4607b051369a
--- /dev/null
+++ b/dev-haskell/doctest-driver-gen/doctest-driver-gen-0.3.0.7.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ebuild generated by hackport 0.8.4.0.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Generate driver file for doctest's cabal integration"
+HOMEPAGE="https://github.com/Hexirp/doctest-driver-gen#readme"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="+executable"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.3.0.7-add-executable-flag.patch"
+)
+
+RDEPEND="
+ >=dev-lang/ghc-8.10.6:=
+"
+DEPEND="
+ ${RDEPEND}
+ >=dev-haskell/cabal-3.2.1.0
+ test? (
+ dev-haskell/doctest
+ )
+"
+
+src_configure() {
+ local config_flags=(
+ $(cabal_flag executable executable)
+ )
+
+ haskell-cabal_src_configure "${config_flags[@]}"
+}
diff --git a/dev-haskell/doctest-driver-gen/files/doctest-driver-gen-0.3.0.7-add-executable-flag.patch b/dev-haskell/doctest-driver-gen/files/doctest-driver-gen-0.3.0.7-add-executable-flag.patch
new file mode 100644
index 000000000000..b71afe410d91
--- /dev/null
+++ b/dev-haskell/doctest-driver-gen/files/doctest-driver-gen-0.3.0.7-add-executable-flag.patch
@@ -0,0 +1,31 @@
+From c1d00ee310adf30211150ad9a9444afb3b957889 Mon Sep 17 00:00:00 2001
+From: hololeap <hololeap@protonmail.com>
+Date: Thu, 5 Oct 2023 22:47:26 -0600
+Subject: [PATCH 1/1] Add executable flag
+
+Toggled on by default
+
+Signed-off-by: hololeap <hololeap@protonmail.com>
+---
+ doctest-driver-gen.cabal | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/doctest-driver-gen.cabal b/doctest-driver-gen.cabal
+index cbe5aff..d86d001 100644
+--- a/doctest-driver-gen.cabal
++++ b/doctest-driver-gen.cabal
+@@ -43,6 +43,11 @@ library
+ ghc-options: -Wall
+ default-language: Haskell2010
+
++flag executable
++ description: Build the doctest-driver-gen executable
++ default: True
++ manual: True
++
+ executable doctest-driver-gen
+ hs-source-dirs: app
+ main-is: Main.hs
+--
+2.41.0
+
diff --git a/dev-haskell/doctest-driver-gen/metadata.xml b/dev-haskell/doctest-driver-gen/metadata.xml
new file mode 100644
index 000000000000..8adc887f2bfb
--- /dev/null
+++ b/dev-haskell/doctest-driver-gen/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <use>
+ <flag name="executable">Build the doctest-driver-gen executable</flag>
+ </use>
+ <upstream>
+ <remote-id type="hackage">doctest-driver-gen</remote-id>
+ <remote-id type="github">Hexirp/doctest-driver-gen</remote-id>
+ </upstream>
+</pkgmetadata>