[arch-commits] Commit in darcs/repos (6 files)
Felix Yan
felixonmars at archlinux.org
Fri Aug 26 18:30:59 UTC 2016
Date: Friday, August 26, 2016 @ 18:30:58
Author: felixonmars
Revision: 187717
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
darcs/repos/community-staging-i686/
darcs/repos/community-staging-i686/PKGBUILD
(from rev 187716, darcs/trunk/PKGBUILD)
darcs/repos/community-staging-i686/sandi-0.4.patch
(from rev 187716, darcs/trunk/sandi-0.4.patch)
darcs/repos/community-staging-x86_64/
darcs/repos/community-staging-x86_64/PKGBUILD
(from rev 187716, darcs/trunk/PKGBUILD)
darcs/repos/community-staging-x86_64/sandi-0.4.patch
(from rev 187716, darcs/trunk/sandi-0.4.patch)
------------------------------------------+
community-staging-i686/PKGBUILD | 50 +++++++++++++++++++++++++++++
community-staging-i686/sandi-0.4.patch | 13 +++++++
community-staging-x86_64/PKGBUILD | 50 +++++++++++++++++++++++++++++
community-staging-x86_64/sandi-0.4.patch | 13 +++++++
4 files changed, 126 insertions(+)
Copied: darcs/repos/community-staging-i686/PKGBUILD (from rev 187716, darcs/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-08-26 18:30:58 UTC (rev 187717)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=darcs
+pkgver=2.12.0
+pkgrel=16
+pkgdesc="A distributed, interactive, smart revision control system"
+url="http://darcs.net"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('curl')
+makedepends=("ghc=8.0.1" "haskell-async" "haskell-attoparsec" "haskell-base16-bytestring"
+ "haskell-cryptohash" "haskell-data-ordlist" "haskell-fgl" "haskell-graphviz"
+ "haskell-hashable" "haskell-html" "haskell-http" "haskell-mmap" "haskell-mtl"
+ "haskell-network" "haskell-network-uri" "haskell-old-time" "haskell-parsec"
+ "haskell-sandi" "haskell-random" "haskell-regex-applicative"
+ "haskell-regex-compat-tdfa" "haskell-tar" "haskell-text"
+ "haskell-transformers-compat" "haskell-unix-compat" "haskell-utf8-string"
+ "haskell-vector" "haskell-zip-archive" "haskell-zlib")
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ sandi-0.4.patch)
+sha256sums=('17318d1b49ca4b1aa00a4bffc2ab30a448e7440ce1945eed9bf382d77582308d'
+ 'f144bf4ce7ee9f718e086267a936e2b113f9eb08c23688cbedb40276538562d3')
+
+prepare() {
+ sed -i 's/sandi >= 0.2 && < 0.4,/sandi >= 0.2 \&\& < 0.5,/' $pkgname-$pkgver/$pkgname.cabal
+ (cd $pkgname-$pkgver && patch -p1 -i ../sandi-0.4.patch)
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ -fcurl -fpkgconfig -fhttp -f-static -fterminfo -fthreaded -fexecutable \
+ -f-rts -foptimize -f-warn-as-error \
+ -f-libiconv -fuse-time-1point5 -fnetwork-uri
+ runhaskell Setup build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ # Remove library and doc (license only)
+ rm -r "$pkgdir"/usr/{lib,share/doc}
+ chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1"
+
+ install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs"
+ install -Dm644 contrib/_darcs.zsh "${pkgdir}/usr/share/zsh/site-functions/_darcs"
+}
Copied: darcs/repos/community-staging-i686/sandi-0.4.patch (from rev 187716, darcs/trunk/sandi-0.4.patch)
===================================================================
--- community-staging-i686/sandi-0.4.patch (rev 0)
+++ community-staging-i686/sandi-0.4.patch 2016-08-26 18:30:58 UTC (rev 187717)
@@ -0,0 +1,13 @@
+--- a/src/Darcs/Util/Hash.hs 2016-06-09 11:45:13.303203462 +0800
++++ b/src/Darcs/Util/Hash.hs 2016-06-09 11:45:29.330047632 +0800
+@@ -27,8 +27,8 @@
+ base16 :: BS.ByteString -> BS.ByteString
+ debase16 :: BS.ByteString -> Maybe BS.ByteString
+
+-base16 = BS8.map toLower . B16.b16_enc
+-debase16 bs = case B16.b16_dec $ BS8.map toUpper bs of
++base16 = BS8.map toLower . B16.b16Enc
++debase16 bs = case B16.b16Dec $ BS8.map toUpper bs of
+ Right (s, _) -> Just s
+ Left _ -> Nothing
+
Copied: darcs/repos/community-staging-x86_64/PKGBUILD (from rev 187716, darcs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-08-26 18:30:58 UTC (rev 187717)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=darcs
+pkgver=2.12.0
+pkgrel=16
+pkgdesc="A distributed, interactive, smart revision control system"
+url="http://darcs.net"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('curl')
+makedepends=("ghc=8.0.1" "haskell-async" "haskell-attoparsec" "haskell-base16-bytestring"
+ "haskell-cryptohash" "haskell-data-ordlist" "haskell-fgl" "haskell-graphviz"
+ "haskell-hashable" "haskell-html" "haskell-http" "haskell-mmap" "haskell-mtl"
+ "haskell-network" "haskell-network-uri" "haskell-old-time" "haskell-parsec"
+ "haskell-sandi" "haskell-random" "haskell-regex-applicative"
+ "haskell-regex-compat-tdfa" "haskell-tar" "haskell-text"
+ "haskell-transformers-compat" "haskell-unix-compat" "haskell-utf8-string"
+ "haskell-vector" "haskell-zip-archive" "haskell-zlib")
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ sandi-0.4.patch)
+sha256sums=('17318d1b49ca4b1aa00a4bffc2ab30a448e7440ce1945eed9bf382d77582308d'
+ 'f144bf4ce7ee9f718e086267a936e2b113f9eb08c23688cbedb40276538562d3')
+
+prepare() {
+ sed -i 's/sandi >= 0.2 && < 0.4,/sandi >= 0.2 \&\& < 0.5,/' $pkgname-$pkgver/$pkgname.cabal
+ (cd $pkgname-$pkgver && patch -p1 -i ../sandi-0.4.patch)
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ -fcurl -fpkgconfig -fhttp -f-static -fterminfo -fthreaded -fexecutable \
+ -f-rts -foptimize -f-warn-as-error \
+ -f-libiconv -fuse-time-1point5 -fnetwork-uri
+ runhaskell Setup build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ # Remove library and doc (license only)
+ rm -r "$pkgdir"/usr/{lib,share/doc}
+ chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1"
+
+ install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs"
+ install -Dm644 contrib/_darcs.zsh "${pkgdir}/usr/share/zsh/site-functions/_darcs"
+}
Copied: darcs/repos/community-staging-x86_64/sandi-0.4.patch (from rev 187716, darcs/trunk/sandi-0.4.patch)
===================================================================
--- community-staging-x86_64/sandi-0.4.patch (rev 0)
+++ community-staging-x86_64/sandi-0.4.patch 2016-08-26 18:30:58 UTC (rev 187717)
@@ -0,0 +1,13 @@
+--- a/src/Darcs/Util/Hash.hs 2016-06-09 11:45:13.303203462 +0800
++++ b/src/Darcs/Util/Hash.hs 2016-06-09 11:45:29.330047632 +0800
+@@ -27,8 +27,8 @@
+ base16 :: BS.ByteString -> BS.ByteString
+ debase16 :: BS.ByteString -> Maybe BS.ByteString
+
+-base16 = BS8.map toLower . B16.b16_enc
+-debase16 bs = case B16.b16_dec $ BS8.map toUpper bs of
++base16 = BS8.map toLower . B16.b16Enc
++debase16 bs = case B16.b16Dec $ BS8.map toUpper bs of
+ Right (s, _) -> Just s
+ Left _ -> Nothing
+
More information about the arch-commits
mailing list