* [gentoo-commits] repo/gentoo:master commit in: dev-haskell/wavy/files/, dev-haskell/wavy/
@ 2016-09-11 10:01 Sergei Trofimovich
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich @ 2016-09-11 10:01 UTC (permalink / raw
To: gentoo-commits
commit: 0f2c6476e1f4c22dd308195a36f979dd15079413
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 11 09:49:30 2016 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Sep 11 10:01:32 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f2c6476
dev-haskell/wavy: WAV file processor, a depend of app-forensics/quickfuzz
Package-Manager: portage-2.3.0
dev-haskell/wavy/Manifest | 1 +
.../wavy/files/wavy-0.1.0.0-binary-0.8.patch | 14 ++++++++
dev-haskell/wavy/metadata.xml | 13 +++++++
dev-haskell/wavy/wavy-0.1.0.0.ebuild | 41 ++++++++++++++++++++++
4 files changed, 69 insertions(+)
diff --git a/dev-haskell/wavy/Manifest b/dev-haskell/wavy/Manifest
new file mode 100644
index 00000000..20935e3
--- /dev/null
+++ b/dev-haskell/wavy/Manifest
@@ -0,0 +1 @@
+DIST wavy-0.1.0.0.tar.gz 25100 SHA256 3849bf156ba6b2cb7f8665b66a398a175b3579534c7bc1e0f5357e7a5ad57f67 SHA512 25103aeae5104f6525b75cae4aea1b70e3998a56e4c262462a8dd7b8edfee2749fbd099e81a2c2bde0bfb0211e2194d0e4df705bd8882e526516c85be0fdd94d WHIRLPOOL 7105e0da09c621d20fc124ae32242e9c8eb0100e25c7ad0d4e8d0b78d0b5ad0cc102c392a49b9a287bc380065b1aad165a32612f2ecf5a898a30593f4f826002
diff --git a/dev-haskell/wavy/files/wavy-0.1.0.0-binary-0.8.patch b/dev-haskell/wavy/files/wavy-0.1.0.0-binary-0.8.patch
new file mode 100644
index 00000000..88db75b
--- /dev/null
+++ b/dev-haskell/wavy/files/wavy-0.1.0.0-binary-0.8.patch
@@ -0,0 +1,14 @@
+diff --git a/Sound/Wav/Binary.hs b/Sound/Wav/Binary.hs
+index d2c539c..11883a3 100644
+--- a/Sound/Wav/Binary.hs
++++ b/Sound/Wav/Binary.hs
+@@ -1 +1,2 @@
++{-# LANGUAGE CPP #-}
+ -- | This module provides helper binary functions to get integer values from binary streams and put
+@@ -8,2 +9,3 @@ import Data.Int
+
++#if ! MIN_VERSION_binary(0,8,0)
+ getInt8 :: Get Int8
+@@ -31 +33,2 @@ putInt64le :: Int64 -> Put
+ putInt64le = putWord64le . fromIntegral
++#endif
diff --git a/dev-haskell/wavy/metadata.xml b/dev-haskell/wavy/metadata.xml
new file mode 100644
index 00000000..da5680c
--- /dev/null
+++ b/dev-haskell/wavy/metadata.xml
@@ -0,0 +1,13 @@
+<?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>
+ Wavy was designed to be a fast and efficient method of extracting and writing PCM
+ data to and from WAV files. It is here to help you make fast use of Audio
+ data in your Haskell programs and thus encourage many more audio projects in Haskell.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/wavy/wavy-0.1.0.0.ebuild b/dev-haskell/wavy/wavy-0.1.0.0.ebuild
new file mode 100644
index 00000000..fc58013
--- /dev/null
+++ b/dev-haskell/wavy/wavy-0.1.0.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Process WAVE files in Haskell"
+HOMEPAGE="http://bitbucket.org/robertmassaioli/wavy"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/pretty-show:=[profile?]
+ >=dev-haskell/riff-0.3:=[profile?] <dev-haskell/riff-0.4:=[profile?]
+ >=dev-haskell/split-0.2:=[profile?] <dev-haskell/split-0.3:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?]
+ >=dev-lang/ghc-7.8.2:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.18.1.3
+"
+
+PATCHES=("${FILESDIR}"/${P}-binary-0.8.patch)
+
+src_prepare() {
+ default
+
+ cabal_chdeps \
+ 'vector ==0.10.*' 'vector >= 0.10' \
+ 'filepath ==1.3.*' 'filepath >= 1.3' \
+ 'binary ==0.7.*' 'binary >= 0.7' \
+ 'containers ==0.4.*' 'containers >= 0.4'
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-haskell/wavy/files/, dev-haskell/wavy/
@ 2020-08-09 18:27 Sergei Trofimovich
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich @ 2020-08-09 18:27 UTC (permalink / raw
To: gentoo-commits
commit: 6bfd43bee6d167c7ebe3f3cc9baa65bc52d75ab2
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 9 18:27:37 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Aug 9 18:27:37 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bfd43be
dev-haskell/wavy: tweak for ghc-8.8
Reported-by: Agostino Sarubbo
Closes: https://bugs.gentoo.org/736444
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
dev-haskell/wavy/files/wavy-0.1.0.0-ghc-8.8.patch | 11 +++++++++++
dev-haskell/wavy/wavy-0.1.0.0.ebuild | 9 ++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/dev-haskell/wavy/files/wavy-0.1.0.0-ghc-8.8.patch b/dev-haskell/wavy/files/wavy-0.1.0.0-ghc-8.8.patch
new file mode 100644
index 00000000000..5d5fdee9bd2
--- /dev/null
+++ b/dev-haskell/wavy/files/wavy-0.1.0.0-ghc-8.8.patch
@@ -0,0 +1,11 @@
+--- a/Sound/Wav/ChannelData.hs
++++ b/Sound/Wav/ChannelData.hs
+@@ -111,7 +111,7 @@ wordPutter 1 = putInt8 . zeroStable (0 :: Int8)
+ wordPutter 2 = putInt16le . zeroStable (0 :: Int16)
+ wordPutter 3 = putInt32le . zeroStable (0 :: Int32)
+ wordPutter 4 = putInt64le
+-wordPutter x = \_ -> fail $ "The is no word putter for byte size " ++ show x
++wordPutter x = \_ -> error $ "The is no word putter for byte size " ++ show x
+
+ wordGetter :: (Num a, Show a, Eq a) => a -> Get Int64
+ wordGetter 1 = fmap zeroStable64 getInt8
diff --git a/dev-haskell/wavy/wavy-0.1.0.0.ebuild b/dev-haskell/wavy/wavy-0.1.0.0.ebuild
index 92dff555260..bfc61294c40 100644
--- a/dev-haskell/wavy/wavy-0.1.0.0.ebuild
+++ b/dev-haskell/wavy/wavy-0.1.0.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -9,7 +9,7 @@ CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="Process WAVE files in Haskell"
-HOMEPAGE="https://bitbucket.org/robertmassaioli/wavy"
+HOMEPAGE="http://bitbucket.org/robertmassaioli/wavy"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
@@ -27,7 +27,10 @@ DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.18.1.3
"
-PATCHES=("${FILESDIR}"/${P}-binary-0.8.patch)
+PATCHES=(
+ "${FILESDIR}"/${P}-binary-0.8.patch
+ "${FILESDIR}"/${P}-ghc-8.8.patch
+)
src_prepare() {
default
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-09 18:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-09 18:27 [gentoo-commits] repo/gentoo:master commit in: dev-haskell/wavy/files/, dev-haskell/wavy/ Sergei Trofimovich
-- strict thread matches above, loose matches on Subject: below --
2016-09-11 10:01 Sergei Trofimovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox