--- haskelldb-0.9.cvs.601.orig/src/Database/HaskellDB/FieldType.hs +++ haskelldb-0.9.cvs.601/src/Database/HaskellDB/FieldType.hs @@ -73,7 +73,7 @@ mkCalendarTime = toUTCTime instance Typeable CalendarTime where -- not available in standard libraries - typeOf _ = mkAppTy (mkTyCon "System.Time.CalendarTime") [] + typeOf _ = mkTyConApp (mkTyCon "System.Time.CalendarTime") [] instance Typeable (BoundedString n) where - typeOf _ = mkAppTy (mkTyCon "Database.HaskellDB.BoundedString") [] + typeOf _ = mkTyConApp (mkTyCon "Database.HaskellDB.BoundedString") [] --- haskelldb-0.9.cvs.601.orig/Setup.lhs +++ haskelldb-0.9.cvs.601/Setup.lhs @@ -0,0 +1,6 @@ +#!/usr/bin/env runhugs + +> import Distribution.Simple + +> main = defaultMain + --- haskelldb-0.9.cvs.601.orig/debian/changelog +++ haskelldb-0.9.cvs.601/debian/changelog @@ -0,0 +1,73 @@ +haskelldb (0.9.cvs.601-8ubuntu3) dapper; urgency=low + + * Rebuild for libmysqlclient change (closes: lp#45082). + + -- Stefan Potyra Wed, 17 May 2006 06:46:09 +0200 + +haskelldb (0.9.cvs.601-8ubuntu2) dapper; urgency=low + + * Rebuild for registered/unregistered change of ghc6 on amd64/sparc. + + -- Stefan Potyra Wed, 12 Apr 2006 19:02:39 +0200 + +haskelldb (0.9.cvs.601-8ubuntu1) dapper; urgency=low + + * Update build-depends to ghc6.4.1. + + -- Stefan Potyra Tue, 7 Feb 2006 21:06:56 +0100 + +haskelldb (0.9.cvs.601-8) unstable; urgency=low + + * QA upload. + * Add build dependencies on libghc6-hsql-mysql-dev, libghc6-hsql-odbc-dev, + libghc6-hsql-postgresql-dev, libghc6-hsql-sqlite-dev. Closes: #329835. + * Remove dh_make examples. + * debian/watch: Add. + * Conforms to Standards version 3.6.2. + + -- Matej Vela Sat, 24 Sep 2005 18:15:12 +0200 + +haskelldb (0.9.cvs.601-7) unstable; urgency=low + + * [NMU] Rebuilt to get newer gmp3. Closes: #329275. + * Updated dep on haskell-hsql to version in sid. + + -- John Goerzen Wed, 21 Sep 2005 05:38:29 -0500 + +haskelldb (0.9.cvs.601-6) unstable; urgency=low + + * [NMU] Built against GHC 6.4 + + -- John Goerzen Thu, 12 May 2005 07:51:57 -0500 + +haskelldb (0.9.cvs.601-5) unstable; urgency=low + + * Orphaning this package. + + -- John Goerzen Tue, 19 Apr 2005 23:15:27 -0500 + +haskelldb (0.9.cvs.601-4) unstable; urgency=low + + * Update cabal file syntax for newer cabal and build-dep on newer + haskell-devscripts. Closes: #301643. + + -- John Goerzen Mon, 28 Mar 2005 09:10:21 -0600 + +haskelldb (0.9.cvs.601-3) unstable; urgency=low + + * Added some missing HSQL modules to Exposed-Modules. + + -- John Goerzen Mon, 14 Feb 2005 16:23:14 -0600 + +haskelldb (0.9.cvs.601-2) unstable; urgency=low + + * Removed incorrect dep on ghc. + + -- John Goerzen Fri, 11 Feb 2005 15:46:45 -0600 + +haskelldb (0.9.cvs.601-1) unstable; urgency=low + + * Initial Release. Closes: #294818. + + -- John Goerzen Fri, 11 Feb 2005 13:32:03 -0600 + --- haskelldb-0.9.cvs.601.orig/debian/watch +++ haskelldb-0.9.cvs.601/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://prdownloads.sourceforge.net/haskelldb/haskelldb-(.*)\.tar\.gz --- haskelldb-0.9.cvs.601.orig/debian/compat +++ haskelldb-0.9.cvs.601/debian/compat @@ -0,0 +1 @@ +4 --- haskelldb-0.9.cvs.601.orig/debian/control +++ haskelldb-0.9.cvs.601/debian/control @@ -0,0 +1,27 @@ +Source: haskelldb +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 4.0.0), ghc6 (>= 6.4.1), ghc6 (<< 6.4.1-999), haskell-devscripts (>= 0.5.6), libghc6-hsql-dev (>= 1.6-4), libghc6-hsql-mysql-dev, libghc6-hsql-odbc-dev, libghc6-hsql-postgresql-dev, libghc6-hsql-sqlite-dev +Standards-Version: 3.6.2 + +Package: libghc6-haskelldb-dev +Section: libdevel +Architecture: any +Suggests: haskelldb-bin +Depends: libghc6-hsql-dev (>= 1.4-5), ${shlibs:Depends}, ${haskell:Depends} +Description: Haskell library for expressing database queries + HaskellDB is a Haskell library for expressing database queries and + operations in a type safe and declarative way. HaskellDB compiles a + relational algebra-like syntax into SQL, submits the operations to the + database for processing, and returns the results as ordinary Haskell + values. + . + HaskellDB is written entirely in Haskell. + +Package: haskelldb-bin +Section: devel +Architecture: any +Depends: ${shlibs:Depends} +Description: Utilities for use with HaskellDB + This package provides the DBDirect program that is used to generate + HaskellDB interfaces automatically based on what is in a database. --- haskelldb-0.9.cvs.601.orig/debian/copyright +++ haskelldb-0.9.cvs.601/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by John Goerzen on +Fri, 11 Feb 2005. + +It was downloaded from haskelldb.sourceforge.net + +Copyright: + +Copyright (c) 1999 Daan Leijen, daan@cs.uu.nl +Copyright (c) 2003-2004 The HaskellDB development team +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 names of the copyright holders nor the names of the + 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. --- haskelldb-0.9.cvs.601.orig/debian/docs +++ haskelldb-0.9.cvs.601/debian/docs @@ -0,0 +1,4 @@ +BUGS +NEWS +README +TODO --- haskelldb-0.9.cvs.601.orig/debian/haskelldb-bin.dirs +++ haskelldb-0.9.cvs.601/debian/haskelldb-bin.dirs @@ -0,0 +1 @@ +usr/bin --- haskelldb-0.9.cvs.601.orig/debian/haskelldb-dev.dirs +++ haskelldb-0.9.cvs.601/debian/haskelldb-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- haskelldb-0.9.cvs.601.orig/debian/haskelldb-dev.install +++ haskelldb-0.9.cvs.601/debian/haskelldb-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/lib/*.la --- haskelldb-0.9.cvs.601.orig/debian/rules +++ haskelldb-0.9.cvs.601/debian/rules @@ -0,0 +1,127 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + ./preprocess -DWITH_HSQL_ODBC -DWITH_HSQL_MYSQL -DWITH_HSQL_SQLITE \ + -DWITH_HSQL_POSTGRESQL \ + src/Database/HaskellDB/GenericConnect.pphs > \ + src/Database/HaskellDB/GenericConnect.hs + + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + -./setup clean + -rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist \ + src/Database/HaskellDB/GenericConnect.hs local-pkg \ + DBDirect + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -a + + # Add here commands to install the package into debian/tmp + #$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + dh_haskell -a + #echo "[" > local-pkg + #cat .installed-pkg-config >> local-pkg + #echo "]" >> local-pkg + #ghc6 -O2 -o DBDirect -Ldist/build -odir dist/build/src \ + # -package-conf local-pkg \ + # -hidir dist/build/src -idist/build/src -isrc \ + # -fallow-overlapping-instances -fglasgow-exts \ + # -fallow-undecidable-instances \ + # -package haskelldb --make src/DBDirect.hs + cp dist/build/src/DBDirect debian/haskelldb-bin/usr/bin/ + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installexamples -a +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman -a + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- haskelldb-0.9.cvs.601.orig/haskelldb.cabal +++ haskelldb-0.9.cvs.601/haskelldb.cabal @@ -0,0 +1,39 @@ +Name: haskelldb +Version: 0.9 +License: BSD3 +Maintainer: The HaskellDB development team +Copyright: Copyright (c) 1999 Daan Leijen, daan@cs.uu.nl; Copyright (c) 2003-2004 The HaskellDB development team +HS-Source-Dir: src +Exposed-Modules: Database.HaskellDB, + Database.HaskellDB.DriverAPI, + Database.HaskellDB.HDBRec, + Database.HaskellDB.FieldType, + Database.HaskellDB.PrimQuery, + Database.HaskellDB.Sql, + Database.HaskellDB.Query, + Database.HaskellDB.Optimize, + Database.HaskellDB.Database, + Database.HaskellDB.BoundedString, + Database.HaskellDB.BoundedList, + Database.HaskellDB.DBSpec, + Database.HaskellDB.DBLayout, + Database.HaskellDB.DBSpec.DBInfo, + Database.HaskellDB.DBSpec.DBSpecToDatabase, + Database.HaskellDB.DBSpec.DBSpecToDBDirect, + Database.HaskellDB.DBSpec.DatabaseToDBSpec, + Database.HaskellDB.DBSpec.PPHelpers, + Database.HaskellDB.HSQL.Common, + Database.HaskellDB.GenericConnect, + Database.HaskellDB.HSQL.ODBC, + Database.HaskellDB.HSQL.MySQL, + Database.HaskellDB.HSQL.SQLite, + Database.HaskellDB.HSQL.PostgreSQL +Build-Depends: hsql>=1.4, base +Extensions: AllowOverlappingInstances, AllowUndecidableInstances +ghc-options: -fglasgow-exts -O2 + +Executable: DBDirect +Main-Is: DBDirect.hs +Extensions: AllowOverlappingInstances, AllowUndecidableInstances +HS-Source-Dir: src +ghc-options: -fglasgow-exts -O2