* Policy
- mandate the compilation of *.cm[ao] with debugging information for
libraries and forbid it for bytecode programs
-
- -- Stefano Zacchiroli <zack@debian.org> Wed, 11 Apr 2007 11:13:11 +0200
+
+ [Ralf Treinen]
+ * debian/patches/*
+ - added: install_scripts_config: use a patched config.sh since PREFIX is
+ diferent at compile time and at installation time
+ - added: ocaml-interp_manpage, fixes typo in ocaml manpage
+ (closes: Bug#417847).
+ * debian/rules:
+ - added creation of config/config.debian.install
+ - Patch LIBDIR and STBLIBDIR setting in config/Makefile after invokation
+ of configure
+
+ -- Ralf Treinen <treinen@debian.org> Wed, 11 Apr 2007 16:37:21 +0200
ocaml (3.09.3-1) experimental; urgency=low
usr/bin
-usr/share/emacs/site-lisp/ocaml-mode
\ No newline at end of file
+usr/share/emacs/site-lisp/ocaml-mode
#pr_o
no_rpath
stdlib_man_section
+install_scripts_config
+ocaml-interp_manpage
+
+
--- /dev/null
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## install_scripts_config.dpatch by Ralf Treinen <treinen@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use for installatation a patched config.sh (created by debian/rules)
+## DP: Ralf Treinen <treinen@debian.org>
+
+@DPATCH@
+diff -urNad ocaml-3.10.0~beta~/build/install.sh ocaml-3.10.0~beta/build/install.sh
+--- ocaml-3.10.0~beta~/build/install.sh 2007-03-06 10:48:38.000000000 +0100
++++ ocaml-3.10.0~beta/build/install.sh 2007-04-11 15:21:12.000000000 +0200
+@@ -3,7 +3,7 @@
+
+ cd `dirname $0`/..
+
+-. config/config.sh
++. config/config.debian.install.sh
+
+ not_installed=$PWD/_build/not_installed
+
+diff -urNad ocaml-3.10.0~beta~/build/partial-install.sh ocaml-3.10.0~beta/build/partial-install.sh
+--- ocaml-3.10.0~beta~/build/partial-install.sh 2007-03-06 10:48:38.000000000 +0100
++++ ocaml-3.10.0~beta/build/partial-install.sh 2007-04-11 15:21:33.000000000 +0200
+@@ -8,7 +8,7 @@
+
+ cd `dirname $0`/..
+
+-. config/config.sh
++. config/config.debian.install.sh
+
+ not_installed=$PWD/_build/not_installed
+
--- /dev/null
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## ocaml-interp_manpage.dpatch by Ralf Treinen <treinen@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: typo in ocaml manpage. <treinen@debian.org>
+
+@DPATCH@
+diff -urNad ocaml-3.10.0~beta~/man/ocaml.m ocaml-3.10.0~beta/man/ocaml.m
+--- ocaml-3.10.0~beta~/man/ocaml.m 2002-02-08 11:16:10.000000000 +0100
++++ ocaml-3.10.0~beta/man/ocaml.m 2007-04-11 17:51:50.000000000 +0200
+@@ -25,7 +25,7 @@
+ command is the toplevel system for Objective Caml,
+ that permits interactive use of the Objective Caml system through a
+ read-eval-print loop. In this mode, the system repeatedly reads Caml
+-phrases from the input, then typechecks, compile and evaluate
++phrases from the input, then typechecks, compiles and evaluates
+ them, then prints the inferred type and result value, if any. The
+ system prints a # (sharp) prompt before reading each phrase.
+
-tkdefs "-I/usr/include/tcl8.4" \
-tklibs "-L/usr/lib -ltk8.4 -ltcl8.4"
sed -e "s%MANDIR=.*$$%MANDIR=\$$(PREFIX)/share/man%g" \
+ -e "s%LIBDIR=.*$$%LIBDIR=\$$(PREFIX)/lib/ocaml/$(OCAMLABI)%g" \
+ -e "s%STUBLIBDIR=.*$$%STUBLIBDIR=\$$(PREFIX)/lib/ocaml/$(OCAMLABI)/sublibs%g" \
config/Makefile >config/Makefile.debian
mv config/Makefile.debian config/Makefile
if test -z "`grep "OTHERLIBRARIES.*labltk" config/Makefile`"; then\
dh_installdirs -a
# Let's install ocaml first.
+ sed -e 's|PREFIX=\"/.*\"|PREFIX=\"$(CURDIR)/debian/usr\"|' < config/config.sh > config/config.debian.install.sh
$(MAKE) install PREFIX=$(CURDIR)/debian/ocaml-nox/usr
install -m 644 debian/ocaml.xpm \
$(CURDIR)/debian/ocaml-interp/usr/share/pixmaps