[DHG_packages] 01/01: add wreq

Clint Adams clint at moszumanska.debian.org
Mon Aug 8 18:19:10 UTC 2016


This is an automated email from the git hooks/post-receive script.

clint pushed a commit to branch master
in repository DHG_packages.

commit 8b905dfd7a013df01072712494bc21a5186f2453
Author: Clint Adams <clint at debian.org>
Date:   Mon Aug 8 14:18:17 2016 -0400

    add wreq
---
 p/haskell-wreq/debian/changelog                    |   5 +
 p/haskell-wreq/debian/compat                       |   1 +
 p/haskell-wreq/debian/control                      | 147 +++++++++++++++++++++
 p/haskell-wreq/debian/copyright                    |  39 ++++++
 .../debian/patches/disable-network-tests           |  29 ++++
 p/haskell-wreq/debian/patches/fix-doctests         |  23 ++++
 p/haskell-wreq/debian/patches/series               |   2 +
 p/haskell-wreq/debian/rules                        |   8 ++
 p/haskell-wreq/debian/source/format                |   1 +
 p/haskell-wreq/debian/watch                        |   2 +
 10 files changed, 257 insertions(+)

diff --git a/p/haskell-wreq/debian/changelog b/p/haskell-wreq/debian/changelog
new file mode 100644
index 0000000..d51abb4
--- /dev/null
+++ b/p/haskell-wreq/debian/changelog
@@ -0,0 +1,5 @@
+haskell-wreq (0.4.1.0-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Clint Adams <clint at debian.org>  Mon, 08 Aug 2016 13:07:18 -0400
diff --git a/p/haskell-wreq/debian/compat b/p/haskell-wreq/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/p/haskell-wreq/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/p/haskell-wreq/debian/control b/p/haskell-wreq/debian/control
new file mode 100644
index 0000000..d863126
--- /dev/null
+++ b/p/haskell-wreq/debian/control
@@ -0,0 +1,147 @@
+Source: haskell-wreq
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
+Uploaders: Clint Adams <clint at debian.org>
+Priority: extra
+Section: haskell
+Build-Depends: debhelper (>= 9),
+ haskell-devscripts (>= 0.9),
+ cdbs,
+ ghc,
+ ghc-prof,
+ libghc-aeson-dev (>= 0.7.0.3),
+ libghc-aeson-prof,
+ libghc-attoparsec-dev (>= 0.11.1.0),
+ libghc-attoparsec-prof,
+ libghc-authenticate-oauth-dev (>= 1.5),
+ libghc-authenticate-oauth-dev (<< 1.6),
+ libghc-authenticate-oauth-prof,
+ libghc-base16-bytestring-dev,
+ libghc-base16-bytestring-prof,
+ libghc-byteable-dev,
+ libghc-byteable-prof,
+ libghc-case-insensitive-dev,
+ libghc-case-insensitive-prof,
+ libghc-cryptohash-dev,
+ libghc-cryptohash-prof,
+ libghc-exceptions-dev (>= 0.5),
+ libghc-exceptions-prof,
+ libghc-hashable-dev,
+ libghc-hashable-prof,
+ libghc-http-client-dev (>= 0.4.6),
+ libghc-http-client-prof,
+ libghc-http-client-tls-dev (>= 0.2),
+ libghc-http-client-tls-prof,
+ libghc-http-types-dev (>= 0.8),
+ libghc-http-types-prof,
+ libghc-lens-dev (>= 4.5),
+ libghc-lens-prof,
+ libghc-lens-aeson-dev,
+ libghc-lens-aeson-prof,
+ libghc-mime-types-dev,
+ libghc-mime-types-prof,
+ libghc-psqueues-dev (>= 0.2),
+ libghc-psqueues-prof,
+ libghc-text-dev,
+ libghc-text-prof,
+ libghc-time-locale-compat-dev,
+ libghc-time-locale-compat-prof,
+ libghc-unordered-containers-dev,
+ libghc-unordered-containers-prof,
+ libghc-hunit-dev,
+ libghc-quickcheck2-dev (>= 2.7),
+ libghc-aeson-dev,
+ libghc-aeson-pretty-dev (>= 0.7.1),
+ libghc-base64-bytestring-dev,
+ libghc-doctest-dev,
+ libghc-http-client-dev,
+ libghc-http-types-dev,
+ libghc-lens-dev,
+ libghc-network-info-dev,
+ libghc-snap-core-dev,
+ libghc-snap-server-dev (>= 0.9.4.4),
+ libghc-temporary-dev,
+ libghc-test-framework-dev,
+ libghc-test-framework-hunit-dev,
+ libghc-test-framework-quickcheck2-dev,
+ libghc-unix-compat-dev,
+ libghc-uuid-dev,
+ libghc-vector-dev,
+Build-Depends-Indep: ghc-doc,
+ libghc-aeson-doc,
+ libghc-attoparsec-doc,
+ libghc-authenticate-oauth-doc,
+ libghc-base16-bytestring-doc,
+ libghc-byteable-doc,
+ libghc-case-insensitive-doc,
+ libghc-cryptohash-doc,
+ libghc-exceptions-doc,
+ libghc-hashable-doc,
+ libghc-http-client-doc,
+ libghc-http-client-tls-doc,
+ libghc-http-types-doc,
+ libghc-lens-doc,
+ libghc-lens-aeson-doc,
+ libghc-mime-types-doc,
+ libghc-psqueues-doc,
+ libghc-text-doc,
+ libghc-time-locale-compat-doc,
+ libghc-unordered-containers-doc,
+Standards-Version: 3.9.8
+Homepage: http://www.serpentine.com/wreq
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-haskell/DHG_packages.git/tree/p/haskell-wreq
+Vcs-Git: https://anonscm.debian.org/cgit/pkg-haskell/DHG_packages.git
+X-Description: easy-to-use HTTP client library
+ A web client library that is designed for ease of use.
+ .
+ Features include:
+  * Simple but powerful `lens`-based API
+  * A solid test suite, and built on reliable libraries like
+    http-client and lens
+  * Session handling includes connection keep-alive and pooling, and
+    cookie persistence
+  * Automatic response body decompression
+  * Powerful multipart form and file upload handling
+  * Support for JSON requests and responses, including navigation of
+    schema-less responses
+  * Basic and OAuth2 bearer authentication
+  * Early TLS support via the tls package
+
+Package: libghc-wreq-dev
+Architecture: any
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
+
+Package: libghc-wreq-prof
+Architecture: any
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
+
+Package: libghc-wreq-doc
+Architecture: all
+Section: doc
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
diff --git a/p/haskell-wreq/debian/copyright b/p/haskell-wreq/debian/copyright
new file mode 100644
index 0000000..a86cfe7
--- /dev/null
+++ b/p/haskell-wreq/debian/copyright
@@ -0,0 +1,39 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: wreq
+Upstream-Contact: bos at serpentine.com
+Source: https://hackage.haskell.org/package/wreq
+
+Files: *
+Copyright: 2014 Bryan O'Sullivan
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: held by the contributors mentioned in debian/changelog
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ .
+ * Neither the name of nor the names of other contributors may be used
+   to endorse or promote products derived from this software without
+   specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/p/haskell-wreq/debian/patches/disable-network-tests b/p/haskell-wreq/debian/patches/disable-network-tests
new file mode 100644
index 0000000..07f0bc2
--- /dev/null
+++ b/p/haskell-wreq/debian/patches/disable-network-tests
@@ -0,0 +1,29 @@
+--- a/tests/UnitTests.hs
++++ b/tests/UnitTests.hs
+@@ -319,7 +319,7 @@
+     , testCase "put" $ basicPut verb site
+     , testCase "delete" $ basicDelete verb site
+     , testCase "404" $ throwsStatusCode verb site
+-    , testCase "headRedirect" $ headRedirect verb site
++--    , testCase "headRedirect" $ headRedirect verb site
+     , testCase "redirectOverflow" $ redirectOverflow verb site
+     , testCase "invalidURL" $ invalidURL verb site
+     , testCase "funkyScheme" $ funkyScheme verb site
+@@ -352,8 +352,6 @@
+ 
+ -- Tests that our local httpbin clone doesn't yet support.
+ httpbinTests verb = [testGroup "httpbin" [
+-    testGroup "http" $ httpbinTestsWith verb ("http://httpbin.org" <>)
+-  , testGroup "https" $ httpbinTestsWith verb ("https://httpbin.org" <>)
+   ]]
+ 
+ -- Tests that httpbin.org doesn't support.
+@@ -381,8 +379,6 @@
+   Session.withSession $ \s ->
+     flip E.finally (killThread tid) .
+     defaultMain $ tests <>
+-                  [ testGroup "plain" $ httpbinTests basic
+-                  , testGroup "session" $ httpbinTests (session s)] <>
+       case mserv of
+         Nothing -> []
+         Just binding -> [
diff --git a/p/haskell-wreq/debian/patches/fix-doctests b/p/haskell-wreq/debian/patches/fix-doctests
new file mode 100644
index 0000000..687082f
--- /dev/null
+++ b/p/haskell-wreq/debian/patches/fix-doctests
@@ -0,0 +1,23 @@
+--- a/tests/DocTests.hs
++++ b/tests/DocTests.hs
+@@ -41,7 +41,7 @@
+ 
+ getDistDir :: IO FilePath
+ getDistDir = do
+-  names <- getDirectoryContents "dist"
++  names <- getDirectoryContents "dist-ghc"
+   return $ case filter ("dist-sandbox-" `isPrefixOf`) names of
+-             (d:_) -> "dist/" ++ d
+-             _     -> "dist"
++             (d:_) -> "dist-ghc/" ++ d
++             _     -> "dist-ghc"
+--- a/wreq.cabal
++++ b/wreq.cabal
+@@ -216,6 +216,7 @@
+   if !flag(doctest)
+     buildable: False
+   else
++    buildable: False
+     build-depends:
+       base >= 4.5 && < 5,
+       directory,
diff --git a/p/haskell-wreq/debian/patches/series b/p/haskell-wreq/debian/patches/series
new file mode 100644
index 0000000..1f23f04
--- /dev/null
+++ b/p/haskell-wreq/debian/patches/series
@@ -0,0 +1,2 @@
+fix-doctests
+disable-network-tests
diff --git a/p/haskell-wreq/debian/rules b/p/haskell-wreq/debian/rules
new file mode 100755
index 0000000..85a7ef1
--- /dev/null
+++ b/p/haskell-wreq/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+DEB_ENABLE_TESTS = yes
+DEB_CABAL_PACKAGE = wreq
+DEB_DEFAULT_COMPILER = ghc
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
diff --git a/p/haskell-wreq/debian/source/format b/p/haskell-wreq/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/p/haskell-wreq/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/p/haskell-wreq/debian/watch b/p/haskell-wreq/debian/watch
new file mode 100644
index 0000000..cc770c3
--- /dev/null
+++ b/p/haskell-wreq/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://hackage.haskell.org/package/wreq/distro-monitor .*-([0-9\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list