[Pkg-haskell-commits] darcs: cabal-debian: Redo packaging, to make use of haskell-devscripts

Joachim Breitner mail at joachim-breitner.de
Mon Dec 22 14:25:44 UTC 2014


Mon Dec 22 14:11:33 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Redo packaging, to make use of haskell-devscripts 

    R ./patches/man-page.diff
    R ./patches/series
    R ./patches/
    A ./cabal-debian.1
    A ./cabal-debian.haskell-binaries
    A ./cabal-debian.manpages
    M ./changelog +6
    M ./rules -74 +4

Mon Dec 22 14:11:33 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Redo packaging, to make use of haskell-devscripts 
diff -rN -u old-cabal-debian/cabal-debian.1 new-cabal-debian/cabal-debian.1
--- old-cabal-debian/cabal-debian.1	1970-01-01 00:00:00.000000000 +0000
+++ new-cabal-debian/cabal-debian.1	2014-12-22 14:25:44.741131783 +0000
@@ -0,0 +1,120 @@
+.\"Original page generated by txt2man and then hacked extensively.
+.TH CABAL-DEBIAN 1  "May 10, 2010"
+
+.SH NAME
+cabal-debian \- create Debian package meta data from a Haskell cabal file.
+
+.SH SYNOPSIS
+.B cabal-debian
+.RI [flags]
+
+.SH DESCRIPTION
+cabal-debian will generated the Debian meta data for a Debian package from the
+cabal file of a Haskell package. The program expects to find the package's
+<pkgname>.cabal file in the directory from which it was run.
+
+.TP
+.B
+\fB--prefix=PATH\fP
+Pass this prefix if we need to configure the package
+
+.TP
+.B
+\fB--ghc\fP
+Compile with GHC.
+
+.TP
+.B
+\fB--hugs\fP
+Compile with HUGS.
+
+.TP
+.B
+\fB--jhc\fP
+Compile with JHC.
+
+.TP
+.B
+\fB--nhc\fP
+Compile with NHC.
+
+.TP
+.B
+\fB-h, -?, \-\-help\fP
+Show this help text.
+
+.TP
+.B
+\fB--name\fP=NAME
+Override the default package name.
+.TP
+.B
+\fB--disable-haddock\fP
+Don't generate API docs.
+.TP
+.B
+\fB--disable-library-profiling\fP
+Don't generate profiling libraries.
+.TP
+.B
+\fB--disable-optimization\fP
+Don't generate optimised code.
+
+.TP
+.B
+\fB--disable-split-objs\fP
+Don't split object files to save space.
+
+.TP
+.B
+\fB-f\fP FLAGS, \fB--flags\fP=FLAGS
+Set given flags in Cabal conditionals.
+
+.TP
+.B
+\fB--release\fP=RELEASE
+Override the default package release.
+
+.TP
+.B
+\fB--debdir\fP=DEBDIR
+Override the default output directory ("./debian").
+
+.TP
+.B
+\fB-v n,q \fB--verbose=n\fP
+Change build verbosity.
+
+.TP
+.B
+\fB--version\fP=VERSION
+Override the default package version.
+
+.TP
+.B
+\fB--maintainer\fP=Maintainer Name <email addr>
+Override the Maintainer name and email in $DEBEMAIL/$EMAIL/$DEBFULLNAME/$FULLNAME.
+
+.TP
+.B
+\fB--debianize\fP
+Generate a new debianization, replacing any existing one.  One of
+\fB--debianize\fP, \fB--substvar\fP, or \fB--update-debianization\fP is
+required.
+
+.TP
+.B
+\fB--substvar\fP=Doc, Prof, or Dev
+Write out the list of dependencies required for the dev, prof or doc package
+depending on the argument. This value can be added to the appropriate substvars
+file.
+
+.TP
+.B
+\fB--update-debianization\fP
+Update an existing debianization.
+
+.SH AUTHOR
+This manual page was originally written by Erik de Castro Lopo 
+<erikd at mega-nerd.com> for the Debian GNU/Linux system (but may be used by 
+others).
diff -rN -u old-cabal-debian/cabal-debian.haskell-binaries new-cabal-debian/cabal-debian.haskell-binaries
--- old-cabal-debian/cabal-debian.haskell-binaries	1970-01-01 00:00:00.000000000 +0000
+++ new-cabal-debian/cabal-debian.haskell-binaries	2014-12-22 14:25:44.741131783 +0000
@@ -0,0 +1 @@
+cabal-debian
diff -rN -u old-cabal-debian/cabal-debian.manpages new-cabal-debian/cabal-debian.manpages
--- old-cabal-debian/cabal-debian.manpages	1970-01-01 00:00:00.000000000 +0000
+++ new-cabal-debian/cabal-debian.manpages	2014-12-22 14:25:44.741131783 +0000
@@ -0,0 +1 @@
+debian/cabal-debian.1
diff -rN -u old-cabal-debian/changelog new-cabal-debian/changelog
--- old-cabal-debian/changelog	2014-12-22 14:25:44.737131780 +0000
+++ new-cabal-debian/changelog	2014-12-22 14:25:44.745131786 +0000
@@ -1,3 +1,9 @@
+cabal-debian (4.17.4-3) UNRELEASED; urgency=medium
+
+  * Redo packaging, to make use of haskell-devscripts 
+
+ -- Joachim Breitner <nomeata at debian.org>  Mon, 22 Dec 2014 15:11:14 +0100
+
 cabal-debian (4.17.4-2) experimental; urgency=medium
 
   * Depend on haskell-devscripts 0.9, found in experimental
diff -rN -u old-cabal-debian/patches/man-page.diff new-cabal-debian/patches/man-page.diff
--- old-cabal-debian/patches/man-page.diff	2014-12-22 14:25:44.737131780 +0000
+++ new-cabal-debian/patches/man-page.diff	1970-01-01 00:00:00.000000000 +0000
@@ -1,123 +0,0 @@
---- /dev/null
-+++ b/cabal-debian.1
-@@ -0,0 +1,120 @@
-+.\"Original page generated by txt2man and then hacked extensively.
-+.TH CABAL-DEBIAN 1  "May 10, 2010"
-+
-+.SH NAME
-+cabal-debian \- create Debian package meta data from a Haskell cabal file.
-+
-+.SH SYNOPSIS
-+.B cabal-debian
-+.RI [flags]
-+
-+.SH DESCRIPTION
-+cabal-debian will generated the Debian meta data for a Debian package from the
-+cabal file of a Haskell package. The program expects to find the package's
-+<pkgname>.cabal file in the directory from which it was run.
-+
-+.TP
-+.B
-+\fB--prefix=PATH\fP
-+Pass this prefix if we need to configure the package
-+
-+.TP
-+.B
-+\fB--ghc\fP
-+Compile with GHC.
-+
-+.TP
-+.B
-+\fB--hugs\fP
-+Compile with HUGS.
-+
-+.TP
-+.B
-+\fB--jhc\fP
-+Compile with JHC.
-+
-+.TP
-+.B
-+\fB--nhc\fP
-+Compile with NHC.
-+
-+.TP
-+.B
-+\fB-h, -?, \-\-help\fP
-+Show this help text.
-+
-+.TP
-+.B
-+\fB--name\fP=NAME
-+Override the default package name.
-+.TP
-+.B
-+\fB--disable-haddock\fP
-+Don't generate API docs.
-+.TP
-+.B
-+\fB--disable-library-profiling\fP
-+Don't generate profiling libraries.
-+.TP
-+.B
-+\fB--disable-optimization\fP
-+Don't generate optimised code.
-+
-+.TP
-+.B
-+\fB--disable-split-objs\fP
-+Don't split object files to save space.
-+
-+.TP
-+.B
-+\fB-f\fP FLAGS, \fB--flags\fP=FLAGS
-+Set given flags in Cabal conditionals.
-+
-+.TP
-+.B
-+\fB--release\fP=RELEASE
-+Override the default package release.
-+
-+.TP
-+.B
-+\fB--debdir\fP=DEBDIR
-+Override the default output directory ("./debian").
-+
-+.TP
-+.B
-+\fB-v n,q \fB--verbose=n\fP
-+Change build verbosity.
-+
-+.TP
-+.B
-+\fB--version\fP=VERSION
-+Override the default package version.
-+
-+.TP
-+.B
-+\fB--maintainer\fP=Maintainer Name <email addr>
-+Override the Maintainer name and email in $DEBEMAIL/$EMAIL/$DEBFULLNAME/$FULLNAME.
-+
-+.TP
-+.B
-+\fB--debianize\fP
-+Generate a new debianization, replacing any existing one.  One of
-+\fB--debianize\fP, \fB--substvar\fP, or \fB--update-debianization\fP is
-+required.
-+
-+.TP
-+.B
-+\fB--substvar\fP=Doc, Prof, or Dev
-+Write out the list of dependencies required for the dev, prof or doc package
-+depending on the argument. This value can be added to the appropriate substvars
-+file.
-+
-+.TP
-+.B
-+\fB--update-debianization\fP
-+Update an existing debianization.
-+
-+.SH AUTHOR
-+This manual page was originally written by Erik de Castro Lopo 
-+<erikd at mega-nerd.com> for the Debian GNU/Linux system (but may be used by 
-+others).
diff -rN -u old-cabal-debian/patches/series new-cabal-debian/patches/series
--- old-cabal-debian/patches/series	2014-12-22 14:25:44.737131780 +0000
+++ new-cabal-debian/patches/series	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-man-page.diff
diff -rN -u old-cabal-debian/rules new-cabal-debian/rules
--- old-cabal-debian/rules	2014-12-22 14:25:44.737131780 +0000
+++ new-cabal-debian/rules	2014-12-22 14:25:44.741131783 +0000
@@ -1,79 +1,9 @@
 #!/usr/bin/make -f
 
-INSTALL = install
-INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
-INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755
-INSTALL_SCRIPT  = $(INSTALL) -p    -o root -g root  -m  755
-INSTALL_DIR     = $(INSTALL) -p -d -o root -g root  -m  755
+# DEB_ENABLE_TESTS = yes
 
-package=cabal-debian
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
 
-clean:
-	$(checkdir)
-	rm -f debian/$(package).setup
+common-binary-arch:: check-ghc-stamp
 
-	rm -f debian/files debian/substvars build-arch stamp-*
-	rm -rf dist debian/$(package)
-
-debian/$(package).setup:
-	ghc Setup.hs -o $@
-
-build: build-arch build-indep
-build-indep:
-
-build-arch: stamp-configure
-	$(checkdir)
-
-	debian/$(package).setup build
-
-	touch $@
-
-stamp-configure: debian/$(package).setup
-	$(checkdir)
-
-	debian/$(package).setup configure --prefix=/usr
-
-	touch stamp-configure
-
-binary: binary-arch
-
-binary-indep:	checkroot build
-
-binary-arch:	checkroot build
-	$(checkdir)
-
-	debian/$(package).setup copy --destdir=$(CURDIR)/debian/$(package)
-	rm -rf debian/$(package)/usr/share/doc/$(package)-*
-	cd debian/$(package) && $(INSTALL_DIR) \
-		usr/bin \
-		usr/share/doc/$(package) \
-		usr/share/man/man1 \
-		DEBIAN
-
-	$(INSTALL_FILE) cabal-debian.1 debian/$(package)/usr/share/man/man1
-	gzip -9f debian/$(package)/usr/share/man/man1/cabal-debian.1
-
-	$(INSTALL_FILE) debian/copyright debian/$(package)/usr/share/doc/$(package)/copyright
-
-	$(INSTALL_FILE) debian/changelog debian/$(package)/usr/share/doc/$(package)/changelog.Debian
-	gzip -9f debian/$(package)/usr/share/doc/$(package)/changelog.Debian
-
-	dpkg-shlibdeps -Tdebian/substvars -dDepends debian/$(package)/usr/bin/*
-	dpkg-gencontrol -ldebian/changelog -isp -p$(package) -Tdebian/substvars -Pdebian/$(package)
-
-	cd debian/$(package) && find * -type f ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums
-
-	chown -R root:root debian/$(package)
-	chmod -R go=rX debian/$(package)
-
-	dpkg --build debian/$(package) ..
-
-define checkdir
-	test -f debian/rules
-endef
-
-checkroot:
-	$(checkdir)
-	test root = "`whoami`"
-
-.PHONY: binary binary-arch binary-indep build build-indep clean checkroot




More information about the Pkg-haskell-commits mailing list