--- haskell-hsql-sqlite3-1.7.1.orig/SQLite3.buildinfo +++ haskell-hsql-sqlite3-1.7.1/SQLite3.buildinfo @@ -0,0 +1,22 @@ +buildable: True +build-tools: +cpp-options: +cc-options: +ld-options: +pkgconfig-depends: +frameworks: +c-sources: +extensions: +extra-libraries: sqlite3 +extra-lib-dirs: +includes: +install-includes: +include-dirs: +hs-source-dirs: +other-modules: +ghc-prof-options: +ghc-shared-options: +ghc-options: +hugs-options: +nhc98-options: +jhc-options: \ No newline at end of file --- 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/watch +++ haskell-hsql-sqlite3-1.7.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://hackage.haskell.org/packages/archive/hsql-sqlite3/([\d.]+)/hsql-sqlite3-([\d.]+).tar.gz --- haskell-hsql-sqlite3-1.7.1.orig/debian/control +++ haskell-hsql-sqlite3-1.7.1/debian/control @@ -0,0 +1,58 @@ +Source: haskell-hsql-sqlite3 +Section: haskell +Priority: optional +Maintainer: Debian Haskell Group +Uploaders: Víctor Pérez Pereira +Build-Depends: + cpphs, + debhelper (>= 7), + cdbs, + haskell-devscripts, + ghc6 (>= 6.10), + ghc6-prof, + libghc6-hsql-dev (>= 1.7), + libghc6-hsql-prof (>= 1.7), + libsqlite3-dev, + pkg-config, + ghc6-doc, + haddock, + hscolour, + haskell-hsql-doc +Standards-Version: 3.8.3 +Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-hsql-sqlite3/ + +Package: libghc6-hsql-sqlite3-dev +Architecture: any +Depends: ${haskell:Depends}, libsqlite3-dev, ${shlibs:Depends}, ${misc:Depends} +Suggests: ${haskell:Suggests} +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} +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: haskell-hsql-sqlite3-doc +Section: doc +Architecture: all +Depends: ${haskell:Depends}, ${misc:Depends} +Suggests: ${haskell:Suggests} +Recommends: ${haskell:Depends} +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/copyright +++ haskell-hsql-sqlite3-1.7.1/debian/copyright @@ -0,0 +1,45 @@ +This package was debianized by Arjan Oosting 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 + (C) 2009 Joachim Breitner + +The Debian packaging can be redistributed and/or modified under the +same terms as HSQL itself. --- 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/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 , Mon, 4 Feb 2008 07:07:47 +0100 --- haskell-hsql-sqlite3-1.7.1.orig/debian/changelog +++ haskell-hsql-sqlite3-1.7.1/debian/changelog @@ -0,0 +1,18 @@ +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 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 Mon, 04 Feb 2008 21:54:52 +0100 --- 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 +## +## 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) --- 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 +## +## 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