[Pkg-haskell-commits] darcs: ghc: Add transitional ghc6-* packages

Joachim Breitner mail at joachim-breitner.de
Sat Jan 15 15:10:21 UTC 2011


Sat Jan 15 15:02:30 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * Add transitional ghc6-* packages
  Ignore-this: 2d49218a7cdb65761c746dcf964142a6

    M ./control -4 +30
    A ./ghc6-doc.prerm
    A ./ghc6.prerm

Sat Jan 15 15:02:30 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * Add transitional ghc6-* packages
  Ignore-this: 2d49218a7cdb65761c746dcf964142a6
diff -rN -u old-ghc/control new-ghc/control
--- old-ghc/control	2011-01-15 15:10:21.812867191 +0000
+++ new-ghc/control	2011-01-15 15:10:21.836868456 +0000
@@ -9,8 +9,9 @@
 Package: ghc
 Architecture: any
 Depends: gcc (>= 4:4.2), libgmp3-dev, libffi-dev, libbsd-dev, libc6-dev, ${shlibs:Depends}, ${misc:Depends}
-Provides: haskell-compiler, ghc, ${provided-devs}, ${haskell:Provides}, ${ghci}
-Replaces: ghc-doc (= 6.12.1-8)
+Provides: haskell-compiler, ghc6, ${provided-devs}, ${haskell:Provides}, ${ghci}
+Replaces: ghc-doc (= 6.12.1-8), ghc6 (<< 7)
+Conflicts: ghc6 (<< 7)
 Breaks: cabal-install (<< 0.8.0), haskell-devscripts (<< 0.6.19), ghc-doc (<= 6.12.1-8)
 Suggests: perl, ghc-prof, ghc-doc, haskell-doc
 Description: GHC - the Glasgow Haskell Compilation system
@@ -24,8 +25,10 @@
 
 Package: ghc-prof
 Architecture: any
-Provides: ghc-prof, ${provided-profs}, ${haskell:Provides}
+Provides: ghc-prof, ghc6-prof ${provided-profs}, ${haskell:Provides}
 Depends: ghc (= ${binary:Version}), ${misc:Depends}
+Replaces: ghc6-prof (<< 7)
+Conflicts: ghc6-prof (<< 7)
 Description: Profiling libraries for the Glasgow Haskell Compilation system
  The Glorious Glasgow Haskell Compilation system (GHC) is a compiler for
  Haskell.
@@ -43,7 +46,9 @@
 Section: doc
 Architecture: all
 Suggests: haskell-doc
-Provides: ${provided-docs}
+Provides: ghc6-doc, ${provided-docs}
+Replaces: ghc6-doc (<< 7)
+Conflicts: ghc6-doc (<< 7)
 Depends: ghc-haddock (= ${binary:Version}), ${misc:Depends}, perl
 Description: Documentation for the Glasgow Haskell Compilation system
  The Glorious Glasgow Haskell Compilation system (GHC) is a compiler for
@@ -96,3 +101,24 @@
  is implemented, and there is partial support for generating DocBook.
  .
  This package contains Haddock version 2.8.0.
+
+Package: ghc6
+Architecture: all
+Depends: ghc
+Description: transitional dummy package
+ This package ensures a smooth transition from the package name ghc6 to the
+ package name ghc, and can safely be removed.
+
+Package: ghc6-doc
+Architecture: all
+Depends: ghc-doc
+Description: transitional dummy package
+ This package ensures a smooth transition from the package name ghc6-doc to the
+ package name ghc-doc, and can safely be removed.
+
+Package: ghc6-prof
+Architecture: all
+Depends: ghc-prof
+Description: transitional dummy package
+ This package ensures a smooth transition from the package name ghc6-prof to the
+ package name ghc-prof, and can safely be removed.
diff -rN -u old-ghc/ghc6-doc.prerm new-ghc/ghc6-doc.prerm
--- old-ghc/ghc6-doc.prerm	1970-01-01 00:00:00.000000000 +0000
+++ new-ghc/ghc6-doc.prerm	2011-01-15 15:10:21.812867191 +0000
@@ -0,0 +1,39 @@
+#! /bin/sh
+# prerm script for ghc6-doc
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see /usr/doc/packaging-manual/
+
+case "$1" in
+    remove|upgrade|deconfigure|failed-upgrade)
+        rm -f /usr/share/doc/ghc6-doc/libraries/doc-index*.html
+        rm -f /usr/share/doc/ghc6-doc/libraries/haddock.css
+        rm -f /usr/share/doc/ghc6-doc/libraries/haddock.js
+        rm -f /usr/share/doc/ghc6-doc/libraries/index.html
+        rm -f /usr/share/doc/ghc6-doc/libraries/libraries.txt
+        rm -f /usr/share/doc/ghc6-doc/libraries/haskell_icon.gif
+        rm -f /usr/share/doc/ghc6-doc/libraries/minus.gif
+        rm -f /usr/share/doc/ghc6-doc/libraries/plus.gif
+    ;;
+    *)
+        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
+
diff -rN -u old-ghc/ghc6.prerm new-ghc/ghc6.prerm
--- old-ghc/ghc6.prerm	1970-01-01 00:00:00.000000000 +0000
+++ new-ghc/ghc6.prerm	2011-01-15 15:10:21.812867191 +0000
@@ -0,0 +1,39 @@
+#! /bin/sh
+# prerm script for ghc6
+
+set -e
+
+execdir=/usr/bin
+libdir=/usr/lib/ghc-6.12.1
+bindir=$libdir/bin
+vardir=/var/lib/ghc-6.12.1
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see /usr/doc/packaging-manual/
+
+case "$1" in
+    remove)
+	rm -f $vardir/package.conf.d/package.cache
+    ;;
+    upgrade|deconfigure|failed-upgrade)
+    ;;
+    *)
+        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
+





More information about the Pkg-haskell-commits mailing list