summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatoro <matoro@users.noreply.github.com>2022-07-11 19:40:53 -0400
committerSam James <sam@gentoo.org>2022-07-22 22:15:53 +0000
commitf0410ae99bd478acef8ef9ef6bfcf34718337f63 (patch)
treec113d2a55f322747e9c145ae1161ca2043cbe626 /dev-haskell/these
parentdev-haskell/th-compat: new package, add 0.1.3 (diff)
downloadgentoo-f0410ae99bd478acef8ef9ef6bfcf34718337f63.tar.gz
gentoo-f0410ae99bd478acef8ef9ef6bfcf34718337f63.tar.bz2
gentoo-f0410ae99bd478acef8ef9ef6bfcf34718337f63.zip
dev-haskell/these: new package, add 1.1.1.1
Signed-off-by: matoro <matoro@users.noreply.github.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-haskell/these')
-rw-r--r--dev-haskell/these/Manifest2
-rw-r--r--dev-haskell/these/metadata.xml8
-rw-r--r--dev-haskell/these/these-1.1.1.1.ebuild45
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-haskell/these/Manifest b/dev-haskell/these/Manifest
new file mode 100644
index 000000000000..2f47e62515aa
--- /dev/null
+++ b/dev-haskell/these/Manifest
@@ -0,0 +1,2 @@
+DIST these-1.1.1.1.cabal 2748 BLAKE2B 2c35a4da7a8afc378d8eff519493a5fff85bfc780f699cca7441b8afcae9af47e08f2ab0b639f216cf9777ed2b84d87572329d171040b0bc231844ef6f53e6cd SHA512 bfe6df1cdbe0286731e28d0ab3cf354fb55a6be4aa799de6af6ee5a132c383fb889a5828aa2b3645e4f59a5690461c9abc83ccb277a51ef5c4f98b10e6270a53
+DIST these-1.1.1.1.tar.gz 9804 BLAKE2B 1b42aeea439b31a07f9916771a496258c45d343dbebbce7b8d3d50f0b34075cc1b3dc8bfb24d71bda866f3e8ee1d4822b8a8509d84cb277a1c8d253341e5fe51 SHA512 23246164648bf4cb028719e7cb2e5f450ab55558af9e1dc7f0ddec323ca4ce124afbfd3bf367446c2d69ec91abe42daf77e11a26a13f2898275dafbc095637d5
diff --git a/dev-haskell/these/metadata.xml b/dev-haskell/these/metadata.xml
new file mode 100644
index 000000000000..b7878815d80d
--- /dev/null
+++ b/dev-haskell/these/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/dev-haskell/these/these-1.1.1.1.ebuild b/dev-haskell/these/these-1.1.1.1.ebuild
new file mode 100644
index 000000000000..01de2acee2c6
--- /dev/null
+++ b/dev-haskell/these/these-1.1.1.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ebuild generated by hackport 0.7.1.1.9999
+#hackport: flags: aeson,assoc,quickcheck,semigroupoids,+assoc
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+CABAL_HACKAGE_REVISION="5"
+inherit haskell-cabal
+
+DESCRIPTION="An either-or-both data type"
+HOMEPAGE="https://github.com/haskellari/these"
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz
+ https://hackage.haskell.org/package/${P}/revision/${CABAL_HACKAGE_REVISION}.cabal -> ${PF}.cabal"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+RDEPEND=">=dev-haskell/assoc-1:=[profile?] <dev-haskell/assoc-1.1:=[profile?]
+ >=dev-haskell/hashable-1.2.7.0:=[profile?] <dev-haskell/hashable-1.5:=[profile?]
+ >=dev-lang/ghc-8.4.3:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-2.2.0.1
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ --flag=assoc
+}
+BDEPEND="app-text/dos2unix"
+
+src_prepare() {
+ # pull revised cabal from upstream
+ cp "${DISTDIR}/${PF}.cabal" "${S}/${PN}.cabal" || die
+
+ # Convert to unix line endings
+ dos2unix "${S}/${PN}.cabal" || die
+
+ # Apply patches *after* pulling the revised cabal
+ default
+}