--- haskell-hgl-3.2.0.0.orig/debian/control +++ haskell-hgl-3.2.0.0/debian/control @@ -0,0 +1,64 @@ +Source: haskell-hgl +Section: libdevel +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Ian Lynagh (wibble) +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.10), ghc6 (>= 6.8.2), ghc6 (<< 6.8.2+), ghc6-prof (>= 6.8.2), ghc6-prof (<< 6.8.2+), ghc6-doc (>= 6.8.2), ghc6-doc (<< 6.8.2+), libghc6-x11-dev (= 1.4.1-1), libghc6-x11-prof (= 1.4.1-1), libghc6-x11-doc (= 1.4.1-1) + +Package: libghc6-hgl-dev +Section: libdevel +Architecture: any +Depends: ghc6 (>= 6.8.2), ghc6 (<< 6.8.2+), ${shlibs:Depends}, ${misc:Depends}, libghc6-x11-dev (= 1.4.1-1) +Suggests: libghc6-hgl-prof, libghc6-hgl-doc +Description: Haskell graphics library for GHC + This package provides a library for the Haskell programming language. + See http://www.haskell.org/ for more information on Haskell. + . + This is a simple graphics library, designed to give the programmer access + to most interesting parts of the Win32 Graphics Device Interface + and X11 library without exposing the programmer to the pain and + anguish usually associated with using these interfaces. + . + The library also includes a module Graphics.SOE providing the + interface used in "The Haskell School of Expression", by Paul + Hudak, cf . + +Package: libghc6-hgl-prof +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libghc6-hgl-dev, ghc6-prof (>= 6.8.2), ghc6-prof (<< 6.8.2+), libghc6-x11-prof (= 1.4.1-1) +Suggests: libghc6-hgl-doc +Description: Haskell graphics library for GHC; profiling libraries + This package provides a library for the Haskell programming language, + compiled for profiling. + See http://www.haskell.org/ for more information on Haskell. + . + This is a simple graphics library, designed to give the programmer access + to most interesting parts of the Win32 Graphics Device Interface + and X11 library without exposing the programmer to the pain and + anguish usually associated with using these interfaces. + . + The library also includes a module Graphics.SOE providing the + interface used in "The Haskell School of Expression", by Paul + Hudak, cf . + +Package: libghc6-hgl-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ghc6-doc (>= 6.8.2), ghc6-doc (<< 6.8.2+), libghc6-x11-doc (= 1.4.1-1) +Suggests: libghc6-hgl-dev, libghc6-hgl-prof +Description: Haskell graphics library for GHC; documentation + This package provides the documentation for a library for the Haskell + programming language. + See http://www.haskell.org/ for more information on Haskell. + . + This is a simple graphics library, designed to give the programmer access + to most interesting parts of the Win32 Graphics Device Interface + and X11 library without exposing the programmer to the pain and + anguish usually associated with using these interfaces. + . + The library also includes a module Graphics.SOE providing the + interface used in "The Haskell School of Expression", by Paul + Hudak, cf . + --- haskell-hgl-3.2.0.0.orig/debian/rules +++ haskell-hgl-3.2.0.0/debian/rules @@ -0,0 +1,134 @@ +#!/usr/bin/make -f +# Generic Haskell cabal library debian/rules v9 by Ian Lynagh, +# based on the example by Joey Hess. +# This file is public domain software. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Get the Cabal package name, lower-cased. +# Assumes that the Debian package name is standard. +CABAL_PACKAGE = $(shell dpkg-parsechangelog | sed "1s/source: haskell-//i; q") + +GHC6_PACKAGE = libghc6-$(CABAL_PACKAGE)-dev +GHC6_PROF_PACKAGE = libghc6-$(CABAL_PACKAGE)-prof +GHC6_DOC_PACKAGE = libghc6-$(CABAL_PACKAGE)-doc + +# Find ghc. The ghc in the path might point to some other version of +# GHC, so use ghc6 if it exists (which it ought to when building for +# Debian) +GHC := $(firstword $(shell bash -c "type -p ghc6 ghc")) + +CONFIGURE_OPTS = --enable-library-vanilla \ + --enable-library-profiling \ + --enable-library-for-ghci +ifneq '$(findstring $(shell dpkg-architecture -qDEB_HOST_ARCH), i386 amd64)' '' +CONFIGURE_OPTS += --enable-split-objs +endif + +build: build-stamp +build-stamp: + dh_testdir + + update-haskell-control --check + $(GHC) --make Setup.*hs -o setup-ghc + ./setup-ghc configure --ghc --with-compiler=$(GHC) --prefix=/usr --docdir=/usr/share/doc/ghc6-doc/libraries/$(CABAL_PACKAGE) --htmldir=/usr/share/doc/ghc6-doc/libraries/$(CABAL_PACKAGE) $(CONFIGURE_OPTS) + ./setup-ghc build + ./setup-ghc haddock --hyperlink-source + + touch $@ + +FILES = -type f +PROF_FILE = \( -name "*.p_*" -o -name "lib*_p.a" \) + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + ./setup-ghc copy --destdir=debian/tmp/ + # XXX The file isn't necessarily called LICENSE, and may not even + # exist at all + rm debian/tmp/usr/share/doc/ghc6-doc/libraries/$(CABAL_PACKAGE)/LICENSE + find debian/tmp/usr/lib -type f ! $(PROF_FILE) \ + > debian/$(GHC6_PACKAGE).install + find debian/tmp -type d -empty >> debian/$(GHC6_PACKAGE).install + find debian/tmp/usr/lib -type f $(PROF_FILE) \ + > debian/$(GHC6_PROF_PACKAGE).install + echo "debian/tmp/usr/share/doc" > debian/$(GHC6_DOC_PACKAGE).install + + ./setup-ghc register --gen-script + ./setup-ghc unregister --gen-script + mkdir -p debian/$(GHC6_PACKAGE)/usr/lib/$(GHC6_PACKAGE) + mv register.sh debian/$(GHC6_PACKAGE)/usr/lib/$(GHC6_PACKAGE) + mv unregister.sh debian/$(GHC6_PACKAGE)/usr/lib/$(GHC6_PACKAGE) + + touch $@ + +update-generated-files: + update-debian-haskell-files + update-haskell-control + sed "s/@PACKAGE@/$(GHC6_PACKAGE)/g" debian/$(GHC6_PACKAGE).prerm.in \ + > debian/$(GHC6_PACKAGE).prerm + sed "s/@PACKAGE@/$(GHC6_PACKAGE)/g" debian/$(GHC6_PACKAGE).postinst.in \ + > debian/$(GHC6_PACKAGE).postinst + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp binary-common-stamp + + -./setup-ghc clean + rm -f Setup.o Setup.hi setup-ghc + rm -f debian/*.install + + dh_clean + +# Build architecture-dependent files here. +binary-common: binary-common-stamp +binary-common-stamp: install-stamp + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --fail-missing +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_strip + dh_compress -X.haddock + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# binary-indep and binary-arch both build everything, as otherwise +# # "dh_install --fail-missing" falls over + +# Build architecture-independent files here. +binary-indep: binary-common-stamp +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: binary-common-stamp + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary-common binary install --- haskell-hgl-3.2.0.0.orig/debian/libghc6-hgl-doc.postrm +++ haskell-hgl-3.2.0.0/debian/libghc6-hgl-doc.postrm @@ -0,0 +1,21 @@ +#! /bin/sh +# Generic doc postrm script for Haskell cabal libraries v9 by Ian Lynagh. + +set -e + +DIR=/usr/share/doc/ghc6-doc/libraries +GEN=/usr/lib/ghc6-doc/gen_contents_index + +case "$1" in + *) + [ -d $DIR ] && [ -e $GEN ] && cd $DIR && $GEN + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-hgl-3.2.0.0.orig/debian/changelog +++ haskell-hgl-3.2.0.0/debian/changelog @@ -0,0 +1,82 @@ +haskell-hgl (3.2.0.0-1ubuntu0.1) hardy-proposed; urgency=low + + * Upgrade to "Generic Haskell cabal library packaging files v10", + changes applied from version 3.2.0.0-1 in intrepid. This will fix + installation issues due to wrong dependencies (LP: #202974). + * Update Maintainer field as per spec. + + -- Luca Falavigna Sun, 13 Jul 2008 14:54:41 +0200 + +haskell-hgl (3.2.0.0-1) unstable; urgency=low + + * New upstream version. + * Upgrade to "Generic Haskell cabal library packaging files v9": + * Allows Setup to be in Setup.lhs instead of Setup.hs. + * Bump the required haskell-utils from 1.8 to 1.10. + * The control.in gives a standards-version of 3.7.3 (was 3.7.2). + * Move everything from the devel section to the libdevel section. + * Delete the LICENSE file (currently we assume it has that name, and + that it exists) after "Setup copy"ing the Cabal package. + * Remove some hacks that worked around older Cabal not letting us + tell it exactly where to put the documentation. + * Use --hyperlink-source when telling Cabal to haddock the library. + * Add hscolour to the build-depends. + + -- Ian Lynagh (wibble) Tue, 20 Nov 2007 00:00:47 +0000 + +haskell-hgl (3.1.1-2) unstable; urgency=low + + * Upgrade to "Generic Haskell cabal library packaging files v8": + * update-generated-files rule in debian/rules runs + update-debian-haskell-files. + * Build-dep on haddock >= 0.8-2 in order to get portable .haddock files. + * We tell Cabal's configure where to put the docs so that it doesn't + break when we move them around behind its back. + * Use canonicalise-comma-list around the build-deps in debian/control.in + to fix problems where we get an unparsable ", , " when a variable is + empty. + + -- Ian Lynagh (wibble) Mon, 04 Jun 2007 21:53:01 +0000 + +haskell-hgl (3.1.1-1) unstable; urgency=low + + * New upstream version. + * Fix Setup.hs (type signatures don't match our version of Cabal). + * Split off profiling and documentation into separate packages. + * debian/control.in now makes much more use of variables, including + magic Cabal variables. + * Use debhelper level 5 (was 4). + * Bump haskell-utils build-dep requirement to 1.8. + * Upgrade to "Generic Haskell cabal library debian/rules v0.7": + * Generate haddock docs. + * -doc package calls gen_contents_index from postinst and postrm. + * Use destdir rather than deprecated copy-prefix flag to Setup copy. + * Add -X.haddock to dh_compress call. + + -- Ian Lynagh (wibble) Thu, 10 May 2007 13:39:55 +0100 + +haskell-hgl (3.1-3) unstable; urgency=low + + * Upgrade to "Generic Haskell cabal library debian/rules v0.6". + Tell setup to use ghc6 rather than ghc, so that the postinst/prerm + scripts work when the ghc-pkg symlink doesn't exist or doesn't + point to ghc6's ghc-pkg. + + -- Ian Lynagh (wibble) Mon, 20 Nov 2006 20:50:42 +0000 + +haskell-hgl (3.1-2) unstable; urgency=low + + * Update control from control.in to include arm, mips and mipsel in the + architecture list. + * Upgrade to "Generic Haskell cabal library debian/rules v0.5". + Fixes build-failure on non-x86/amd64 due to object splitting + being unconditionally enabled. + + -- Ian Lynagh (wibble) Mon, 23 Oct 2006 12:32:51 +0100 + +haskell-hgl (3.1-1) unstable; urgency=low + + * Initial release (was part of ghc6 until version 6.6-1). + + -- Ian Lynagh (wibble) Fri, 13 Oct 2006 16:43:11 +0000 + --- haskell-hgl-3.2.0.0.orig/debian/libghc6-hgl-doc.postinst +++ haskell-hgl-3.2.0.0/debian/libghc6-hgl-doc.postinst @@ -0,0 +1,39 @@ +#! /bin/sh +# Generic doc postinst script for Haskell cabal libraries v9 by Ian Lynagh. +# +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + cd /usr/share/doc/ghc6-doc/libraries + /usr/lib/ghc6-doc/gen_contents_index + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- haskell-hgl-3.2.0.0.orig/debian/libghc6-hgl-dev.prerm +++ haskell-hgl-3.2.0.0/debian/libghc6-hgl-dev.prerm @@ -0,0 +1,34 @@ +#! /bin/sh +# Generic prerm.in script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: libghc6-hgl-dev.prerm.in + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + /usr/lib/libghc6-hgl-dev/unregister.sh + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-hgl-3.2.0.0.orig/debian/compat +++ haskell-hgl-3.2.0.0/debian/compat @@ -0,0 +1 @@ +5 --- haskell-hgl-3.2.0.0.orig/debian/control.in +++ haskell-hgl-3.2.0.0/debian/control.in @@ -0,0 +1,37 @@ +Source: ${this:source} +Section: libdevel +Priority: optional +Maintainer: ${maintainer} +Standards-Version: 3.7.3 +Build-Depends: &{canonicalise-comma-list:debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.10), ${impl:ghc6:lib:build_deps}, ${cabal:deps:ghc6:dev}, ${cabal:deps:ghc6:prof}, ${cabal:deps:ghc6:doc}, ${c_dev_libs}, ${extra_build_deps}} + +Package: ${this:ghc6:dev} +Section: libdevel +Architecture: any +Depends: &{canonicalise-comma-list:${impl:ghc6:lib:dev_deps}, \${shlibs:Depends}, \${misc:Depends}, ${cabal:deps:ghc6:dev}, ${c_dev_libs}} +Suggests: &{canonicalise-comma-list:${this:ghc6:prof}, ${this:ghc6:doc}} +Description: ${short_description} +${dev_library_description_header} + . +${long_description} + +Package: ${this:ghc6:prof} +Section: libdevel +Architecture: any +Depends: &{canonicalise-comma-list:\${shlibs:Depends}, \${misc:Depends}, ${this:ghc6:dev}, ${impl:ghc6:lib:prof_deps}, ${cabal:deps:ghc6:prof}, ${c_dev_libs}} +Suggests: &{canonicalise-comma-list:${this:ghc6:doc}} +Description: ${short_description}; profiling libraries +${prof_library_description_header} + . +${long_description} + +Package: ${this:ghc6:doc} +Section: doc +Architecture: all +Depends: &{canonicalise-comma-list:\${shlibs:Depends}, \${misc:Depends}, ${impl:ghc6:lib:doc_deps}, ${cabal:deps:ghc6:doc}} +Suggests: &{canonicalise-comma-list:${this:ghc6:dev}, ${this:ghc6:prof}} +Description: ${short_description}; documentation +${doc_library_description_header} + . +${long_description} + --- haskell-hgl-3.2.0.0.orig/debian/libghc6-hgl-dev.postinst +++ haskell-hgl-3.2.0.0/debian/libghc6-hgl-dev.postinst @@ -0,0 +1,40 @@ +#! /bin/sh +# Generic postinst script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: libghc6-hgl-dev.postinst.in +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + /usr/lib/libghc6-hgl-dev/register.sh + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-hgl-3.2.0.0.orig/debian/copyright +++ haskell-hgl-3.2.0.0/debian/copyright @@ -0,0 +1,16 @@ + +This package was debianised by Ian Lynagh on +Fri, 13 Oct 2006. All of the Debian packaging scripts are released +into the public domain. + +It was downloaded from +http://hackage.haskell.org/packages/archive/HGL/3.2.0.0/HGL-3.2.0.0.tar.gz + +Upstream Author: Alastair Reid + +Copyright (c) 1996-2003 Alastair Reid +All rights reserved. + +BSD licenced. The complete text of the BSD license can be found in +/usr/share/common-licenses/BSD on Debian systems. + --- haskell-hgl-3.2.0.0.orig/debian/libghc6-hgl-dev.prerm.in +++ haskell-hgl-3.2.0.0/debian/libghc6-hgl-dev.prerm.in @@ -0,0 +1,34 @@ +#! /bin/sh +# Generic prerm.in script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: @PACKAGE@.prerm.in + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + /usr/lib/@PACKAGE@/unregister.sh + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-hgl-3.2.0.0.orig/debian/libghc6-hgl-dev.postinst.in +++ haskell-hgl-3.2.0.0/debian/libghc6-hgl-dev.postinst.in @@ -0,0 +1,40 @@ +#! /bin/sh +# Generic postinst script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: @PACKAGE@.postinst.in +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + /usr/lib/@PACKAGE@/register.sh + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-hgl-3.2.0.0.orig/debian/varfiles/varfile +++ haskell-hgl-3.2.0.0/debian/varfiles/varfile @@ -0,0 +1,6 @@ +maintainer="Ian Lynagh (wibble) " +short_description="Haskell graphics library for GHC" +long_description=" This is a simple graphics library, designed to give the programmer access\n to most interesting parts of the Win32 Graphics Device Interface\n and X11 library without exposing the programmer to the pain and\n anguish usually associated with using these interfaces.\n .\n The library also includes a module Graphics.SOE providing the\n interface used in "The Haskell School of Expression", by Paul\n Hudak, cf ." +c_dev_libs="" +extra_build_deps="" +