[Pkg-ocaml-maint-commits] r982 - packages/camlrpc/trunk/debian/patches

Thomas Petazzoni tpetazzo-guest@costa.debian.org
Thu, 17 Feb 2005 18:27:57 +0100


Author: tpetazzo-guest
Date: 2005-02-17 18:27:56 +0100 (Thu, 17 Feb 2005)
New Revision: 982

Added:
   packages/camlrpc/trunk/debian/patches/make-doc.dpatch
Modified:
   packages/camlrpc/trunk/debian/patches/00list
Log:
Patch for upstream Makefile so that documentation is generated through ocamldoc

Modified: packages/camlrpc/trunk/debian/patches/00list
===================================================================
--- packages/camlrpc/trunk/debian/patches/00list	2005-02-17 17:27:30 UTC (rev 981)
+++ packages/camlrpc/trunk/debian/patches/00list	2005-02-17 17:27:56 UTC (rev 982)
@@ -0,0 +1 @@
+make-doc

Added: packages/camlrpc/trunk/debian/patches/make-doc.dpatch
===================================================================
--- packages/camlrpc/trunk/debian/patches/make-doc.dpatch	2005-02-17 17:27:30 UTC (rev 981)
+++ packages/camlrpc/trunk/debian/patches/make-doc.dpatch	2005-02-17 17:27:56 UTC (rev 982)
@@ -0,0 +1,105 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## make-doc.dpatch by  <thomas@crazy.kos.nx>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad camlrpc-0.4.1/Makefile /tmp/dpep.U5aW3r/camlrpc-0.4.1/Makefile
+--- camlrpc-0.4.1/Makefile	2004-07-13 15:30:24.000000000 +0200
++++ /tmp/dpep.U5aW3r/camlrpc-0.4.1/Makefile	2005-02-17 18:24:01.000000000 +0100
+@@ -26,6 +26,12 @@
+ uninstall:
+ 	$(MAKE) -C src uninstall
+ 
++.PHONY: doc
++doc:
++	mkdir -p doc/api/
++	for pkg in $(PKGLIST); do \
++		$(MAKE) -C src/$$pkg doc || exit; \
++        done
+ 
+ .PHONY: clean
+ clean:
+diff -urNad camlrpc-0.4.1/src/generator/Makefile /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/generator/Makefile
+--- camlrpc-0.4.1/src/generator/Makefile	2004-07-13 15:30:25.000000000 +0200
++++ /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/generator/Makefile	2005-02-17 18:23:50.000000000 +0100
+@@ -9,6 +9,8 @@
+ opt:
+ 	true
+ 
++doc:
++
+ depend:
+ 	$(OCAMLDEP) *.ml *.mli >depend
+ 
+diff -urNad camlrpc-0.4.1/src/rpc/Makefile /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc/Makefile
+--- camlrpc-0.4.1/src/rpc/Makefile	2004-07-13 15:30:25.000000000 +0200
++++ /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc/Makefile	2005-02-17 18:23:50.000000000 +0100
+@@ -9,6 +9,10 @@
+ 	$(MAKE) depend
+ 	$(MAKE) -f Makefile.code opt
+ 
++doc:
++	mkdir $(TOP_DIR)/doc/api/rpc
++	ocamlfind ocamldoc -package "equeue,unix" -html -d $(TOP_DIR)/doc/api/rpc *.mli
++
+ depend:
+ 	$(OCAMLDEP) *.ml *.mli >depend
+ 
+diff -urNad camlrpc-0.4.1/src/rpc-auth-dh/Makefile /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-auth-dh/Makefile
+--- camlrpc-0.4.1/src/rpc-auth-dh/Makefile	2004-07-13 15:30:26.000000000 +0200
++++ /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-auth-dh/Makefile	2005-02-17 18:23:50.000000000 +0100
+@@ -20,6 +20,10 @@
+ 	$(MAKE) depend
+ 	$(MAKE) -f Makefile.code opt
+ 
++doc:
++	mkdir $(DOCDIR)/rpc-auth-dh
++	ocamlfind ocamldoc -package "equeue,unix" -html -d $(DOCDIR)/rpc-auth-dh *.mli
++
+ generate: $(XDRFILES:.x=.astamp) $(XDRFILES:.x=.cstamp) 
+ # Don't generate server stubs
+ 
+diff -urNad camlrpc-0.4.1/src/rpc-auth-local/Makefile /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-auth-local/Makefile
+--- camlrpc-0.4.1/src/rpc-auth-local/Makefile	2004-07-13 15:30:26.000000000 +0200
++++ /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-auth-local/Makefile	2005-02-17 18:23:50.000000000 +0100
+@@ -18,6 +18,10 @@
+ 	$(MAKE) depend
+ 	$(MAKE) -f Makefile.code opt
+ 
++doc:
++	mkdir $(DOCDIR)/rpc-auth-local
++	ocamlfind ocamldoc -package "equeue,unix" -html -d $(DOCDIR)/rpc-auth-local *.mli
++
+ #generate: $(XDRFILES:.x=.astamp) $(XDRFILES:.x=.cstamp) 
+ # Don't generate server stubs
+ 
+diff -urNad camlrpc-0.4.1/src/rpc-over-http/Makefile /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-over-http/Makefile
+--- camlrpc-0.4.1/src/rpc-over-http/Makefile	2004-07-13 15:30:26.000000000 +0200
++++ /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-over-http/Makefile	2005-02-17 18:23:50.000000000 +0100
+@@ -9,6 +9,10 @@
+ 	$(MAKE) depend
+ 	$(MAKE) -f Makefile.code opt
+ 
++doc:
++	mkdir $(TOP_DIR)/doc/api/rpc-over-http
++	ocamlfind ocamldoc -package "equeue,unix,netclient,rpc" -html -d $(TOP_DIR)/doc/api/rpc-over-http *.mli
++
+ depend:
+ 	$(OCAMLDEP) *.ml *.mli >depend
+ 
+diff -urNad camlrpc-0.4.1/src/rpc-xti/Makefile /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-xti/Makefile
+--- camlrpc-0.4.1/src/rpc-xti/Makefile	2004-07-13 15:30:26.000000000 +0200
++++ /tmp/dpep.U5aW3r/camlrpc-0.4.1/src/rpc-xti/Makefile	2005-02-17 18:23:50.000000000 +0100
+@@ -18,6 +18,10 @@
+ 	$(MAKE) depend
+ 	$(MAKE) -f Makefile.code opt
+ 
++doc:
++	mkdir $(DOCDIR)/rpc-xti
++	ocamlfind ocamldoc -package "equeue,unix" -html -d $(DOCDIR)/rpc-xti *.mli
++
+ #generate: $(XDRFILES:.x=.astamp) $(XDRFILES:.x=.cstamp) 
+ # Don't generate server stubs
+ 


Property changes on: packages/camlrpc/trunk/debian/patches/make-doc.dpatch
___________________________________________________________________
Name: svn:executable
   + *