summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-08-22 22:26:07 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-22 22:31:18 +0100
commita7e23ca02faac48c5e9458b3f4e12a0eadbfae1c (patch)
treecf8f4ce6ac6d2ab14696f8de8a1360f734295988 /dev-haskell/exact-pi
parentdev-haskell/numtype-dk: new package, a depend of arithmoi-0.11 (diff)
downloadgentoo-a7e23ca02faac48c5e9458b3f4e12a0eadbfae1c.tar.gz
gentoo-a7e23ca02faac48c5e9458b3f4e12a0eadbfae1c.tar.bz2
gentoo-a7e23ca02faac48c5e9458b3f4e12a0eadbfae1c.zip
dev-haskell/exact-pi: new package, a depend of arithmoi-0.11
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/exact-pi')
-rw-r--r--dev-haskell/exact-pi/Manifest1
-rw-r--r--dev-haskell/exact-pi/exact-pi-0.5.0.1.ebuild40
-rw-r--r--dev-haskell/exact-pi/metadata.xml12
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-haskell/exact-pi/Manifest b/dev-haskell/exact-pi/Manifest
new file mode 100644
index 000000000000..0a8a9dea3527
--- /dev/null
+++ b/dev-haskell/exact-pi/Manifest
@@ -0,0 +1 @@
+DIST exact-pi-0.5.0.1.tar.gz 9329 BLAKE2B 3f3a92f7dbf6bfcf629d5f978fcc5a6db3e24f0e42c854b3769b671ca301deb358993de7ef94e524373c73a967b7ea92c8da0fd812f7de85903cae4ddbd306c1 SHA512 873c445ff1044ce8f464b29d5bbe7bc02e2df8e267323f29870c8f816800dc403837852586c950725a871c78b1900db45b8172bb67c1da361e7b1b2bf3a56026
diff --git a/dev-haskell/exact-pi/exact-pi-0.5.0.1.ebuild b/dev-haskell/exact-pi/exact-pi-0.5.0.1.ebuild
new file mode 100644
index 000000000000..fa7a53cbd593
--- /dev/null
+++ b/dev-haskell/exact-pi/exact-pi-0.5.0.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# ebuild generated by hackport 0.6.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Exact rational multiples of pi (and integer powers of pi)"
+HOMEPAGE="https://github.com/dmcclean/exact-pi/"
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/numtype-dk-0.5:=[profile?]
+ >=dev-haskell/semigroups-0.8:=[profile?]
+ >=dev-lang/ghc-7.8.2:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.18.1.3
+ test? ( >=dev-haskell/quickcheck-2.10
+ >=dev-haskell/semigroups-0.9 <dev-haskell/semigroups-1.0
+ >=dev-haskell/tasty-0.10
+ >=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.11
+ >=dev-haskell/tasty-quickcheck-0.9 <dev-haskell/tasty-quickcheck-0.11 )
+"
+
+src_prepare() {
+ default
+
+ cabal_chdeps \
+ 'tasty >=0.10 && <1.2' 'tasty >=0.10' \
+ 'QuickCheck >=2.10 && <2.12' 'QuickCheck >=2.10' \
+ 'base >=4.7 && <4.13' 'base >=4.7'
+}
diff --git a/dev-haskell/exact-pi/metadata.xml b/dev-haskell/exact-pi/metadata.xml
new file mode 100644
index 000000000000..2a02051ec531
--- /dev/null
+++ b/dev-haskell/exact-pi/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ Provides an exact representation for rational multiples of pi alongside an approximate representation of all reals.
+ Useful for storing and computing with conversion factors between physical units.
+ </longdescription>
+</pkgmetadata>