[Pkg-haskell-commits] darcs: ftphs: Switched to dh_haskell and added hugs building

John Goerzen jgoerzen at complete.org
Fri Jan 4 14:18:36 UTC 2013


Thu Oct  7 07:44:50 UTC 2004  John Goerzen <jgoerzen at complete.org>
  * Switched to dh_haskell and added hugs building
  Ignore-this: 305af4c0765c89a3d6de964b2a8ac8fb
  
  Keywords: 
  
  
  (jgoerzen at complete.org--projects/missingh--head--1.0--patch-41)

    M ./changelog +15
    M ./control -3 +20
    R ./libghc6-missingh-dev.dirs
    R ./libghc6-missingh-dev.postinst.tmpl
    R ./libghc6-missingh-dev.prerm.tmpl
    R ./missingh-dev.install
    R ./missingh1.install
    M ./rules -23 +5

Thu Oct  7 07:44:50 UTC 2004  John Goerzen <jgoerzen at complete.org>
  * Switched to dh_haskell and added hugs building
  Ignore-this: 305af4c0765c89a3d6de964b2a8ac8fb
  
  Keywords: 
  
  
  (jgoerzen at complete.org--projects/missingh--head--1.0--patch-41)
diff -rN -u old-ftphs//changelog new-ftphs//changelog
--- old-ftphs//changelog	2013-01-04 14:18:32.947250258 +0000
+++ new-ftphs//changelog	2013-01-04 14:18:36.158964605 +0000
@@ -1,3 +1,18 @@
+missingh (0.2.0) unstable; urgency=low
+
+  * Renamed to more standard names: MissingH.IO, MissingH.List,
+    MissingH.Str.
+  
+  * Moved binary functions into new module MissingH.IO.Binary.
+  
+  * Added unit tests and test cases for List and Str.
+  
+  * Moved Debian code to use dh_haskell.
+
+  * Build Hugs package for Debian.
+
+ -- John Goerzen <jgoerzen at complete.org>  Wed,  6 Oct 2004 21:36:47 -0500
+
 missingh (0.1.0) unstable; urgency=low
 
   * Initial Release.  Closes: #275070.
diff -rN -u old-ftphs//control new-ftphs//control
--- old-ftphs//control	2013-01-04 14:18:32.947250258 +0000
+++ new-ftphs//control	2013-01-04 14:18:36.067758378 +0000
@@ -1,20 +1,37 @@
 Source: missingh
 Priority: optional
 Maintainer: John Goerzen <jgoerzen at complete.org>
-Build-Depends: debhelper (>= 4.0.0), ghc6 (>= 6.2.1), ghc6 (<< 6.2.2)
-Build-Depends-Indep: debhelper (>= 4.0.0), haddock
+Build-Depends: debhelper (>= 4.0.0), ghc6 (>= 6.2.1), ghc6 (<< 6.2.2), haskell-devscripts (>= 0.5.1)
+Build-Depends-Indep: debhelper (>= 4.0.0), haddock, hugs, haskell-devscripts (>= 0.5.1)
 Standards-Version: 3.6.1
 Section: devel
 
 Package: libghc6-missingh-dev
 Section: devel
 Architecture: any
-Depends: ghc6 (>= 6.2.1), ghc6 (<< 6.2.2)
+Depends: ${haskell:Depends}
 Suggests: missingh-doc
 Description: Library of utility functions for Haskell, GHC6 package 
  MissingH is a library of all sorts of utility functions for
  Haskell programmers.  It is written in pure Haskell and thus should
  be extremely portable and easy to use.  It also has no prerequisites
+ save those that are commonly included with Haskell compilers.
+ .
+ MissingH is based on my MissingLib library for OCaml and contains some
+ of the same features.  However, some features are left behind because
+ they are already in Haskell or not needed here -- and others are added
+ due to things Haskell is missing, or things that Haskell makes
+ possible.
+
+Package: libhugs-missingh
+Section: devel
+Architecture: all
+Depends: ${haskell:Depends}
+Suggests: missingh-doc
+Description: Library of utility functions for Haskell, Hugs package 
+ MissingH is a library of all sorts of utility functions for
+ Haskell programmers.  It is written in pure Haskell and thus should
+ be extremely portable and easy to use.  It also has no prerequisites
  save those that are commonly included with Haskell compilers.
  .
  MissingH is based on my MissingLib library for OCaml and contains some
diff -rN -u old-ftphs//libghc6-missingh-dev.postinst.tmpl new-ftphs//libghc6-missingh-dev.postinst.tmpl
--- old-ftphs//libghc6-missingh-dev.postinst.tmpl	2013-01-04 14:18:32.931243546 +0000
+++ new-ftphs//libghc6-missingh-dev.postinst.tmpl	1970-01-01 00:00:00.000000000 +0000
@@ -1,43 +0,0 @@
-#! /bin/sh
-# postinst script for missingh
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-
-case "$1" in
-    configure)
-        ghc-pkg -g --add-package \
-                < /usr/lib/haskell-packages/ghc6/lib/MissingH-@@VERSION@@/installed-pkg-config
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -rN -u old-ftphs//libghc6-missingh-dev.prerm.tmpl new-ftphs//libghc6-missingh-dev.prerm.tmpl
--- old-ftphs//libghc6-missingh-dev.prerm.tmpl	2013-01-04 14:18:32.931243546 +0000
+++ new-ftphs//libghc6-missingh-dev.prerm.tmpl	1970-01-01 00:00:00.000000000 +0000
@@ -1,41 +0,0 @@
-#! /bin/sh
-# prerm script for missingh
-#
-# see: dh_installdeb(1)
-
-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 http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    remove|upgrade|deconfigure)
-        ghc-pkg -r MissingH
-        rm /usr/lib/haskell-packages/ghc6/lib/MissingH-@@VERSION@@/HSMissingH*.o
-#       install-info --quiet --remove /usr/info/missingh.info.gz
-        ;;
-    failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -rN -u old-ftphs//missingh1.install new-ftphs//missingh1.install
--- old-ftphs//missingh1.install	2013-01-04 14:18:32.931243546 +0000
+++ new-ftphs//missingh1.install	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-usr/lib/lib*.so.*
diff -rN -u old-ftphs//missingh-dev.install new-ftphs//missingh-dev.install
--- old-ftphs//missingh-dev.install	2013-01-04 14:18:32.931243546 +0000
+++ new-ftphs//missingh-dev.install	1970-01-01 00:00:00.000000000 +0000
@@ -1,5 +0,0 @@
-usr/include/*
-usr/lib/lib*.a
-usr/lib/lib*.so
-usr/lib/pkgconfig/*
-usr/lib/*.la
diff -rN -u old-ftphs//rules new-ftphs//rules
--- old-ftphs//rules	2013-01-04 14:18:32.926278130 +0000
+++ new-ftphs//rules	2013-01-04 14:18:36.171213736 +0000
@@ -9,16 +9,6 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-GHCVERSION=6.2.1
-GHCPATH=/usr/lib/ghc-$(GHCVERSION)/bin
-PATH:=$(GHCPATH):$(PATH)
-
-export PATH
-LIBPATH=/usr/lib/haskell-packages/ghc6
-LIBNAME=MissingH
-PACKAGE=libghc6-missingh-dev
-VERSION:=$(shell dpkg-parsechangelog | grep Version | awk '{ print $$2 }')
-
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -54,9 +44,6 @@
 	dh_testdir
 
 	# Add here commands to compile the package.
-	./setup build
-	make doc
-
 	touch build-stamp
 
 clean:
@@ -65,8 +52,8 @@
 	rm -f build-stamp configure-stamp
 
 	# Add here commands to clean up after the build process.
-	-$(MAKE) clean
-	rm -f .*config* debian/$(PACKAGE).postinst debian/$(PACKAGE).prerm
+	-./setup clean
+	-rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
 
 	dh_clean 
 
@@ -77,14 +64,7 @@
 	dh_installdirs -a 
 
 	# Add here commands to install the package into debian/tmp
-	./setup install --install-prefix=$(CURDIR)/debian/$(PACKAGE)$(LIBPATH)
-	cp .installed-pkg-config $(CURDIR)/debian/$(PACKAGE)$(LIBPATH)/lib/$(LIBNAME)-$(VERSION)/installed-pkg-config
-	sed s/\@\@VERSION\@\@/$(VERSION)/g < \
-		debian/$(PACKAGE).postinst.tmpl > \
-		debian/$(PACKAGE).postinst
-	sed s/\@\@VERSION\@\@/$(VERSION)/g < \
-		debian/$(PACKAGE).prerm.tmpl > \
-		debian/$(PACKAGE).prerm
+	dh_haskell -a
 
 builddocs: builddocs-stamp
 builddocs-stamp:
@@ -98,6 +78,8 @@
 	dh_clean -k
 	dh_installdirs -i
 
+	dh_haskell -i
+
 # Build architecture-independent files here.
 binary-indep: builddocs installdocs
 	dh_testdir





More information about the Pkg-haskell-commits mailing list