[Pkg-haskell-commits] darcs: ftphs: Checkpointing debian/ work
John Goerzen
jgoerzen at complete.org
Fri Jan 4 14:18:04 UTC 2013
Wed Oct 6 02:38:26 UTC 2004 John Goerzen <jgoerzen at complete.org>
* Checkpointing debian/ work
Ignore-this: 640dc1b9773177360e4d74bc0b000ba6
Keywords:
(jgoerzen at complete.org--projects/missingh--head--1.0--patch-27)
./postinst.ex -> ./libghc6-missingh-dev.postinst
./prerm.ex -> ./libghc6-missingh-prerm
M ./changelog -1 +1
M ./control -11 +33
M ./libghc6-missingh-dev.postinst -1 +2
M ./libghc6-missingh-prerm +2
M ./rules -18 +67
Wed Oct 6 02:38:26 UTC 2004 John Goerzen <jgoerzen at complete.org>
* Checkpointing debian/ work
Ignore-this: 640dc1b9773177360e4d74bc0b000ba6
Keywords:
(jgoerzen at complete.org--projects/missingh--head--1.0--patch-27)
diff -rN -u old-ftphs//changelog new-ftphs//changelog
--- old-ftphs//changelog 2013-01-04 14:18:01.166252749 +0000
+++ new-ftphs//changelog 2013-01-04 14:18:04.035225628 +0000
@@ -1,6 +1,6 @@
missingh (0.1.0-1) unstable; urgency=low
- * Initial Release.
+ * Initial Release. Closes: #275070.
-- John Goerzen <jgoerzen at complete.org> Tue, 5 Oct 2004 16:17:09 -0500
diff -rN -u old-ftphs//control new-ftphs//control
--- old-ftphs//control 2013-01-04 14:18:01.142743418 +0000
+++ new-ftphs//control 2013-01-04 14:18:04.063225544 +0000
@@ -1,19 +1,41 @@
Source: missingh
Priority: optional
Maintainer: John Goerzen <jgoerzen at complete.org>
-Build-Depends: debhelper (>= 4.0.0)
+Build-Depends: debhelper (>= 4.0.0), ghc6 (>= 6.2.1), ghc6 (<< 6.2.2)
+Build-Depends-Indep: debhelper (>= 4.0.0), haddock
Standards-Version: 3.6.1
-Package: missingh-dev
+Package: libghc6-missingh-dev
Section: libdev
Architecture: any
-Depends: missinghBROKEN (= ${Source-Version})
-Description: <insert up to 60 chars description>
- <insert long description, indented with spaces>
+Depends: ghc6 (>= 6.2.1), ghc6 (<< 6.2.2)
+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: missingh-doc
+Section: doc
+Architecture: all
+Description: Documentation for Haskell utility library
+ 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.
+ .
+ This package provides the API documentation for MissingH.
-Package: missinghBROKEN
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: <insert up to 60 chars description>
- <insert long description, indented with spaces>
diff -rN -u old-ftphs//libghc6-missingh-dev.postinst new-ftphs//libghc6-missingh-dev.postinst
--- old-ftphs//libghc6-missingh-dev.postinst 1970-01-01 00:00:00.000000000 +0000
+++ new-ftphs//libghc6-missingh-dev.postinst 2013-01-04 14:18:04.063225544 +0000
@@ -0,0 +1,43 @@
+#! /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/share/doc/libghc6-missingh-dev/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-prerm new-ftphs//libghc6-missingh-prerm
--- old-ftphs//libghc6-missingh-prerm 1970-01-01 00:00:00.000000000 +0000
+++ new-ftphs//libghc6-missingh-prerm 2013-01-04 14:18:04.063225544 +0000
@@ -0,0 +1,41 @@
+#! /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-0.1.0/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//postinst.ex new-ftphs//postinst.ex
--- old-ftphs//postinst.ex 2013-01-04 14:18:01.122734496 +0000
+++ new-ftphs//postinst.ex 1970-01-01 00:00:00.000000000 +0000
@@ -1,42 +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)
-
- ;;
-
- 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//prerm.ex new-ftphs//prerm.ex
--- old-ftphs//prerm.ex 2013-01-04 14:18:01.094224346 +0000
+++ new-ftphs//prerm.ex 1970-01-01 00:00:00.000000000 +0000
@@ -1,39 +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)
-# 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//rules new-ftphs//rules
--- old-ftphs//rules 2013-01-04 14:18:01.086225737 +0000
+++ new-ftphs//rules 2013-01-04 14:18:04.054431871 +0000
@@ -9,7 +9,13 @@
# 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
+PACKAGE=libghc6-missingh-dev
CFLAGS = -Wall -g
@@ -36,6 +42,8 @@
configure-stamp:
dh_testdir
# Add here commands to configure the package.
+ make setup
+ ./setup configure --prefix=$(LIBPATH) --ghc
touch configure-stamp
@@ -45,7 +53,8 @@
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ ./setup build
+ make doc
touch build-stamp
@@ -56,6 +65,7 @@
# Add here commands to clean up after the build process.
-$(MAKE) clean
+ rm -f .*config*
dh_clean
@@ -63,23 +73,62 @@
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
+ dh_installdirs -a
# Add here commands to install the package into debian/tmp
- $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+ ./setup install --install-prefix=$(CURDIR)/debian/$(PACKAGE)$(LIBPATH)
+ cp .installed-pkg-config $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/installed-pkg-config
+
+builddocs: builddocs-stamp
+builddocs-stamp:
+ dh_testdir
+ make doc
+
+installdocs: builddocs
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs -i
# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
+binary-indep: builddocs installdocs
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -i
+ dh_installdocs -i
+ dh_installexamples -i
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman -i
+ dh_link -i
+ dh_strip -i
+ dh_compress -i
+ dh_fixperms -i
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb -i
+ dh_shlibdeps -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installexamples -a
# dh_install
# dh_installmenu
# dh_installdebconf
@@ -90,19 +139,19 @@
# dh_installinit
# dh_installcron
# dh_installinfo
- dh_installman
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
+ dh_installman -a
+ dh_link -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
# dh_perl
# dh_python
# dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
More information about the Pkg-haskell-commits
mailing list