summaryrefslogtreecommitdiff
path: root/dev-haskell/bits-atomic
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/bits-atomic
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/bits-atomic')
-rw-r--r--dev-haskell/bits-atomic/Manifest7
-rw-r--r--dev-haskell/bits-atomic/bits-atomic-0.1.3-r1.ebuild35
-rw-r--r--dev-haskell/bits-atomic/files/bits-atomic-0.1.3-ghc-8.patch9
-rw-r--r--dev-haskell/bits-atomic/metadata.xml41
4 files changed, 92 insertions, 0 deletions
diff --git a/dev-haskell/bits-atomic/Manifest b/dev-haskell/bits-atomic/Manifest
new file mode 100644
index 000000000000..a36b75b1b846
--- /dev/null
+++ b/dev-haskell/bits-atomic/Manifest
@@ -0,0 +1,7 @@
+AUX bits-atomic-0.1.3-ghc-8.patch 353 SHA256 e00e865893c6fc7849bce1a61ea389d84139e727b16585fc83b4d874bdd105d1 SHA512 a33787a086dd72120b50d0fd78b80435e5c62f54daaadfc21177973119a75f0b0855311c655c0656aab8ad9712c34e8d60e4f371f2be244b283aee9f53c3aab2 WHIRLPOOL 535746b9e39bd42f73974c517cdaa3bfabfb9f73bb9a816b6a7d368ad4cfbcebc7c4b928611b99eea4d7afb53dc1c59b1aa1c823b9bee69d417b00f1b06c1bc6
+DIST bits-atomic-0.1.3-gcc-5.patch 30907 SHA256 36fc94f29e45c5df056ffaae6b049f727ffeb6bff3463752f656aeffb027cd89 SHA512 0a40015f225325db3716ac0a17e33eef3f2042b72f933000a52734b103ea3e316a0242a0b75c90a31d0d4c31d33da8d32b07f7c067d79ade51df66ea75a3b19c WHIRLPOOL fe8c13afbfac29d80dc11adb1269bca47f2f241778c8b8ea67516194e90a48059e946d246e0432fdf5cc091a8e8646d9a12e643fd18bc8870523d79b9ed333e1
+DIST bits-atomic-0.1.3.tar.gz 7982 SHA256 e0ac3456cf0338e1d5ed33f4c3c6b932d652add2ac827c6a1b6636c6e754cb8d SHA512 e13c21c81ebc6cce2f85a184a572eb1647439f605985a8344ff219cc685c7d0adcf5d2433ea75fa1560a807e329cab23b548435adc0087e6294417eb7a65fbf1 WHIRLPOOL 3c15101610d87f202b910c60f9b875623661872bc91c8ae084e720f94633392b1338df3ee9d8eb3bd104e3c9c0d7dd949ead3a8f28be65e6a9f6458fda620a08
+EBUILD bits-atomic-0.1.3-r1.ebuild 912 SHA256 1a18b7520555deab2512e2c14ab7e75734b2f49c82350d9d8654fb82d930ff09 SHA512 be3612ea8cf6c43c93d79c1612bbb10804aa3657224bae20c1b836d8c5df94190f4abdce31d85ae99a55cd9a687d68155df84494bd6ed90a3dd05fe203900e74 WHIRLPOOL f20194fecfdbc3a4747e9840eaa439e17f499b8988a11666645d0f6c98ac004ebb65f08e4c5b9f7a0eaca148d89d7a652bbe44bb4952e2c65907bf7b1ecacc18
+MISC ChangeLog 3502 SHA256 d05d20c46516c1db203435bf6a8c241446b500ed98123ae38ebac8a852acd0cb SHA512 e0b1e6711a6e3d0bf1a3a6c584293c6f8dc5c09e22f3c6eb711a2e586d82d3f74c03ba6e136a809313abe279cf67550c8e99ee997f97a2fc692ad6dd8411e186 WHIRLPOOL 4c87ecd3092c726c8e519e2854daeca643fa4bbdd0523aec0ca70a5dd58ef99c0ebd77f25741eec5d131b791ad07c05dbd4d8e23675d9567c6ae11e7a059c146
+MISC ChangeLog-2015 491 SHA256 bed8a3eef0ba7f9b40bbf7c98ad7132605fc3af88a9136b59e448e5b7272f01c SHA512 a02b37a1d03dd1b2e91760ed32b6a2272ab24978cf3cc6b6c7ceb761c6ff6546384773f183f2a8a355146bc574b260fddbc8ee96fc3d9841472f312795c4dc45 WHIRLPOOL 09067fe46ec08ab2b4d08833fb4813c6f9c363de115f60acb5bc35e5947135f03205947ebb6584cf91702889e40e46c0ceae15e32854e2986af2a4238f8c3a79
+MISC metadata.xml 1690 SHA256 8c3a14e06beab6d5431ab0358317526baf5cbfa466a3b5d105e4ea7b50c46a5f SHA512 c96b9f74ab1f7e63f8595771535b9f6b020c5d355acc1875275839f07ff7a5141e8be09f8278aa49b10f291c945832ca4ef81a71f385ae71b2f664d1116f80e1 WHIRLPOOL 2e6eb4e29fede958ec0b566c4dffe7fd177adb7881981a25e20c91571d8904fd1e747ea5f82df46aea75a9c7e26ccccd46f89f23a2d4e6dfd35ef7dd7a4bd2aa
diff --git a/dev-haskell/bits-atomic/bits-atomic-0.1.3-r1.ebuild b/dev-haskell/bits-atomic/bits-atomic-0.1.3-r1.ebuild
new file mode 100644
index 000000000000..59e62513134b
--- /dev/null
+++ b/dev-haskell/bits-atomic/bits-atomic-0.1.3-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.6.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Atomic bit operations on memory locations for low-level synchronization"
+HOMEPAGE="http://hackage.haskell.org/package/bits-atomic"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz
+ https://dev.gentoo.org/~slyfox/patches/${P}-gcc-5.patch"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/quickcheck
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/test-framework-quickcheck2 )
+"
+
+src_prepare() {
+ epatch "${DISTDIR}"/${P}-gcc-5.patch
+ epatch "${FILESDIR}"/${P}-ghc-8.patch
+}
diff --git a/dev-haskell/bits-atomic/files/bits-atomic-0.1.3-ghc-8.patch b/dev-haskell/bits-atomic/files/bits-atomic-0.1.3-ghc-8.patch
new file mode 100644
index 000000000000..eb12edc2d4f3
--- /dev/null
+++ b/dev-haskell/bits-atomic/files/bits-atomic-0.1.3-ghc-8.patch
@@ -0,0 +1,9 @@
+diff --git a/test/test.hs b/test/test.hs
+index 38238b5..c3a99b0 100644
+--- a/test/test.hs
++++ b/test/test.hs
+@@ -35,3 +35,3 @@ testPattern = 0xdeadbeef
+
+-type PolyTest = (AtomicBits a, Storable a, Integral a, Bounded a, Show a) => a -> Assertion
++type PolyTest = forall a . (AtomicBits a, Storable a, Integral a, Bounded a, Show a) => a -> Assertion
+
diff --git a/dev-haskell/bits-atomic/metadata.xml b/dev-haskell/bits-atomic/metadata.xml
new file mode 100644
index 000000000000..b15af11b249b
--- /dev/null
+++ b/dev-haskell/bits-atomic/metadata.xml
@@ -0,0 +1,41 @@
+<?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>
+ Atomic operations including CAS (compare-and-swap), fetch &amp; add and variants
+ suitable for low-level shared-memory synchronization.
+
+ The implementation is using GCC's builtin atomic operations (available in GCC &gt;=
+ 4) in C wrappers called through the FFI. See these links for background:
+
+ * GCC manual: &lt;https://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html&gt;
+
+ * GCC wiki: &lt;https://gcc.gnu.org/wiki/Atomic&gt;
+
+ /Portability/: This package is primarily developed on a Linux system, but
+ should work wherever GCC &gt;= 4 is available. It has been confirmed as working
+ on OSX. On Windows, it should work with Cygwin but currently fails for
+ vanilla Haskell-Platform 2010.1.0.0 as it still packages GCC 3.x. An
+ installer for updated versions of GCC is available at
+ &lt;http://www.mingw.org/&gt; and should make this package work in connection with
+ Haskell-Platform. Feedback on compatibility would be appreciated.
+
+ /Testing:/ The following commands can be used to compile and run the test suite:
+
+ &gt; cabal unpack bits-atomic &amp;&amp; cd bits-atomic-* # if not yet locally available
+ &gt; cabal configure -ftest
+ &gt; cabal build
+ &gt; cabal test
+
+ /Recent changes/:
+
+ * 0.1.3: Documentation updates, especially on portability. No functional
+ changes.
+
+ * 0.1.2: Avoid using System.FilePath in Setup.hs to fix build failure on hackage
+ </longdescription>
+</pkgmetadata>