[Pkg-haskell-commits] r743 - in /packages/hs-plugins/trunk: ./ debian/ debian/patches/
arjan at users.alioth.debian.org
arjan at users.alioth.debian.org
Fri Jun 22 15:57:36 UTC 2007
Author: arjan
Date: Fri Jun 22 15:57:36 2007
New Revision: 743
URL: http://svn.debian.org/wsvn/pkg-haskell/?sc=1&rev=743
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
packages/hs-plugins/trunk/debian/
packages/hs-plugins/trunk/debian/README.Debian
packages/hs-plugins/trunk/debian/changelog
packages/hs-plugins/trunk/debian/compat
packages/hs-plugins/trunk/debian/control
packages/hs-plugins/trunk/debian/copyright
packages/hs-plugins/trunk/debian/libghc6-plugins-dev.examples
packages/hs-plugins/trunk/debian/libghc6-plugins-dev.postinst
packages/hs-plugins/trunk/debian/libghc6-plugins-dev.prerm
packages/hs-plugins/trunk/debian/mk-haskell-depends
packages/hs-plugins/trunk/debian/patches/
packages/hs-plugins/trunk/debian/patches/00list
packages/hs-plugins/trunk/debian/patches/20config.mk.in.dpatch (with props)
packages/hs-plugins/trunk/debian/patches/30fix-for-ghc-6.6.dpatch (with props)
packages/hs-plugins/trunk/debian/rules (with props)
Removed:
packages/hs-plugins/trunk/configure
Added: packages/hs-plugins/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/README.Debian?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/README.Debian (added)
+++ packages/hs-plugins/trunk/debian/README.Debian Fri Jun 22 15:57:36 2007
@@ -1,0 +1,11 @@
+hs-plugins for Debian
+=====================
+
+hs-plugins documentation in HTML form can be found at:
+ http://www.cse.unsw.edu.au/~dons/hs-plugins/
+
+The HTML documentation is not included in the Debian package as building it
+requires tex2page which is not available on all architectures supported by
+Debian.
+
+ -- Jérémy Bobbio <jeremy.bobbio at etu.upmc.fr> Sat, 30 Sep 2006 13:27:10 +0200
Added: packages/hs-plugins/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/changelog?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/changelog (added)
+++ packages/hs-plugins/trunk/debian/changelog Fri Jun 22 15:57:36 2007
@@ -1,0 +1,78 @@
+hs-plugins (0.9.10-3.4) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Set urgency to high to get the fixed version in etch.
+ * Fix failure to install due tue missing dependencies (Closes: #398384):
+ - debian/mk-haskell-depends: update script to take installed package
+ configuration files as arguments.
+ - debian/rules: call debian/mk-haskell-depends script with the
+ installed package configuration files as arguments.
+ - debian/control: add dctrl-tools to Build-Depends.
+ * debian/rules: properly cleanup leftover
+ docs/hs-plugins.{aux,dvi,log,ps} on clean.
+
+ -- Arjan Oosting <arjan at debian.org> Mon, 13 Nov 2006 21:49:53 +0100
+
+hs-plugins (0.9.10-3.3) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * debian/control: also use ${haskell:Depends} for the dependency on
+ ghc6.
+ * debian/patches/30fix-for-ghc-6.6.dpatch: add -$(VERSION) to
+ -package-name $(PKG) to fix FTBFS. (Closes: 394305)
+ * debian/mk-haskell-depends: added to generate the dependencies on the
+ other libghc6-*-dev packages and the dependency on ghc6.
+
+ -- Arjan Oosting <arjan at debian.org> Sat, 28 Oct 2006 01:58:40 +0200
+
+hs-plugins (0.9.10-3.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Register package with ghc-pkg update instead of ghc-pkg --add-package
+ to make sure conflicting packages are hidden on install. Also gerate a
+ dependency on libghc6-cabal-dev if the package is build against
+ it. (Closes: #372840)
+ * debian/rules: generate Depend on other ghc6 libraries during build.
+ * Remove directory accidentally introduced in the previous NMU.
+ * Convert debian/changelog and debian/README.Debian to UTF-8.
+
+ -- Arjan Oosting <arjanoosting at home.nl> Wed, 4 Oct 2006 15:55:10 +0200
+
+hs-plugins (0.9.10-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Do not build the documentation in HTML form: (Closes: #384356)
+ - Remove Build-Depends on mzscheme.
+ - Build hs-plugins.ps explicitly in debian/rules.
+ - Add a README.Debian pointing the user to hs-plugins website for HTML
+ documentation.
+
+ -- Jérémy Bobbio <jeremy.bobbio at etu.upmc.fr> Sat, 30 Sep 2006 13:53:20 +0200
+
+hs-plugins (0.9.10-3) unstable; urgency=low
+
+ * Rebuild against ghc6 6.4.2.
+ + Remove build-dep to libghc6-cabal-dev (>= 1.1.1) as ghc6 6.4.2 comes with
+ Cabal-1.1.4.
+ + Update versioned ghc6 (build-)dependency.
+ * Use DH_COMPAT 5.
+ * Changed Section of libghc6-plugins-dev to libdevel (Closes: #360244).
+
+ -- Florian Ragwitz <rafl at debian.org> Wed, 5 Jul 2006 02:47:38 +0200
+
+hs-plugins (0.9.10-2) unstable; urgency=low
+
+ * hs-plugins will only work on architectures where ghci is available.
+ + Changed the Architecture field from any to 'i386 amd64', where ghci
+ currently works (Closes: #337868).
+ * Bump up Standards-Version to 3.7.2 (no changes).
+ * Use my @debian.org Maintainer address.
+
+ -- Florian Ragwitz <rafl at debian.org> Wed, 7 Jun 2006 17:49:45 +0200
+
+hs-plugins (0.9.10-1) unstable; urgency=low
+
+ * Initial release (Closes: #317081).
+
+ -- Florian Ragwitz <rafl at debianforum.de> Thu, 14 Jul 2005 18:27:49 +0200
+
Added: packages/hs-plugins/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/compat?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/compat (added)
+++ packages/hs-plugins/trunk/debian/compat Fri Jun 22 15:57:36 2007
@@ -1,0 +1,1 @@
+5
Added: packages/hs-plugins/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/control?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/control (added)
+++ packages/hs-plugins/trunk/debian/control Fri Jun 22 15:57:36 2007
@@ -1,0 +1,19 @@
+Source: hs-plugins
+Section: libs
+Priority: optional
+Maintainer: Florian Ragwitz <rafl at debian.org>
+Build-Depends: dctrl-tools, debhelper (>= 5.0.0), dpatch, autoconf, ghc6 (>= 6.4.2), libghc6-src-exts-dev (>= 0.2-2), tetex-bin, tetex-extra
+Standards-Version: 3.7.2
+
+Package: libghc6-plugins-dev
+Section: libdevel
+Architecture: i386 amd64
+Depends: ${haskell:Depends}
+Description: Dynamically Loaded Haskell Modules
+ hs-plugins is a library for loading plugins written in Haskell into an
+ application at runtime. It also provides a mechanism for (re)compiling
+ Haskell source at runtime. Thirdly, a combination of runtime compilation
+ and dynamic loading provides a suite of eval functions. Values exported
+ by plugins are transparently available to Haskell host applications, and
+ bindings exist to use Haskell plugins from at least C and Objective C
+ programs.
Added: packages/hs-plugins/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/copyright?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/copyright (added)
+++ packages/hs-plugins/trunk/debian/copyright Fri Jun 22 15:57:36 2007
@@ -1,0 +1,209 @@
+This package was debianized by Florian Ragwitz <rafl at debianforum.de> on
+Thu, 14 Jul 2005 18:27:49 +0200.
+
+It was downloaded from http://www.cse.unsw.edu.au/~dons/hs-plugins/
+
+License:
+
+Module AltData and Hi
+=====================
+
+(c) The University of Glasgow 2001
+
+This library is derived from code from several sources:
+
+ * Code from the GHC project which is largely (c) The University of
+ Glasgow, and distributable under a BSD-style license (see below),
+
+ * Code from the Haskell 98 Report which is (c) Simon Peyton Jones
+ and freely redistributable (but see the full license for restrictions).
+
+ * Code from the Haskell Foreign Function Interface specification, which is
+ (c) Manuel M. T. Chakravarty and freely redistributable (but see the full
+ license for restrictions).
+
+The full text of these licenses is reproduced below. All of the licenses are
+BSD-style or compatible.
+
+The Glasgow Haskell Compiler License
+
+Copyright 2004, The University Court of the University of Glasgow.
+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 name of the University 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 UNIVERSITY COURT OF THE UNIVERSITY OF
+GLASGOW AND THE 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
+UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE 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.
+
+-----------------------------------------------------------------------------
+
+Code derived from the document "Report on the Programming Language
+Haskell 98", is distributed under the following license:
+
+ Copyright (c) 2002 Simon Peyton Jones
+
+ The authors intend this Report to belong to the entire Haskell
+ community, and so we grant permission to copy and distribute it for
+ any purpose, provided that it is reproduced in its entirety,
+ including this Notice. Modified versions of this Report may also be
+ copied and distributed for any purpose, provided that the modified
+ version is clearly presented as such, and that it does not claim to
+ be a definition of the Haskell 98 Language.
+
+-----------------------------------------------------------------------------
+
+Code derived from the document "The Haskell 98 Foreign Function
+Interface, An Addendum to the Haskell 98 Report" is distributed under
+the following license:
+
+ Copyright (c) 2002 Manuel M. T. Chakravarty
+
+ The authors intend this Report to belong to the entire Haskell
+ community, and so we grant permission to copy and distribute it for
+ any purpose, provided that it is reproduced in its entirety,
+ including this Notice. Modified versions of this Report may also be
+ copied and distributed for any purpose, provided that the modified
+ version is clearly presented as such, and that it does not claim to
+ be a definition of the Haskell 98 Foreign Function Interface.
+
+-----------------------------------------------------------------------------
+
+
+Module Plugins
+==============
+
+System.Plugins.Parser:
+----------------------
+
+Copyright (C) 2005 Don Stewart - http://www.cse.unsw.edu.au/~dons
+
+This program is free software; you can redistribute it and/or modify it under
+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.
+
+A copy of the GNU General Public License can be found at
+/usr/share/common-licenses/GPL on any Debian system.
+
+
+System.Plugins.LoadTypes:
+-------------------------
+
+Copyright (c) 2005 Lemmih <lemmih at gmail.com>
+Copyright (c) 2005 Don Stewart - http://www.cse.unsw.edu.au/~dons
+
+This program is free software; you can redistribute it and/or modify it under
+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.
+
+A copy of the GNU General Public License can be found at
+/usr/share/common-licenses/GPL on any Debian system.
+
+
+System.Plugins.Package:
+-----------------------
+
+Copyright (C) 2004 Sean Seefried - http://www.cse.unsw.edu.au/~sseefried
+
+This library is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 2.1 of the License, or (at your option) any
+later version.
+
+This library 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 Lesser General Public License for more
+details.
+
+A copy of the LGPL-2.1 can be found at /usr/share/common-licenses/LGPL-2 on
+any Debian system.
+
+
+System.Plugins.PackageAPI:
+--------------------------
+
+Copyright (C) 2005 Sean Seefried - http://www.cse.unsw.edu.au/~sseefried
+
+This library is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 2.1 of the License, or (at your option) any
+later version.
+
+This library 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 Lesser General Public License for more
+details.
+
+A copy of the LGPL-2.1 can be found at /usr/share/common-licenses/LGPL-2 on
+any Debian system.
+
+
+System.MkTemp, System.Eval.Haskell:
+-----------------------------------
+
+Copyright (c) 2004-2005 Don Stewart - http://www.cse.unsw.edu.au/~dons
+
+This library is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 2.1 of the License, or (at your option) any
+later version.
+
+This library 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 Lesser General Public License for more
+details.
+
+A copy of the LGPL-2.1 can be found at /usr/share/common-licenses/LGPL-2 on
+any Debian system.
+
+
+System.Plugins.Consts, System.Plugins.Make, System.Plugins.Load,
+System.Plugins.Utils, System.Plugins.Env, System.Eval.Utils, System.Eval,
+System.Plugins:
+-------------------------------------------------------------------------
+
+Copyright (C) 2004 Don Stewart - http://www.cse.unsw.edu.au/~dons
+
+This library is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 2.1 of the License, or (at your option) any
+later version.
+
+This library 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 Lesser General Public License for more
+details.
+
+A copy of the LGPL-2.1 can be found at /usr/share/common-licenses/LGPL-2 on
+any Debian system.
Added: packages/hs-plugins/trunk/debian/libghc6-plugins-dev.examples
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/libghc6-plugins-dev.examples?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/libghc6-plugins-dev.examples (added)
+++ packages/hs-plugins/trunk/debian/libghc6-plugins-dev.examples Fri Jun 22 15:57:36 2007
@@ -1,0 +1,19 @@
+examples/conf/
+examples/dynload/
+examples/eval/
+examples/hier/
+examples/iface/
+examples/load/
+examples/loadCLib/
+examples/make/
+examples/makewith/
+examples/misc/
+examples/multi/
+examples/objc/
+examples/pdynload/
+examples/pkgconf/
+examples/plugs/
+examples/reload/
+examples/shell/
+examples/unload/
+examples/README
Added: packages/hs-plugins/trunk/debian/libghc6-plugins-dev.postinst
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/libghc6-plugins-dev.postinst?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/libghc6-plugins-dev.postinst (added)
+++ packages/hs-plugins/trunk/debian/libghc6-plugins-dev.postinst Fri Jun 22 15:57:36 2007
@@ -1,0 +1,26 @@
+#!/bin/sh
+
+GHC_VERSION=`ghc --numeric-version`
+GHC=ghc-$GHC_VERSION
+VERSION=0.9.10
+
+case "$1" in
+ configure)
+ for config in \
+ /usr/lib/haskell-packages/ghc6/lib/hs-plugins-${VERSION}/altdata.installed-pkg-config \
+ /usr/lib/haskell-packages/ghc6/lib/hs-plugins-${VERSION}/hi.installed-pkg-config \
+ /usr/lib/haskell-packages/ghc6/lib/hs-plugins-${VERSION}/plugins.installed-pkg-config; do \
+ /usr/lib/${GHC}/bin/ghc-pkg -g update $config; \
+ done
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
Added: packages/hs-plugins/trunk/debian/libghc6-plugins-dev.prerm
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/libghc6-plugins-dev.prerm?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/libghc6-plugins-dev.prerm (added)
+++ packages/hs-plugins/trunk/debian/libghc6-plugins-dev.prerm Fri Jun 22 15:57:36 2007
@@ -1,0 +1,24 @@
+#!/bin/sh
+
+GHC_VERSION=`ghc --numeric-version`
+GHC=ghc-$GHC_VERSION
+VERSION=0.9.10
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ for cabal in altdata hi plugins; do \
+ /usr/lib/${GHC}/bin/ghc-pkg -r $cabal; \
+ rm -vf /usr/lib/haskell-packages/ghc6/lib/hs-plugins-${VERSION}/HS${cabal}-${VERSION}.o; \
+ done
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
Added: packages/hs-plugins/trunk/debian/mk-haskell-depends
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/mk-haskell-depends?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/mk-haskell-depends (added)
+++ packages/hs-plugins/trunk/debian/mk-haskell-depends Fri Jun 22 15:57:36 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/hs-plugins/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/patches/00list?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/patches/00list (added)
+++ packages/hs-plugins/trunk/debian/patches/00list Fri Jun 22 15:57:36 2007
@@ -1,0 +1,2 @@
+20config.mk.in
+30fix-for-ghc-6.6
Added: packages/hs-plugins/trunk/debian/patches/20config.mk.in.dpatch
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/patches/20config.mk.in.dpatch?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/patches/20config.mk.in.dpatch (added)
+++ packages/hs-plugins/trunk/debian/patches/20config.mk.in.dpatch Fri Jun 22 15:57:36 2007
@@ -1,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20config.mk.in.dpatch by Florian Ragwitz <rafl at debianforum.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make config.mk.in policy compliant
+
+ at DPATCH@
+
+--- hs-plugins-0.9.10/config.mk.in.orig 2005-09-12 17:18:05.296079744 +0200
++++ hs-plugins-0.9.10/config.mk.in 2005-09-12 17:20:12.229782888 +0200
+@@ -17,9 +17,10 @@
+ TOP = @TOP@
+
+ PREFIX = @PREFIX@
+-LIBDIR = $(PREFIX)/lib/hs-$(PACKAGE)
++VERSION = 0.9.10
++LIBDIR = $(PREFIX)/lib/haskell-packages/ghc6/lib/hs-$(PACKAGE)-$(VERSION)
+ BINDIR = $(PREFIX)/bin
+-MANDIR = $(PREFIX)/man
++MANDIR = $(PREFIX)/share/man
+
+ WHOLE_ARCHIVE_FLAG = @WHOLE_ARCHIVE_FLAG@
+
Propchange: packages/hs-plugins/trunk/debian/patches/20config.mk.in.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/hs-plugins/trunk/debian/patches/30fix-for-ghc-6.6.dpatch
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/patches/30fix-for-ghc-6.6.dpatch?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/patches/30fix-for-ghc-6.6.dpatch (added)
+++ packages/hs-plugins/trunk/debian/patches/30fix-for-ghc-6.6.dpatch Fri Jun 22 15:57:36 2007
@@ -1,0 +1,30 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 30_fix-for-ghc-6.6.patch.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 hs-plugins-0.9.10~/Makefile hs-plugins-0.9.10/Makefile
+--- hs-plugins-0.9.10~/Makefile 2005-07-06 07:39:03.000000000 +0200
++++ hs-plugins-0.9.10/Makefile 2006-10-25 01:34:20.000000000 +0200
+@@ -77,6 +77,7 @@
+ find examples -name '*.a' -exec rm {} \;
+ find examples -name '*~' -exec rm {} \;
+ find examples -name 'a.out' -exec rm {} \;
++ find examples -name 'Main' -exec rm {} \;
+ find examples -name '*.hi' -exec rm {} \;
+ find examples -name '*.o' -exec rm {} \;
+ find examples -name '*.core' -exec rm {} \;
+diff -urNad hs-plugins-0.9.10~/src/build.mk hs-plugins-0.9.10/src/build.mk
+--- hs-plugins-0.9.10~/src/build.mk 2006-10-25 01:30:59.000000000 +0200
++++ hs-plugins-0.9.10/src/build.mk 2006-10-25 01:33:33.000000000 +0200
+@@ -30,7 +30,7 @@
+ GHCI_LIBRARY = $(patsubst lib%.a,%.o,$(LIBRARY))
+ OBJS = $(UPKG).o $(UPKG)/*.o
+
+-HC_OPTS += -package-name $(PKG)
++HC_OPTS += -package-name $(PKG)-$(VERSION)
+ HC_OPTS += -O -Wall -Werror -fno-warn-missing-signatures $(GHC_EXTRA_OPTS)
+ HC_OPTS += -threaded
+
Propchange: packages/hs-plugins/trunk/debian/patches/30fix-for-ghc-6.6.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/hs-plugins/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/hs-plugins/trunk/debian/rules?rev=743&op=file
==============================================================================
--- packages/hs-plugins/trunk/debian/rules (added)
+++ packages/hs-plugins/trunk/debian/rules Fri Jun 22 15:57:36 2007
@@ -1,0 +1,81 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpatch/dpatch.make
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+VERSION = 0.9.10
+
+config.status: configure.ac patch-stamp
+ dh_testdir
+ ./autogen.sh
+ CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+build: build-stamp
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ # html target requires tex2page which is not available on all arch
+ (cd docs; $(MAKE) hs-plugins.ps)
+ $(MAKE) check
+ touch build-stamp
+
+clean: clean1 unpatch
+clean1:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure
+ -$(MAKE) distclean configure
+ -(cd docs; $(MAKE) clean)
+ rm -f docs/hs-plugins.aux docs/hs-plugins.dvi docs/hs-plugins.log docs/hs-plugins.ps
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) install PREFIX=$(CURDIR)/debian/libghc6-plugins-dev/usr
+ cp src/altdata/altdata.conf.in $(CURDIR)/debian/libghc6-plugins-dev/usr/lib/haskell-packages/ghc6/lib/hs-plugins-$(VERSION)/altdata.installed-pkg-config
+ cp src/hi/hi.conf.in $(CURDIR)/debian/libghc6-plugins-dev/usr/lib/haskell-packages/ghc6/lib/hs-plugins-$(VERSION)/hi.installed-pkg-config
+ cp src/plugins/plugins.conf.in $(CURDIR)/debian/libghc6-plugins-dev/usr/lib/haskell-packages/ghc6/lib/hs-plugins-$(VERSION)/plugins.installed-pkg-config
+
+# 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
+ dh_installdocs TODO README
+ dh_installexamples
+ find $(CURDIR)/debian/libghc6-plugins-dev/usr/share/doc/libghc6-plugins-dev/examples -type f -size 0 -print0 | xargs -0 rm -f
+ find $(CURDIR)/debian/libghc6-plugins-dev/usr/share/doc/libghc6-plugins-dev/examples -type f -name Makefile -print0 | xargs -0 rm -f
+ find $(CURDIR)/debian/libghc6-plugins-dev/usr/share/doc/libghc6-plugins-dev/examples -type f -name '*\.o' -print0 | xargs -0 rm -f
+ find $(CURDIR)/debian/libghc6-plugins-dev/usr/share/doc/libghc6-plugins-dev/examples -type f -name '*\.hi' -print0 | xargs -0 rm -f
+ # copy only .ps ; docs target requires tex2page which is not available
+ # on all arch
+ cp docs/hs-plugins.ps $(CURDIR)/debian/libghc6-plugins-dev/usr/share/doc/libghc6-plugins-dev/
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ sh -e debian/mk-haskell-depends -Xaltdata -Xhi -Xplugins debian/libghc6-plugins-dev/usr/lib/haskell-packages/ghc6/lib/hs-plugins-*/*.installed-pkg-config
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean1
Propchange: packages/hs-plugins/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-haskell-commits
mailing list