[Pkg-haskell-commits] r798 - /packages/haskelldb-dynamic/trunk/debian/
arjan at users.alioth.debian.org
arjan at users.alioth.debian.org
Sun Nov 11 16:51:53 UTC 2007
Author: arjan
Date: Sun Nov 11 16:51:53 2007
New Revision: 798
URL: http://svn.debian.org/wsvn/pkg-haskell/?sc=1&rev=798
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
packages/haskelldb-dynamic/trunk/debian/
packages/haskelldb-dynamic/trunk/debian/DBDirect.1
packages/haskelldb-dynamic/trunk/debian/changelog
packages/haskelldb-dynamic/trunk/debian/compat
packages/haskelldb-dynamic/trunk/debian/control
packages/haskelldb-dynamic/trunk/debian/copyright
packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.dirs
packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.manpages
packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.dirs
packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.install
packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.dirs
packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.doc-base
packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.docs
packages/haskelldb-dynamic/trunk/debian/mk-haskell-depends
packages/haskelldb-dynamic/trunk/debian/rules (with props)
packages/haskelldb-dynamic/trunk/debian/watch
Added: packages/haskelldb-dynamic/trunk/debian/DBDirect.1
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/DBDirect.1?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/DBDirect.1 (added)
+++ packages/haskelldb-dynamic/trunk/debian/DBDirect.1 Sun Nov 11 16:51:53 2007
@@ -1,0 +1,61 @@
+.TH DBDirect "1" "December 2006" "DBDirect" "User Commands"
+.SH NAME
+DBDirect \- Database interface generator for use with HaskellDB
+.SH SYNOPSIS
+.B DtdToHaskell
+[
+.B -b
+]
+.I driver
+.I options
+.I name
+.
+.SH DESCRIPTION
+DBDirect is a tool which connect to a SQL database and generates a set of Haskell modules which describe the SQL database.
+The generated Haskell modules can be used by the HaskellDB library to manipulate the database.
+.PP
+\fBDBDirect\fP expects a full set of arguments when called, which should consist out of specific \fIdriver\fP, a set of driver specific \fIoptions\fP and a \fImodule\fP name used as base for the Haskell modules.
+The arguments should be given in the order specified below to make sure DBDirect uses the arguments correctly and does not, for example, uses a \fIpassword\fP as an \fIusername\fP.
+.TP
+\fB-b\fP
+enable BoundedString
+.TP
+\fIdriver\fP
+a database type which should be one of \fBODBC\fP, \fBMySQL\fP, \fBPostgreSQL\fP or \fBSQLite\fP.
+.TP
+\fIoptions\fP
+a set of options for the specific \fIdriver\fP.
+.RS
+.TP
+for \fBOBDC\fP the \fIoptions\fP are \fIdsn\fP, \fIuserid\fP and \fIpassword\fP
+.TP
+for \fBMySQL\fP the \fIoptions\fP are \fIserver\fP, \fIdatabase\fP, \fIuserid\fP and \fIpassword\fP
+.TP
+for \fBPostgresSQL\fP the \fIoptions\fP are \fIserver\fP, \fIdatabase\fP, \fIuserid\fP and \fIpassword\fP
+.TP
+for \fBSQLite\fP the \fIoptions\fP are \fIfilepath\fP and \fIIOMode\fP
+.TP
+for \fBWXHaskell\fP the \fIoptions\fP are \fIdsn\fP, \fIuserid\fP and \fIpassword\fP
+.RE
+.TP
+\fImodule\fP
+base name of the database description modules. If this is \fBTest\fP and there are tables \fBtest_tb1\fP and \fBtest_tb2\fP in the database that you run DBDirect against, the following files will be created in the current directory:
+.RS
+.TP
+\(bu Test.hs (just imports and re-exports all the other modules)
+.TP
+\(bu Test/Test_tb1.hs
+.TP
+\(bu Test/Test_tb2.hs
+.RE
+.SH EXAMPLES
+As an example we generate a database description from a test table \fBtest_tb1\fP in the \fBtest_db\fP PostgreSQL database on the local machine.
+The username is \fBbob\fP and the password is \fBsecret\fP.
+To generate the Haskell modules with base \fImodule\fP name \fBDp037\fP we can run:
+.PP
+.RS
+.B DBDirect PostgreSQL localhost test_db bob secret Dp037
+.RE
+.PP
+.SH AUTHOR
+This manual page was party copied and partly written by Arjan Oosting <arjanoosting at home.nl> for the Debian system (but may be used by others).
Added: packages/haskelldb-dynamic/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/changelog?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/changelog (added)
+++ packages/haskelldb-dynamic/trunk/debian/changelog Sun Nov 11 16:51:53 2007
@@ -1,0 +1,7 @@
+haskelldb-dynamic (0.10-1~pre1) experimental; urgency=low
+
+ * Initial Debian release.
+ * New Debian packages due to the divinding of Haskell haskelldb library
+ into a couple of Haskell libraries.
+
+ -- Arjan Oosting <arjan at debian.org> Wed, 07 Nov 2007 18:31:09 +0100
Added: packages/haskelldb-dynamic/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/compat?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/compat (added)
+++ packages/haskelldb-dynamic/trunk/debian/compat Sun Nov 11 16:51:53 2007
@@ -1,0 +1,1 @@
+5
Added: packages/haskelldb-dynamic/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/control?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/control (added)
+++ packages/haskelldb-dynamic/trunk/debian/control Sun Nov 11 16:51:53 2007
@@ -1,0 +1,48 @@
+Source: haskelldb-dynamic
+Section: devel
+Priority: optional
+Maintainer: Arjan Oosting <arjan at debian.org>
+Build-Depends: autotools-dev, dctrl-tools, debhelper (>= 5),
+ dpatch, dpkg-dev (>= 0.13.19), ghc6 (>= 6.4.2),
+ haskell-devscripts (>= 0.5.6), libghc6-haskelldb-dev,
+ libghc6-haskelldb-prof, libghc6-mtl-dev, libghc6-mtl-prof,
+ libghc6-plugins-dev
+Build-Depends-Indep: haddock, ghc6-doc, haskelldb-doc, libghc6-mtl-doc
+Standards-Version: 3.7.2
+Homepage: http://haskelldb.sourceforge.net/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-haskell/packages/haskelldb-dynamic
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic
+
+Package: libghc6-haskelldb-dynamic-dev
+Section: libdevel
+Architecture: any
+Suggests: haskelldb-bin (= ${binary:Version}), haskelldb-dynamic-doc (= ${source:Version})
+Depends: ${haskell:Depends}, ${shlibs:Depends}
+Description: GHC6 library for dynamically loading HaskellDB drivers
+ HaskellDB is library for expressing database queries and operations
+ in a type safe and declarative way. This package contains the library
+ to dynamically load HaskellDB drivers for use with GHC 6.
+ .
+ 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.
+
+Package: haskelldb-bin
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: haskelldb-doc (= ${source:Version})
+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.
+
+Package: haskelldb-dynamic-doc
+Architecture: all
+Section: doc
+Recommends: ghc6-doc, haskelldb-doc, libghc6-mtl-doc
+Suggests: doc-base
+Description: API documentation of haskelldb-dynamic
+ The API documentation of haskelldb-dynamic which is part of
+ HaskellDB, a Haskell library for expressing database queries and
+ operations in a type safe and declarative way.
+
Added: packages/haskelldb-dynamic/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/copyright?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/copyright (added)
+++ packages/haskelldb-dynamic/trunk/debian/copyright Sun Nov 11 16:51:53 2007
@@ -1,0 +1,50 @@
+This package was debianized by Arjan Oosting <arjan at debian.org> on
+Sun, 11 Nov 2007.
+
+It was downloaded from http:/hackage.debian.org/
+
+The original upstream author is Daan Leijen
+Later contributions were by Conny Andersson, Martin Andersson,
+Mary Bergman, Victor Blomqvist, Bjorn Bringert, Anders Hockersten,
+Torbjorn Martin and Jeremy Shaw
+
+The current upstream maintainers can be reached at
+haskelldb-users at lists.sourceforge.net
+
+Copyright:
+
+Copyright (c) 1999 Daan Leijen, daan at cs.uu.nl
+Copyright (c) 2003-2007 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.
+
+
+The Debian packaging is (c) 2007, Arjan Oosting <arjan at debian.org>
+and is licensed under the same terms as haskelldb libraries itself.
Added: packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.dirs
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.dirs?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.dirs (added)
+++ packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.dirs Sun Nov 11 16:51:53 2007
@@ -1,0 +1,1 @@
+usr/bin
Added: packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.manpages
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.manpages?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.manpages (added)
+++ packages/haskelldb-dynamic/trunk/debian/haskelldb-bin.manpages Sun Nov 11 16:51:53 2007
@@ -1,0 +1,1 @@
+debian/DBDirect.1
Added: packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.dirs
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.dirs?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.dirs (added)
+++ packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.dirs Sun Nov 11 16:51:53 2007
@@ -1,0 +1,2 @@
+usr/lib
+usr/include
Added: packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.install
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.install?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.install (added)
+++ packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-dev.install Sun Nov 11 16:51:53 2007
@@ -1,0 +1,5 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
+usr/lib/*.la
Added: packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.dirs
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.dirs?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.dirs (added)
+++ packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.dirs Sun Nov 11 16:51:53 2007
@@ -1,0 +1,1 @@
+usr/share/doc/haskelldb-dynamic-doc
Added: packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.doc-base
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.doc-base?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.doc-base (added)
+++ packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.doc-base Sun Nov 11 16:51:53 2007
@@ -1,0 +1,9 @@
+Document: haskelldb-dynamic-api
+Title: HaskellDB API documentation
+Author: Daan Leijen et. al.
+Abstract: The API documentation for dynamic loading of HaskellDB drivers library
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/haskelldb-dynamic-doc/html/index.html
+Files: /usr/share/doc/haskelldb-dynamic-doc/html/*.html
Added: packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.docs
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.docs?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.docs (added)
+++ packages/haskelldb-dynamic/trunk/debian/haskelldb-dynamic-doc.docs Sun Nov 11 16:51:53 2007
@@ -1,0 +1,3 @@
+dist/doc/html
+
+
Added: packages/haskelldb-dynamic/trunk/debian/mk-haskell-depends
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/mk-haskell-depends?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/mk-haskell-depends (added)
+++ packages/haskelldb-dynamic/trunk/debian/mk-haskell-depends Sun Nov 11 16:51:53 2007
@@ -1,0 +1,250 @@
+#! /bin/sh
+#
+# Determine package dependencies from installed-pkg-config file
+#
+# Copyright (C) 2006 Arjan Oosting <arjan at debian.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of either:
+#
+# 1) The terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# 2) BSD 3-clause license.
+#
+# 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.
+#
+# * The names of contributors may not 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.
+
+set -e
+
+sort_uniq(){
+ {
+ for i in "$@" ; do
+ echo $i
+ done
+ } | sort -u | tr "\n" " "
+}
+
+dependency(){
+ local deb
+ local version
+ local next_upstream_version
+ deb=$1
+ version=`dpkg-query --showformat='${Version}' -W $deb`
+ next_upstream_version=`echo $version | sed -e 's/-[^-]*$/+/'`
+ echo "$deb (>= $version), $deb (<< $next_upstream_version)"
+}
+
+dependencies(){
+ local deb
+ local debs
+ local deps
+ debs=$@
+ for deb in `sort_uniq $debs` ; do
+ deps="$deps, `dependency $deb`"
+ done
+
+ echo $deps | sed -e 's/^,[ ]*//'
+}
+
+providing_package_for_ghc6(){
+ local deb
+ local dep
+ local dir
+ local dirs
+ local lib
+ dep=$1
+ dirs=`ghc-pkg6 field $dep library-dirs | cut -d':' -f 2`
+ lib=`ghc-pkg6 field $dep hs-libraries | sed -e 's|hs-libraries: *\([^ ]*\).*|\1|' `
+ for dir in $dirs ; do
+ if [ -e "$dir/lib$lib.a" ] ; then
+ deb=`dpkg-query -S $dir/lib$lib.a | cut -d':' -f 1` || exit $?
+ continue
+ fi
+ done
+ echo $deb
+}
+
+providing_package_for_ghc6_prof(){
+ local deb
+ local dep
+ local dir
+ local dirs
+ local lib
+ dep=$1
+ dirs=`ghc-pkg6 field $dep library-dirs | cut -d':' -f 2`
+ lib=`ghc-pkg6 field $dep hs-libraries | sed -e 's|hs-libraries: *\([^ ]*\).*|\1|' `
+ for dir in $dirs ; do
+ if [ -e "$dir/lib$lib_p.a" ] ; then
+ deb=`dpkg-query -S $dir/lib$lib.a | cut -d':' -f 1` || exit $?
+ continue
+ fi
+ done
+ echo $deb
+}
+
+cabal_depends(){
+ local config
+ local dep
+ local depends
+ local final_depends
+ until [ -z "$1" ]
+ do
+ config=$1
+ depends="$depends `grep-dctrl -n -i -s Depends "" $config | tr "," " "`"
+ shift
+ done
+ for dep in `sort_uniq $depends` ; do
+ # The package is not mentioned in the ignored package list with the same version
+ # or mentioned without any version in the ignored package list?
+ if echo " $ignores " | grep -qv " $dep " &&
+ echo " $ignores " | grep -qv " `echo $dep | sed s%-[0-9][.0-9a-zA-Z]*$%%` " ;
+ then
+ final_depends="$final_depends $dep"
+ fi
+ done
+ echo $final_depends
+}
+
+depends_for_ghc6(){
+ local dep
+ local debs
+ for dep in `cabal_depends $@` ; do
+ debs="$debs `providing_package_for_ghc6 $dep`"
+ done
+
+ dependencies $debs
+}
+
+depends_for_ghc6_prof(){
+ local dep
+ local debs
+ for dep in `cabal_depends $@` ; do
+ debs="$debs `providing_package_for_ghc6_prof $dep`"
+ done
+
+ dependencies $debs
+}
+
+find_config_for_ghc6(){
+ local f
+ local pkg
+ pkg=$1
+ case "$pkg" in
+ libghc6-*-prof)
+ pkg=`echo $pkg | sed -e 's/-prof$/-dev$/'`
+ ;;
+ *)
+ ;;
+ esac
+ for f in debian/$pkg/usr/lib/haskell-packages/ghc6/lib/*/installed-pkg-config ; do
+ if [ -f "$f" ] ; then
+ echo $f
+ break
+ fi
+ done
+}
+
+
+if ! [ `which grep-dctrl` > /dev/null ] ; then
+ echo "grep-dctrl is missing" >&2
+ exit 1
+fi
+
+args=
+ignores=
+files=
+until [ -z "$1" ]
+do
+ case "$1" in
+ -X*)
+ pkg=${1##-X}
+ ignores="$ignores $pkg"
+ ;;
+
+ --exclude=*)
+ pkg=${1##--exclude=}
+ ignores="$ignores $pkg"
+ ;;
+
+ -*)
+ args="$args $1"
+ ;;
+ *)
+ if [ -f $1 ] ; then
+ files="$files $1"
+ else
+ echo "Installed package description file $1 can not be found" >&2
+ exit 1
+ fi
+ ;;
+ esac
+ shift
+done
+
+for pkg in `dh_listpackages $args`; do
+ sfile=debian/$pkg.substvars
+ touch $sfile
+
+ case "$pkg" in
+ libghc6-*-dev|libghc6-*-prof)
+ config=`find_config_for_ghc6 $pkg`
+ if [ -f "$config" ] ; then
+ files="$files $config"
+ fi
+ if [ -z "$files" ] ; then
+ echo "No installed package description files can not be found" >&2
+ exit 1
+ fi
+ grep -v ^haskell:Depends $sfile > $sfile.tmp || true
+ case "$pkg" in
+ libghc6-*-dev)
+ echo "haskell:Depends=`depends_for_ghc6 $files`" >> $sfile.tmp
+ ;;
+ libghc6-*-prof)
+ echo "haskell:Depends=`depends_for_ghc6_prof $files`" >> $sfile.tmp
+ ;;
+ esac
+ mv $sfile.tmp $sfile
+ ;;
+ *)
+ ;;
+ esac
+done
Added: packages/haskelldb-dynamic/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/rules?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/rules (added)
+++ packages/haskelldb-dynamic/trunk/debian/rules Sun Nov 11 16:51:53 2007
@@ -1,0 +1,88 @@
+#!/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
+
+INCLUDE_DIRS=""
+HADDOCK_INTERFACES="/usr/share/doc/haskelldb-doc/html/haskelldb.haddock"
+HADDOCK_HTML="/usr/share/doc/haskelldb-doc/html"
+
+
+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
+ 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
+ # remove empty directories installed by dh_haskell
+ find debian/libghc6-*-dev/usr/lib/haskell-packages/ -empty -type d -delete
+ sed -i -e "s%haddock-interfaces:.*%haddock-interfaces: $(HADDOCK_INTERFACES)%" \
+ -e "s%haddock-html: .*%haddock-html: $(HADDOCK_HTML)%" \
+ -e "s%include-dirs: .*%include-dirs: $(INCLUDE_DIRS)%" \
+ debian/libghc6-*-dev/usr/lib/haskell-packages/ghc6/lib/*/installed-pkg-config
+ dh_install -s
+
+install-indep: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+ dh_haskell -i
+ ./setup haddock
+ 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
+ sh -e debian/mk-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/haskelldb-dynamic/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: packages/haskelldb-dynamic/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskelldb-dynamic/trunk/debian/watch?rev=798&op=file
==============================================================================
--- packages/haskelldb-dynamic/trunk/debian/watch (added)
+++ packages/haskelldb-dynamic/trunk/debian/watch Sun Nov 11 16:51:53 2007
@@ -1,0 +1,3 @@
+version=3
+http://hackage.haskell.org/packages/archive/haskelldb-dynamic/([\d.]+)/haskelldb-dynamic-([\d.]+).tar.gz
+
More information about the Pkg-haskell-commits
mailing list