[Pkg-haskell-commits] r1068 - in /packages/haskell-hsql-postgresql/trunk/debian: ./ README.Debian changelog compat control copyright patches/ patches/00list patches/01_update-cabal-file.dpatch patches/02_update-setup-for-Cabal-1.2.dpatch rules watch
arjan at users.alioth.debian.org
arjan at users.alioth.debian.org
Mon Feb 4 05:57:29 UTC 2008
Author: arjan
Date: Mon Feb 4 05:57:29 2008
New Revision: 1068
URL: http://svn.debian.org/wsvn/pkg-haskell/?sc=1&rev=1068
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
packages/haskell-hsql-postgresql/trunk/debian/
packages/haskell-hsql-postgresql/trunk/debian/README.Debian
packages/haskell-hsql-postgresql/trunk/debian/changelog
packages/haskell-hsql-postgresql/trunk/debian/compat
packages/haskell-hsql-postgresql/trunk/debian/control
packages/haskell-hsql-postgresql/trunk/debian/copyright
packages/haskell-hsql-postgresql/trunk/debian/patches/
packages/haskell-hsql-postgresql/trunk/debian/patches/00list
packages/haskell-hsql-postgresql/trunk/debian/patches/01_update-cabal-file.dpatch (with props)
packages/haskell-hsql-postgresql/trunk/debian/patches/02_update-setup-for-Cabal-1.2.dpatch (with props)
packages/haskell-hsql-postgresql/trunk/debian/rules (with props)
packages/haskell-hsql-postgresql/trunk/debian/watch
Added: packages/haskell-hsql-postgresql/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/README.Debian?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/README.Debian (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/README.Debian Mon Feb 4 05:57:29 2008
@@ -1,0 +1,7 @@
+To gain access to this package's functions, use:
+
+-package hsql-postgresql
+
+on your ghc command line.
+
+ -- Arjan Oosting <arjan at debian.org>, Mon, 4 Feb 2008 00:48:21 +0100
Added: packages/haskell-hsql-postgresql/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/changelog?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/changelog (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/changelog Mon Feb 4 05:57:29 2008
@@ -1,0 +1,7 @@
+haskell-hsql-postgresql (1.7-1~pre1) unstable; urgency=low
+
+ * New upstream release. The source tarball of haskell-hsql has been
+ split up and every Haskell library has it's own source source tarball
+ now.
+
+ -- Arjan Oosting <arjan at debian.org> Mon, 04 Feb 2008 00:32:01 +0100
Added: packages/haskell-hsql-postgresql/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/compat?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/compat (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/compat Mon Feb 4 05:57:29 2008
@@ -1,0 +1,1 @@
+4
Added: packages/haskell-hsql-postgresql/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/control?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/control (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/control Mon Feb 4 05:57:29 2008
@@ -1,0 +1,51 @@
+Source: haskell-hsql-postgresql
+Section: devel
+Priority: optional
+Maintainer: Arjan Oosting <arjan at debian.org>
+Uploaders: VÃctor Pérez Pereira <vperez at debianvenezuela.org>
+Build-Depends: cpphs, debhelper (>= 4.0.0), dpatch,
+ haskell-devscripts (>= 0.6.0), ghc6 (>= 6.8.2), ghc6-prof,
+ libghc6-hsql-dev (>= 1.7), libghc6-hsql-prof (>= 1.7),
+ libpq-dev (>= 8.0)
+Build-Depends-Indep: ghc6-doc, haddock, haskell-hsql-doc
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-haskell/packages/haskell-hsql-postgresql/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk
+
+Package: libghc6-hsql-postgresql-dev
+Architecture: any
+Section: libdevel
+Suggests: haskell-hsql-postgresql-doc
+Depends: ${haskell:Depends}, libpq-dev (>= 8.0), ${shlibs:Depends}, ${misc:Depends}
+Description: PostgreSQL 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-postgresql-prof
+Architecture: any
+Section: libdevel
+Suggests: haskell-hsql-postgresql-doc
+Depends: libghc6-hsql-postgresql-dev (= ${binary:Version}), ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: PostgreSQL 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-postgresql-doc
+Section: doc
+Architecture: all
+Suggests: libghc6-hsql-postgresql-dev
+Recommends: ghc6-doc, haskell-hsql-doc
+Description: API documentation of the hsql-postgresql 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 PostgreSQL driver of HSQL.
Added: packages/haskell-hsql-postgresql/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/copyright?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/copyright (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/copyright Mon Feb 4 05:57:29 2008
@@ -1,0 +1,44 @@
+This package was debianized by Arjan Oosting <arjan at 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-postgresql-1.7
+
+Copyright (c) 2003-2007, 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 at debian.org>
+
+The Debian packaging can be redistributed and/or modified under the
+same terms as HSQL itself.
Added: packages/haskell-hsql-postgresql/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/patches/00list?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/patches/00list (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/patches/00list Mon Feb 4 05:57:29 2008
@@ -1,0 +1,2 @@
+01_update-cabal-file
+02_update-setup-for-Cabal-1.2
Added: packages/haskell-hsql-postgresql/trunk/debian/patches/01_update-cabal-file.dpatch
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/patches/01_update-cabal-file.dpatch?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/patches/01_update-cabal-file.dpatch (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/patches/01_update-cabal-file.dpatch Mon Feb 4 05:57:29 2008
@@ -1,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_update-cabal-file.dpatch by Arjan Oosting <arjan at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad haskell-hsql-postgresql-1.7~/hsql-postgresql.cabal haskell-hsql-postgresql-1.7/hsql-postgresql.cabal
+--- haskell-hsql-postgresql-1.7~/hsql-postgresql.cabal 2007-04-09 20:49:47.000000000 +0200
++++ haskell-hsql-postgresql-1.7/hsql-postgresql.cabal 2008-02-04 00:55:48.000000000 +0100
+@@ -5,6 +5,6 @@
+ category: Database
+ description: PostgreSQL driver for HSQL.
+ exposed-modules: Database.HSQL.PostgreSQL
+-build-depends: base, hsql
++build-depends: base, hsql, old-time
+ extensions: ForeignFunctionInterface, CPP
+-extra-libraries: pq
+\ No newline at end of file
++extra-libraries: pq
Propchange: packages/haskell-hsql-postgresql/trunk/debian/patches/01_update-cabal-file.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/haskell-hsql-postgresql/trunk/debian/patches/02_update-setup-for-Cabal-1.2.dpatch
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/patches/02_update-setup-for-Cabal-1.2.dpatch?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/patches/02_update-setup-for-Cabal-1.2.dpatch (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/patches/02_update-setup-for-Cabal-1.2.dpatch Mon Feb 4 05:57:29 2008
@@ -1,0 +1,81 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_update-setup-for-Cabal-1.2.dpatch by Arjan Oosting <arjan at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad haskell-hsql-postgresql-1.7~/Setup.lhs haskell-hsql-postgresql-1.7/Setup.lhs
+--- haskell-hsql-postgresql-1.7~/Setup.lhs 2007-04-09 20:49:47.000000000 +0200
++++ haskell-hsql-postgresql-1.7/Setup.lhs 2008-02-04 01:06:12.000000000 +0100
+@@ -3,10 +3,11 @@
+ \begin{code}
+ import Data.Maybe(fromMaybe)
+ 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
+@@ -21,11 +22,10 @@
+ preConf args flags = do
+ try (removeFile "PostgreSQL.buildinfo")
+ return emptyHookedBuildInfo
+- postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ExitCode
++ postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ()
+ postConf args flags _ localbuildinfo = do
+ mb_bi <- pqConfigBuildInfo (configVerbose flags)
+- writeHookedBuildInfo "PostgreSQL.buildinfo" (Just (fromMaybe emptyBuildInfo mb_bi),[])
+- return ExitSuccess
++ writeHookedBuildInfo "PostgreSQL.buildinfo" (Just (fromMaybe emptyBuildInfo mb_bi),[])
+ \end{code}
+
+ The following code is derived from Distribution.Simple.Configure
+@@ -44,38 +44,23 @@
+ 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}
+-pqConfigBuildInfo :: Int -> IO (Maybe BuildInfo)
++pqConfigBuildInfo :: Verbosity -> IO (Maybe BuildInfo)
+ pqConfigBuildInfo verbose = do
+ mb_pq_config_path <- findProgram "pg_config" Nothing
+ case mb_pq_config_path of
+ Just pq_config_path -> do
+ message ("configuring pq library")
+- res <- rawSystemGrabOutput verbose pq_config_path ["--libdir"]
++ res <- rawSystemStdout verbose pq_config_path ["--libdir"]
+ let lib_dirs = words res
+- res <- rawSystemGrabOutput verbose pq_config_path ["--includedir"]
++ res <- rawSystemStdout verbose pq_config_path ["--includedir"]
+ let inc_dirs = words res
+- res <- rawSystemGrabOutput verbose pq_config_path ["--includedir-server"]
++ res <- rawSystemStdout verbose pq_config_path ["--includedir-server"]
+ let inc_dirs_server = words res
+ let bi = emptyBuildInfo{extraLibDirs=lib_dirs, includeDirs=inc_dirs++inc_dirs_server}
+ return (Just bi)
Propchange: packages/haskell-hsql-postgresql/trunk/debian/patches/02_update-setup-for-Cabal-1.2.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/haskell-hsql-postgresql/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/rules?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/rules (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/rules Mon Feb 4 05:57:29 2008
@@ -1,0 +1,77 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#
+# Based on dh-make template containing work of Joey Hess, Craig Small
+# and Bill Allombert.
+#
+
+# Include dpatch
+include /usr/share/dpatch/dpatch.make
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+setup: patch-stamp
+ dh_testdir
+ ghc --make Setup -o setup -package Cabal
+
+build: build-stamp
+build-stamp: setup
+ touch $@
+
+clean: clean-patched unpatch
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ if [ -x setup ] && [ -e .setup-config ]; then ./setup clean ; fi
+ rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
+ dh_clean
+
+install: install-arch install-indep
+install-arch: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+ dh_haskell -s
+ dh_install -s
+
+install-indep: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+ dh_haskell -i
+ dh_install -i
+
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_compress -X.haddock
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_haskell_depends
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: install-indep
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: install-arch
+ $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: binary binary-arch binary-indep build clean clean-patched install install-arch install-indep
Propchange: packages/haskell-hsql-postgresql/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: packages/haskell-hsql-postgresql/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-hsql-postgresql/trunk/debian/watch?rev=1068&op=file
==============================================================================
--- packages/haskell-hsql-postgresql/trunk/debian/watch (added)
+++ packages/haskell-hsql-postgresql/trunk/debian/watch Mon Feb 4 05:57:29 2008
@@ -1,0 +1,5 @@
+
+# See uscan(1) for format
+
+version=3
+http://hackage.haskell.org/packages/archive/hsql-postgresql/([\d.]+)/hsql-postgresql-([\d.]+).tar.gz
More information about the Pkg-haskell-commits
mailing list