--- haskell-hsql-sqlite3-1.7.1.orig/debian/README.Debian
+++ haskell-hsql-sqlite3-1.7.1/debian/README.Debian
@@ -0,0 +1,7 @@
+To gain access to this package's functions, use:
+
+-package hsql-sqlite3
+
+on your ghc command line.
+
+ -- Arjan Oosting <arjan@debian.org>, Mon, 4 Feb 2008 07:07:47 +0100
--- haskell-hsql-sqlite3-1.7.1.orig/debian/compat
+++ haskell-hsql-sqlite3-1.7.1/debian/compat
@@ -0,0 +1 @@
+7
--- haskell-hsql-sqlite3-1.7.1.orig/debian/watch
+++ haskell-hsql-sqlite3-1.7.1/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\
+filenamemangle=s|(.*)/$|hsql-sqlite3-$1.tar.gz|" \
+ http://hackage.haskell.org/packages/archive/hsql-sqlite3 \
+ ([\d\.]*\d)/
--- haskell-hsql-sqlite3-1.7.1.orig/debian/copyright
+++ haskell-hsql-sqlite3-1.7.1/debian/copyright
@@ -0,0 +1,45 @@
+This package was debianized by Arjan Oosting <arjan@debian.org> on
+Mon, 4 Feb 2008 00:25:00 +0100.
+
+It was downloaded from
+http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hsql-sqlite3-1.7
+
+Copyright (c) 2003-2009, Krasimir Angelov
+All rights reserved.
+
+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 the HToolkit nor the names of its 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.
+
+Debian packaging copyright:
+
+ (C) 2007 Arjan Oosting <arjan@debian.org>
+ (C) 2009 Joachim Breitner <nomeata@debian.org>
+
+The Debian packaging can be redistributed and/or modified under the
+same terms as HSQL itself.
--- haskell-hsql-sqlite3-1.7.1.orig/debian/rules
+++ haskell-hsql-sqlite3-1.7.1/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+DEB_BUILD_DEPENDENCIES = build-arch
+DEB_HADDOCK_HTML_DIR = /usr/share/doc/haskell-$(CABAL_PACKAGE)-doc/html/
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
--- haskell-hsql-sqlite3-1.7.1.orig/debian/control
+++ haskell-hsql-sqlite3-1.7.1/debian/control
@@ -0,0 +1,66 @@
+Source: haskell-hsql-sqlite3
+Section: haskell
+Priority: extra
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
+Uploaders: Marco Túlio Gontijo e Silva <marcot@debian.org>
+Build-Depends:
+ debhelper (>= 7),
+ cdbs,
+ haskell-devscripts (>= 0.7),
+ cpphs,
+ ghc6 (>= 6.10),
+ ghc6-prof,
+ ghc6-doc,
+ libghc6-hsql-dev (>= 1.7),
+ libghc6-hsql-prof,
+ haskell-hsql-doc,
+ libsqlite3-dev,
+ pkg-config,
+Standards-Version: 3.8.4
+Homepage: http://hackage.haskell.org/package/hsql-sqlite3
+Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-hsql-sqlite3/
+Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-hsql-sqlite3
+
+Package: libghc6-hsql-sqlite3-dev
+Architecture: any
+Depends: ${haskell:Depends}, libsqlite3-dev, ${shlibs:Depends}, ${misc:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Provides: ${haskell:Provides}
+Description: SQLite driver of the HSQL library for GHC6
+ HSQL provides interfaces for Haskell programmers to the PostgreSQL,
+ MySQL, SQLite, and UnixODBC database systems. There is a generic
+ abstract interface so that code can be used interchangeably with these
+ database systems. In this sense, it is similar to Java's JDBC,
+ Python's DB-API, or Perl's DBI.
+
+Package: libghc6-hsql-sqlite3-prof
+Architecture: any
+Depends: ${haskell:Depends}, ${misc:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Provides: ${haskell:Provides}
+Description: SQLite driver of the HSQL profiling library for GHC6
+ HSQL provides interfaces for Haskell programmers to the PostgreSQL,
+ MySQL, SQLite, and UnixODBC database systems. There is a generic
+ abstract interface so that code can be used interchangeably with these
+ database systems. In this sense, it is similar to Java's JDBC,
+ Python's DB-API, or Perl's DBI.
+
+Package: libghc6-hsql-sqlite3-doc
+Replaces: haskell-hsql-sqlite3-doc (<< 1.7.1-3)
+Conflicts: haskell-hsql-sqlite3-doc (<< 1.7.1-3)
+Provides: haskell-hsql-sqlite3-doc
+Section: doc
+Architecture: all
+Depends: ${haskell:Depends}, ${misc:Depends}
+Suggests: ${haskell:Suggests}
+Recommends: ${haskell:Recommends}
+Description: API documentation of the hsql-sqlite3 library for Haskell
+ HSQL provides interfaces for Haskell programmers to the PostgreSQL,
+ MySQL, SQLite, and UnixODBC database systems. There is a generic
+ abstract interface so that code can be used interchangeably with these
+ database systems. In this sense, it is similar to Java's JDBC,
+ Python's DB-API, or Perl's DBI.
+ .
+ This package provides documentation for SQLite driver of HSQL.
--- haskell-hsql-sqlite3-1.7.1.orig/debian/changelog
+++ haskell-hsql-sqlite3-1.7.1/debian/changelog
@@ -0,0 +1,56 @@
+haskell-hsql-sqlite3 (1.7.1-4) unstable; urgency=low
+
+ * Fix "Updating the haskell-hsql-sqlite3 Uploaders list" changing
+ Uploader (Closes: #576176)
+ * control: Use versioned Replaces: and Conflicts:
+
+ -- Marco Túlio Gontijo e Silva <marcot@debian.org> Wed, 05 May 2010 18:01:45 -0300
+
+haskell-hsql-sqlite3 (1.7.1-3) unstable; urgency=low
+
+ * debian/control: Rename -doc package.
+
+ -- Marco Túlio Gontijo e Silva <marcot@debian.org> Tue, 16 Mar 2010 10:59:45 -0300
+
+haskell-hsql-sqlite3 (1.7.1-2) unstable; urgency=low
+
+ [ Marco Túlio Gontijo e Silva ]
+ * debian/control: Change Priority: to extra.
+ * debian/watch: Use format that works for --download-current-version.
+ * debian/watch: Add .tar.gz to downloaded filename.
+ * debian/watch: Include package name in downloaded .tar.gz.
+ * debian/watch: Remove spaces, since they're not allowed by uscan.
+ * debian/control: Add field Provides: ${haskell:Provides} to -dev and
+ -prof packages.
+ * debian/control: Add Homepage: field.
+ * debian/control: Use Vcs-Browser: field.
+ * debian/control: Remove dependency in hscolour, since it's now a
+ dependency of haskell-devscripts.
+ * debian/control: Remove haddock from Build-Depends:, since it's now a
+ Depends: of haskell-devscripts.
+ * debian/control: Bump Standards-Version: to 3.8.4, no changes needed.
+ * debian/control: Use more sintetic link in Homepage:.
+
+ [ Joachim Breitner ]
+ * Bump haskell-devscripts dependency to 0.7
+
+ -- Joachim Breitner <nomeata@debian.org> Sat, 20 Feb 2010 20:00:52 +0100
+
+haskell-hsql-sqlite3 (1.7.1-1) unstable; urgency=low
+
+ [ Marco Túlio Gontijo e Silva ]
+ * debian/control: Use Debian Haskell Group as Maintainer.
+
+ [ Joachim Breitner ]
+ * New upstream release (Closes: #538367)
+ * Adjust packaging to current practice
+
+ -- Joachim Breitner <nomeata@debian.org> Mon, 07 Sep 2009 16:24:01 +0200
+
+haskell-hsql-sqlite3 (1.7-1) unstable; urgency=low
+
+ * New upstream release. The source tarball of haskell-hsql has been
+ split up and every HSQL Haskell library has its own source source
+ tarball now.
+
+ -- Arjan Oosting <arjan@debian.org> Mon, 04 Feb 2008 21:54:52 +0100
--- haskell-hsql-sqlite3-1.7.1.orig/debian/patches/01_update-cabal-file.dpatch
+++ haskell-hsql-sqlite3-1.7.1/debian/patches/01_update-cabal-file.dpatch
@@ -0,0 +1,17 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_update-cabal-file.dpatch by Arjan Oosting <arjan@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad haskell-hsql-sqlite3-1.7~/hsql-sqlite3.cabal haskell-hsql-sqlite3-1.7/hsql-sqlite3.cabal
+--- haskell-hsql-sqlite3-1.7~/hsql-sqlite3.cabal 2007-04-09 20:53:41.000000000 +0200
++++ haskell-hsql-sqlite3-1.7/hsql-sqlite3.cabal 2008-02-04 07:12:37.000000000 +0100
+@@ -5,5 +5,5 @@
+ category: Database
+ description: SQLite3 driver for HSQL.
+ exposed-modules: Database.HSQL.SQLite3
+-build-depends: base, hsql
++build-depends: base, hsql, old-time
+ extensions: ForeignFunctionInterface, CPP
--- haskell-hsql-sqlite3-1.7.1.orig/debian/patches/00list
+++ haskell-hsql-sqlite3-1.7.1/debian/patches/00list
@@ -0,0 +1,2 @@
+01_update-cabal-file
+02_update-setup-for-Cabal-1.2
--- haskell-hsql-sqlite3-1.7.1.orig/debian/patches/02_update-setup-for-Cabal-1.2.dpatch
+++ haskell-hsql-sqlite3-1.7.1/debian/patches/02_update-setup-for-Cabal-1.2.dpatch
@@ -0,0 +1,90 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_update-setup-for-Cabal-1.2.dpatch by Arjan Oosting <arjan@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad haskell-hsql-sqlite3-1.7~/Setup.lhs haskell-hsql-sqlite3-1.7/Setup.lhs
+--- haskell-hsql-sqlite3-1.7~/Setup.lhs 2007-04-09 20:53:41.000000000 +0200
++++ haskell-hsql-sqlite3-1.7/Setup.lhs 2008-02-04 07:21:52.000000000 +0100
+@@ -2,10 +2,11 @@
+
+ \begin{code}
+ import Distribution.PackageDescription
+-import Distribution.Setup
+ import Distribution.Simple
++import Distribution.Simple.Setup
+ import Distribution.Simple.LocalBuildInfo
+-import Distribution.Simple.Utils(rawSystemVerbose)
++import Distribution.Simple.Utils(rawSystemStdout)
++import Distribution.Verbosity
+ import System.Info
+ import System.Exit
+ import System.Directory
+@@ -20,14 +21,13 @@
+ preConf args flags = do
+ try (removeFile "SQLite3.buildinfo")
+ return emptyHookedBuildInfo
+- postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ExitCode
++ postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ()
+ postConf args flags _ localbuildinfo = do
+ mb_bi <- pkgConfigBuildInfo (configVerbose flags) "sqlite3"
+ let bi = case mb_bi of
+ Just bi -> bi
+ Nothing -> emptyBuildInfo{extraLibs=["sqlite3"]}
+- writeHookedBuildInfo "SQLite3.buildinfo" (Just bi,[])
+- return ExitSuccess
++ writeHookedBuildInfo "SQLite3.buildinfo" (Just bi,[])
+ \end{code}
+
+ The following code is derived from Distribution.Simple.Configure
+@@ -46,42 +46,27 @@
+ message ("Using " ++ name ++ ": " ++ path)
+ return (Just path)
+
+-rawSystemGrabOutput :: Int -> FilePath -> [String] -> IO String
+-rawSystemGrabOutput verbose path args = do
+- when (verbose > 0) $
+- putStrLn (path ++ concatMap (' ':) args)
+- (inp,out,err,pid) <- runInteractiveProcess path args Nothing Nothing
+- exitCode <- waitForProcess pid
+- if exitCode /= ExitSuccess
+- then do errMsg <- hGetContents err
+- hPutStr stderr errMsg
+- exitWith exitCode
+- else return ()
+- hClose inp
+- hClose err
+- hGetContents out
+-
+ message :: String -> IO ()
+ message s = putStrLn $ "configure: " ++ s
+ \end{code}
+
+ Populate BuildInfo using pkg-config tool.
+ \begin{code}
+-pkgConfigBuildInfo :: Int -> String -> IO (Maybe BuildInfo)
++pkgConfigBuildInfo :: Verbosity -> String -> IO (Maybe BuildInfo)
+ pkgConfigBuildInfo verbose pkgName = do
+ mb_pkg_config_path <- findProgram "pkg-config" Nothing
+ case mb_pkg_config_path of
+ Just pkg_config_path -> do
+ message ("configuring "++pkgName++" package using pkg-config")
+- res <- rawSystemGrabOutput verbose pkg_config_path [pkgName, "--libs-only-l"]
++ res <- rawSystemStdout verbose pkg_config_path [pkgName, "--libs-only-l"]
+ let libs = map (tail.tail) (words res)
+- res <- rawSystemGrabOutput verbose pkg_config_path [pkgName, "--libs-only-L"]
++ res <- rawSystemStdout verbose pkg_config_path [pkgName, "--libs-only-L"]
+ let lib_dirs = map (tail.tail) (words res)
+- res <- rawSystemGrabOutput verbose pkg_config_path [pkgName, "--libs-only-other"]
++ res <- rawSystemStdout verbose pkg_config_path [pkgName, "--libs-only-other"]
+ let ld_opts = words res
+- res <- rawSystemGrabOutput verbose pkg_config_path [pkgName, "--cflags-only-I"]
++ res <- rawSystemStdout verbose pkg_config_path [pkgName, "--cflags-only-I"]
+ let inc_dirs = map (tail.tail) (words res)
+- res <- rawSystemGrabOutput verbose pkg_config_path [pkgName, "--cflags-only-other"]
++ res <- rawSystemStdout verbose pkg_config_path [pkgName, "--cflags-only-other"]
+ let cc_opts = words res
+ let bi = emptyBuildInfo{extraLibs=libs, extraLibDirs=lib_dirs, ldOptions=ld_opts, includeDirs=inc_dirs, ccOptions=cc_opts}
+ return (Just bi)