[arch-commits] Commit in haskell-clash-prelude/repos/community-x86_64 (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Feb 27 07:41:00 UTC 2022
Date: Sunday, February 27, 2022 @ 07:41:00
Author: felixonmars
Revision: 1136736
archrelease: copy trunk to community-x86_64
Added:
haskell-clash-prelude/repos/community-x86_64/PKGBUILD
(from rev 1136735, haskell-clash-prelude/trunk/PKGBUILD)
Deleted:
haskell-clash-prelude/repos/community-x86_64/PKGBUILD
haskell-clash-prelude/repos/community-x86_64/hashable-1.4.patch
--------------------+
PKGBUILD | 110 +++++++++++++++++++++++----------------------------
hashable-1.4.patch | 46 ---------------------
2 files changed, 51 insertions(+), 105 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-27 07:40:51 UTC (rev 1136735)
+++ PKGBUILD 2022-02-27 07:41:00 UTC (rev 1136736)
@@ -1,59 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-_hkgname=clash-prelude
-pkgname=haskell-clash-prelude
-pkgver=1.4.6
-pkgrel=1
-pkgdesc="Clash: a functional hardware description language - Prelude library"
-url="https://github.com/clash-lang/clash-prelude"
-license=('BSD')
-arch=('x86_64')
-depends=('ghc-libs' 'haskell-arrows' 'haskell-bifunctors' 'haskell-constraints'
- 'haskell-data-binary-ieee754' 'haskell-data-default-class' 'haskell-ghc-typelits-extra'
- 'haskell-ghc-typelits-knownnat' 'haskell-ghc-typelits-natnormalise' 'haskell-half'
- 'haskell-hashable' 'haskell-interpolate' 'haskell-lens' 'haskell-quickcheck'
- 'haskell-recursion-schemes' 'haskell-reflection' 'haskell-singletons'
- 'haskell-th-abstraction' 'haskell-th-lift' 'haskell-text-show' 'haskell-th-orphans'
- 'haskell-type-errors' 'haskell-uniplate' 'haskell-vector')
-makedepends=('ghc' 'uusi' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hedgehog'
- 'haskell-hint' 'haskell-quickcheck-classes-base' 'haskell-tasty'
- 'haskell-tasty-hedgehog' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck'
- 'haskell-tasty-th')
-source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
- hashable-1.4.patch)
-sha512sums=('b8e7dc5f202975191c8e248b2f30f872c46d78f6c6d0e9e5a830e0645a63ef6e8ae0c0eac11ac9fb86b7e82b33f98d10cff7c35e81944bf34275157be81965de'
- '84971d5f70f21e8962436e5c14d627a3fddb9805b505fa7ade82c22b59d94912d52d28bb509906e2e6acfcf6432c54b8d7837fc1eae5149a2ce42d51c562934a')
-
-prepare() {
- cd $_hkgname-$pkgver
- patch -p2 -i ../hashable-1.4.patch
- uusi -u ghc-bignum $_hkgname.cabal
-}
-
-build() {
- cd $_hkgname-$pkgver
-
- runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
- --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
- runhaskell Setup build $MAKEFLAGS
- runhaskell Setup register --gen-script
- runhaskell Setup unregister --gen-script
- sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
- sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
-}
-
-check() {
- cd $_hkgname-$pkgver
- runhaskell Setup test --show-details=direct
-}
-
-package() {
- cd $_hkgname-$pkgver
-
- install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
- install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
- runhaskell Setup copy --destdir="$pkgdir"
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
-}
Copied: haskell-clash-prelude/repos/community-x86_64/PKGBUILD (from rev 1136735, haskell-clash-prelude/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-27 07:41:00 UTC (rev 1136736)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=clash-prelude
+pkgname=haskell-clash-prelude
+pkgver=1.4.7
+pkgrel=1
+pkgdesc="Clash: a functional hardware description language - Prelude library"
+url="https://github.com/clash-lang/clash-prelude"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-arrows' 'haskell-bifunctors' 'haskell-constraints'
+ 'haskell-data-binary-ieee754' 'haskell-data-default-class' 'haskell-extra'
+ 'haskell-ghc-typelits-extra' 'haskell-ghc-typelits-knownnat'
+ 'haskell-ghc-typelits-natnormalise' 'haskell-half' 'haskell-hashable' 'haskell-interpolate'
+ 'haskell-lens' 'haskell-quickcheck' 'haskell-recursion-schemes' 'haskell-reflection'
+ 'haskell-singletons' 'haskell-th-abstraction' 'haskell-th-lift' 'haskell-text-show'
+ 'haskell-th-orphans' 'haskell-type-errors' 'haskell-uniplate' 'haskell-vector')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hedgehog'
+ 'haskell-hint' 'haskell-quickcheck-classes-base' 'haskell-tasty'
+ 'haskell-tasty-hedgehog' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck'
+ 'haskell-tasty-th')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('8e8d35aa7795fcb38886b11b5ffd62185c5f731beb9c4ca9aebbc9dd3c77aa7558a1fb09655668974ef69bbc8ffa06abddf9558feefc065dbd149caa583a6151')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
+ runhaskell Setup build $MAKEFLAGS
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test --show-details=direct
+}
+
+package() {
+ cd $_hkgname-$pkgver
+
+ install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+ install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+ runhaskell Setup copy --destdir="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
Deleted: hashable-1.4.patch
===================================================================
--- hashable-1.4.patch 2022-02-27 07:40:51 UTC (rev 1136735)
+++ hashable-1.4.patch 2022-02-27 07:41:00 UTC (rev 1136736)
@@ -1,46 +0,0 @@
-diff --git a/clash-prelude/clash-prelude.cabal b/clash-prelude/clash-prelude.cabal
-index 43dfaa6fc..2e2c1e619 100644
---- a/clash-prelude/clash-prelude.cabal
-+++ b/clash-prelude/clash-prelude.cabal
-@@ -326,7 +326,7 @@ Library
- ghc-typelits-extra >= 0.4 && < 0.5,
- ghc-typelits-knownnat >= 0.7.2 && < 0.8,
- ghc-typelits-natnormalise >= 0.7.2 && < 0.8,
-- hashable >= 1.2.1.0 && < 1.4,
-+ hashable >= 1.2.1.0 && < 1.5,
- half >= 0.2.2.3 && < 1.0,
- interpolate >= 0.2 && < 0.3,
- lens >= 4.10 && < 5.1.0,
-diff --git a/clash-prelude/src/Clash/Annotations/Primitive.hs b/clash-prelude/src/Clash/Annotations/Primitive.hs
-index 475b0977a..13db3aece 100644
---- a/clash-prelude/src/Clash/Annotations/Primitive.hs
-+++ b/clash-prelude/src/Clash/Annotations/Primitive.hs
-@@ -272,7 +272,7 @@ data Primitive
- -- ^ Description of a primitive for a given 'HDL's in a file at 'FilePath'
- | InlinePrimitive [HDL] String
- -- ^ Description of a primitive for a given 'HDL's as an inline 'String'
-- deriving (Show, Read, Data, Generic, NFData, Hashable)
-+ deriving (Show, Read, Data, Generic, NFData, Hashable, Eq)
-
- -- | Primitive guard to mark a value as either not translatable or as having a
- -- blackbox with an optional extra warning. Helps Clash generate better error
-@@ -287,7 +287,9 @@ data PrimitiveGuard a
- | HasBlackBox [PrimitiveWarning] a
- -- ^ Marks a value as having a blackbox. Clash will error if it hasn't found
- -- a blackbox.
-- deriving (Show, Read, Data, Generic, NFData, Hashable, Functor, Foldable, Traversable, Binary)
-+ deriving
-+ ( Show, Read, Data, Generic, NFData, Hashable, Functor, Foldable
-+ , Traversable, Binary, Eq )
-
- -- | Warning that will be emitted on instantiating a guarded value.
- data PrimitiveWarning
-@@ -296,7 +298,7 @@ data PrimitiveWarning
- -- instantiated in a non-testbench context.
- | WarnAlways String
- -- ^ Always emit warning upon primitive instantiation.
-- deriving (Show, Read, Data, Generic, NFData, Hashable, Binary)
-+ deriving (Show, Read, Data, Generic, NFData, Hashable, Binary, Eq)
-
- -- | Extract primitive definition from a PrimitiveGuard. Will yield Nothing
- -- for guards of value 'DontTranslate'.
More information about the arch-commits
mailing list