[Pkg-haskell-commits] [SCM] haskell-testpack branch, master, updated. debian/1.0.2-1-4-gb0d6b36
John Goerzen
jgoerzen at complete.org
Fri Apr 23 14:42:41 UTC 2010
The following commit has been merged in the master branch:
commit 6bfa39618b181a4c79a383be0d9ed6ae7864aeff
Author: John Goerzen <jgoerzen at complete.org>
Date: Wed Oct 6 03:38:26 2004 +0100
Checkpointing debian/ work
Keywords:
(jgoerzen at complete.org--projects/missingh--head--1.0--patch-27)
diff --git a/COPYRIGHT b/COPYRIGHT
new file mode 100644
index 0000000..db8efac
--- /dev/null
+++ b/COPYRIGHT
@@ -0,0 +1,26 @@
+MissingH: Haskell libraries
+Copyright (C) 2004 John Goerzen <jgoerzen at complete.org>
+
+All code is under the following license unless otherwise noted:
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+The GNU General Public License is available in the file COPYING in the source
+distribution. Debian GNU/Linux users may find this in
+/usr/share/common-licenses/GPL-2.
+
+If the GPL is unacceptable for your uses, please e-mail me; alternative
+terms can be negotiated for your project.
+
+arch-tag: copyright statement
diff --git a/debian/changelog b/debian/changelog
index b4fef83..e3974a9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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 --git a/debian/control b/debian/control
index e9daf99..1355176 100644
--- a/debian/control
+++ b/debian/control
@@ -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 --git a/debian/postinst.ex b/debian/libghc6-missingh-dev.postinst
similarity index 89%
rename from debian/postinst.ex
rename to debian/libghc6-missingh-dev.postinst
index 87c7ec1..ea7f9d0 100644
--- a/debian/postinst.ex
+++ b/debian/libghc6-missingh-dev.postinst
@@ -19,7 +19,8 @@ set -e
case "$1" in
configure)
-
+ ghc-pkg -g --add-package \
+ < /usr/share/doc/libghc6-missingh-dev/installed-pkg-config
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/prerm.ex b/debian/libghc6-missingh-prerm
similarity index 90%
rename from debian/prerm.ex
rename to debian/libghc6-missingh-prerm
index 929d95b..ac0db17 100644
--- a/debian/prerm.ex
+++ b/debian/libghc6-missingh-prerm
@@ -19,6 +19,8 @@ set -e
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)
diff --git a/debian/rules b/debian/rules
index 9d5c8cd..13a5135 100644
--- a/debian/rules
+++ b/debian/rules
@@ -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: configure-stamp
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 @@ build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ ./setup build
+ make doc
touch build-stamp
@@ -56,6 +65,7 @@ clean:
# Add here commands to clean up after the build process.
-$(MAKE) clean
+ rm -f .*config*
dh_clean
@@ -63,23 +73,62 @@ install: build
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 @@ binary-arch: build install
# 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
--
haskell-testpack
More information about the Pkg-haskell-commits
mailing list