summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Todaro <solpeth@posteo.org>2020-07-29 11:47:34 +1000
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-01 09:00:03 +0100
commit54f74eb6744b444454c73212ffa9d364e8ff6b6a (patch)
tree7f5f82bd61d20b1b2752735494a07a08577877db /dev-haskell/newtype-generics
parentdev-haskell/generics-sop: bump up to 0.5.1.0 (diff)
downloadgentoo-54f74eb6744b444454c73212ffa9d364e8ff6b6a.tar.gz
gentoo-54f74eb6744b444454c73212ffa9d364e8ff6b6a.tar.bz2
gentoo-54f74eb6744b444454c73212ffa9d364e8ff6b6a.zip
dev-haskell/newtype-generics: add package
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Jack Todaro <solpeth@posteo.org> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/newtype-generics')
-rw-r--r--dev-haskell/newtype-generics/Manifest1
-rw-r--r--dev-haskell/newtype-generics/metadata.xml14
-rw-r--r--dev-haskell/newtype-generics/newtype-generics-0.5.4.ebuild32
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-haskell/newtype-generics/Manifest b/dev-haskell/newtype-generics/Manifest
new file mode 100644
index 000000000000..bf45efe58281
--- /dev/null
+++ b/dev-haskell/newtype-generics/Manifest
@@ -0,0 +1 @@
+DIST newtype-generics-0.5.4.tar.gz 6878 BLAKE2B c260a0eeaecfe3d97aa6b7f794f588d64252373ecd92a5bbae55ab373620d96b4dece32fae0e96a74b1c9c1a0744fc222480c7271cd21addf93a7747465a14e5 SHA512 33128015f68a01633b778b8fd7f3d3df8f13b33479705edd4b47036641d7b358667998eb56a6fecdb1f65cb7fb0ac456b8d08ef264e1c17b2fad08ce0a0ffea1
diff --git a/dev-haskell/newtype-generics/metadata.xml b/dev-haskell/newtype-generics/metadata.xml
new file mode 100644
index 000000000000..e28f27a0de98
--- /dev/null
+++ b/dev-haskell/newtype-generics/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ Per Conor McBride, the Newtype typeclass represents the packing and unpacking of a newtype,
+ and allows you to operatate under that newtype with functions such as ala.
+ Generics support was added in version 0.4, making this package a full replacement
+ for the original newtype package, and a better alternative to newtype-th.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/newtype-generics/newtype-generics-0.5.4.ebuild b/dev-haskell/newtype-generics/newtype-generics-0.5.4.ebuild
new file mode 100644
index 000000000000..105dcb183f0b
--- /dev/null
+++ b/dev-haskell/newtype-generics/newtype-generics-0.5.4.ebuild
@@ -0,0 +1,32 @@
+# 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="A typeclass for working with newtypes, with generics support"
+HOMEPAGE="https://github.com/sjakobi/newtype-generics"
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-7.8.2:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.18.1.3
+ test? ( >=dev-haskell/hspec-2.1 )
+"
+
+src_prepare() {
+ default
+
+ cabal_chdeps \
+ 'base >= 4.6 && < 4.14' 'base >= 4.6'
+}