diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-haskell/temporary | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-haskell/temporary')
| -rw-r--r-- | dev-haskell/temporary/Manifest | 1 | ||||
| -rw-r--r-- | dev-haskell/temporary/files/temporary-1.3-smp-flag.patch | 46 | ||||
| -rw-r--r-- | dev-haskell/temporary/metadata.xml | 9 | ||||
| -rw-r--r-- | dev-haskell/temporary/temporary-1.3-r1.ebuild | 44 | ||||
| -rw-r--r-- | dev-haskell/temporary/temporary-1.3.ebuild | 29 |
5 files changed, 129 insertions, 0 deletions
diff --git a/dev-haskell/temporary/Manifest b/dev-haskell/temporary/Manifest new file mode 100644 index 000000000000..7ab639b8eb2b --- /dev/null +++ b/dev-haskell/temporary/Manifest @@ -0,0 +1 @@ +DIST temporary-1.3.tar.gz 5686 BLAKE2B 7769c471a8fe3f2a73291b53633c9d4ec785bff9dfa93874f46bdac50b7e16a5fea918848645132593d2d0c0aeda2479777e04b1adf8fa501306bace89fdfdcd SHA512 e3078caf54da95c4efa9e9c936b35a98b62296ecce2242cd4e103605a9d29e8a9d6c7027dbf50d02b6a893bea558ea5b07dbb1df7c59bf26d86db76ccf112f25 diff --git a/dev-haskell/temporary/files/temporary-1.3-smp-flag.patch b/dev-haskell/temporary/files/temporary-1.3-smp-flag.patch new file mode 100644 index 000000000000..22832a87777a --- /dev/null +++ b/dev-haskell/temporary/files/temporary-1.3-smp-flag.patch @@ -0,0 +1,46 @@ +From 7f448b41589fccd3ac883c6fb3865f8dbedcb14d Mon Sep 17 00:00:00 2001 +From: hololeap <hololeap@users.noreply.github.com> +Date: Sun, 30 Oct 2022 12:45:29 -0600 +Bug: https://github.com/UnkindPartition/temporary/pull/15 +Subject: [PATCH] Add smp flag + +This flag will toggle the use of some `ghc-options` in the test suite. +It is set to `default: True`. + +This is needed for tests to run on some GHC builds which do not support +a threaded runtime. + +Reported-by: matoro <https://github.com/matoro> +Signed-off-by: hololeap <hololeap@users.noreply.github.com> +--- + temporary.cabal | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/temporary.cabal b/temporary.cabal +index 67163d1..ca54604 100644 +--- a/temporary.cabal ++++ b/temporary.cabal +@@ -15,6 +15,11 @@ source-repository head + type: git + location: git://github.com/feuerbach/temporary.git + ++flag smp ++ description: Use flags that depend on GHC supporting a multicore runtime (tests only) ++ manual: True ++ default: True ++ + Library + default-language: + Haskell2010 +@@ -37,7 +42,10 @@ test-suite test + tests + main-is: + test.hs +- ghc-options: -threaded -with-rtsopts=-N2 ++ if flag(smp) ++ ghc-options: -threaded -with-rtsopts=-N2 ++ else ++ ghc-options: -threaded + build-depends: + base >= 4.3 && < 5 + , directory diff --git a/dev-haskell/temporary/metadata.xml b/dev-haskell/temporary/metadata.xml new file mode 100644 index 000000000000..6fb61853d497 --- /dev/null +++ b/dev-haskell/temporary/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-haskell/temporary/temporary-1.3-r1.ebuild b/dev-haskell/temporary/temporary-1.3-r1.ebuild new file mode 100644 index 000000000000..604644669b27 --- /dev/null +++ b/dev-haskell/temporary/temporary-1.3-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.3.0 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit ghc-package haskell-cabal + +DESCRIPTION="Portable temporary file and directory support" +HOMEPAGE="https://github.com/feuerbach/temporary" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" + +PATCHES=( + "${FILESDIR}/${PN}-1.3-smp-flag.patch" +) + +RDEPEND=" + >=dev-haskell/random-1.1:=[profile?] + >=dev-lang/ghc-8.10.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-3.2.0.0 + test? ( + dev-haskell/base-compat + dev-haskell/tasty + dev-haskell/tasty-hunit + ) +" + +src_configure() { + if ghc-supports-smp; then + local smp_flag=smp + else + local smp_flag=-smp + fi + + haskell-cabal_src_configure \ + --flag="${smp_flag}" +} diff --git a/dev-haskell/temporary/temporary-1.3.ebuild b/dev-haskell/temporary/temporary-1.3.ebuild new file mode 100644 index 000000000000..5138c3633615 --- /dev/null +++ b/dev-haskell/temporary/temporary-1.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.6.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Portable temporary file and directory support for Windows and Unix" +HOMEPAGE="https://github.com/UnkindPartition/temporary" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/exceptions-0.6:=[profile?] + >=dev-haskell/random-1.1:=[profile?] + >=dev-lang/ghc-7.8.2:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.18.1.3 + test? ( dev-haskell/base-compat + dev-haskell/tasty + dev-haskell/tasty-hunit ) +" |
