[Pkg-haskell-commits] darcs: haskell-hledger-web: Change packaging to standard haskell-devscripts setup
Joachim Breitner
mail at joachim-breitner.de
Tue Jun 23 10:59:58 UTC 2015
Tue Jun 23 10:46:45 UTC 2015 Joachim Breitner <mail at joachim-breitner.de>
* Change packaging to standard haskell-devscripts setup
M ./control +2
A ./hledger-web.haskell-binaries
M ./rules -68 +2
Tue Jun 23 10:46:45 UTC 2015 Joachim Breitner <mail at joachim-breitner.de>
* Change packaging to standard haskell-devscripts setup
diff -rN -u old-haskell-hledger-web/control new-haskell-hledger-web/control
--- old-haskell-hledger-web/control 2015-06-23 10:59:58.748642483 +0000
+++ new-haskell-hledger-web/control 2015-06-23 10:59:58.752642486 +0000
@@ -4,6 +4,8 @@
Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
Uploaders: Clint Adams <clint at debian.org>
Build-Depends: haskell-devscripts (>= 0.9)
+ , cdbs
+ , debhelper (>= 9)
, ghc
, ghc-ghci
, libghc-blaze-html-dev
diff -rN -u old-haskell-hledger-web/hledger-web.haskell-binaries new-haskell-hledger-web/hledger-web.haskell-binaries
--- old-haskell-hledger-web/hledger-web.haskell-binaries 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-hledger-web/hledger-web.haskell-binaries 2015-06-23 10:59:58.752642486 +0000
@@ -0,0 +1 @@
+hledger-web
diff -rN -u old-haskell-hledger-web/rules new-haskell-hledger-web/rules
--- old-haskell-hledger-web/rules 2015-06-23 10:59:58.748642483 +0000
+++ new-haskell-hledger-web/rules 2015-06-23 10:59:58.760642491 +0000
@@ -1,70 +1,4 @@
#!/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
-
-package=hledger-web
-
-clean:
- $(checkdir)
- rm -f build-arch stamp-configure
- rm -f debian/substvars debian/files
- rm -rf dist debian/$(package)
-
-build: build-arch build-indep
-build-indep:
-build-arch: stamp-configure
- $(checkdir)
-
- runhaskell Setup.hs build
-
- touch build-arch
-
-stamp-configure:
- $(checkdir)
-
- runhaskell Setup.hs configure --prefix=/usr
-
- touch stamp-configure
-
-binary: binary-arch
-
-binary-indep: checkroot build
-
-binary-arch: checkroot build
- $(checkdir)
-
- runhaskell Setup.hs copy --destdir=$(CURDIR)/debian/$(package)
- rm -rf debian/$(package)/usr/share/doc/$(package)-*
- cd debian/$(package) && $(INSTALL_DIR) \
- usr/bin \
- usr/share/doc/$(package) \
- DEBIAN
-
- $(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: build binary binary-arch binary-indep clean checkroot
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
More information about the Pkg-haskell-commits
mailing list