[Pkg-ocaml-maint-commits] [SCM] camltemplate packaging branch, master, updated. debian/1.0.2-1

Sylvain Le Gall gildor at debian.org
Tue Dec 7 20:37:06 UTC 2010


The following commit has been merged in the master branch:
commit 4c08c6f195ede5c455c6e59e74f3b01b431d2529
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Tue Dec 7 15:56:39 2010 +0000

    Initial packaging

diff --git a/Makefile b/Makefile
index a4887b8..9b632ef 100644
--- a/Makefile
+++ b/Makefile
@@ -79,10 +79,16 @@ webinstall: $(DIST_DIR).tar.gz
 # Deletes generated files.
 .PHONY: clean
 clean:
-	for dir in $(DIRS); do cd $$dir; $(MAKE) clean; cd ..; done
-	rm -rf *~ camltemplate-*
+	for dir in $(filter-out doc,$(DIRS)); do $(MAKE) -C $$dir clean; done
+	-$(RM) -r *~ camltemplate-*
 
 .PHONY: distclean
 distclean: clean
-	rm -f Makefile.config
+	$(RM) Makefile.config
+
+.PHONY: really-clean
+really-clean: distclean
+	$(MAKE) -C doc clean
+
+Makefile.config:
 	./configure
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..29d110b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+camltemplate (1.0.2-1) unstable; urgency=low
+
+  * Initial release. (Closes: #605675)
+
+ -- Sylvain Le Gall <gildor at debian.org>  Tue, 07 Dec 2010 15:09:45 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b4c9b59
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: camltemplate
+Section: ocaml
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders:
+  Sylvain Le Gall <gildor at debian.org>
+Build-Depends:
+  ocaml-nox (>= 3.11.1-3~),
+  ocaml-findlib,
+  dh-ocaml (>= 0.9~),
+  debhelper (>= 7.0.50~)
+Standards-Version: 3.9.1
+Homepage: http://camltemplate.forge.ocamlcore.org/
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/camltemplate.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/camltemplate.git
+
+Package: libcamltemplate-ocaml-dev
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: configurable library for generating text from templates in OCaml
+ CamlTemplate is a library for generating text from templates in OCaml. It can
+ be used to generate web pages, scripts, SQL queries, XML documents and other
+ sorts of text.
+ .
+ This library defines a small templating language, with basic operations like
+ #if or #foreach. To use this library you need to configure the data source
+ that will be used in the template with the templating language.
+
+Package: libcamltemplate-ocaml
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: configurable library for generating text from templates in OCaml
+ CamlTemplate is a library for generating text from templates in OCaml. It can
+ be used to generate web pages, scripts, SQL queries, XML documents and other
+ sorts of text.
+ .
+ This library defines a small templating language, with basic operations like
+ #if or #foreach. To use this library you need to configure the data source
+ that will be used in the template with the templating language.
+ .
+ This package contains the shared runtime libraries.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a78caa8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: camltemplate
+Maintainer: Sylvain Le Gall <gildor at debian.org>
+
+Files: *
+Copyright: (C) 2003-2005 Benjamin Geer
+License: GPL-2+
+
+ See '/usr/share/common-licenses/GPL-2' for the full text.
+
+ In addition, as a special exception, Benjamin Geer gives permission
+ to link the code of this program with the Apache HTTP Server (or
+ with modified versions of Apache that use the same license as
+ Apache), and distribute linked combinations including the two. You
+ must obey the GNU General Public License in all respects for all of
+ the code used other than Apache. If you modify this file, you may
+ extend this exception to your version of the file, but you are not
+ obligated to do so. If you do not wish to do so, delete this
+ exception statement from your version.
+
+
+Files: debian/*
+Copyright: (C) 2010 Sylvain Le Gall <gildor at debian.org>
+License: GPL-3+
+
+ See '/usr/share/common-licenses/GPL-3' for the full text.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/libcamltemplate-ocaml-dev.doc-base.manual b/debian/libcamltemplate-ocaml-dev.doc-base.manual
new file mode 100644
index 0000000..ac19417
--- /dev/null
+++ b/debian/libcamltemplate-ocaml-dev.doc-base.manual
@@ -0,0 +1,10 @@
+Document: libcamltemplate-ocaml-dev-manual
+Title: CamlTemplate Manual
+Section: Programming/OCaml
+
+Format: HTML
+Index: /usr/share/doc/libcamltemplate-ocaml-dev/manual/index.html
+Files: /usr/share/doc/libcamltemplate-ocaml-dev/manual/*
+
+Format: PDF 
+Files: /usr/share/doc/libcamltemplate-ocaml-dev/pdf/manual.pdf.gz
diff --git a/debian/libcamltemplate-ocaml-dev.docs b/debian/libcamltemplate-ocaml-dev.docs
new file mode 100644
index 0000000..61f086a
--- /dev/null
+++ b/debian/libcamltemplate-ocaml-dev.docs
@@ -0,0 +1,3 @@
+doc/html/api
+doc/html/manual
+doc/pdf/manual.pdf
diff --git a/debian/libcamltemplate-ocaml-dev.install.in b/debian/libcamltemplate-ocaml-dev.install.in
new file mode 100644
index 0000000..a537506
--- /dev/null
+++ b/debian/libcamltemplate-ocaml-dev.install.in
@@ -0,0 +1,12 @@
+ at OCamlStdlibDir@/camltemplate/*.cmo
+ at OCamlStdlibDir@/camltemplate/*.cmi
+ at OCamlStdlibDir@/camltemplate/*.mli
+OPT: @OCamlStdlibDir@/camltemplate/*.o
+OPT: @OCamlStdlibDir@/camltemplate/*.cmxa
+OPT: @OCamlStdlibDir@/camltemplate/*.a
+OPT: @OCamlStdlibDir@/camltemplate/*.cmx
+usr/share/camltemplate/OCamlMakefile usr/share/doc/libcamltemplate-ocaml-dev/
+usr/share/camltemplate/examples      usr/share/doc/libcamltemplate-ocaml-dev/
+usr/doc/camltemplate/pdf             usr/share/doc/libcamltemplate-ocaml-dev/
+usr/doc/camltemplate/html/manual     usr/share/doc/libcamltemplate-ocaml-dev/
+usr/doc/camltemplate/html/api        usr/share/doc/libcamltemplate-ocaml-dev/
diff --git a/debian/libcamltemplate-ocaml-dev.ocamldoc b/debian/libcamltemplate-ocaml-dev.ocamldoc
new file mode 100644
index 0000000..be5a83c
--- /dev/null
+++ b/debian/libcamltemplate-ocaml-dev.ocamldoc
@@ -0,0 +1,2 @@
+-d api
+--doc-base-generate
diff --git a/debian/libcamltemplate-ocaml.install.in b/debian/libcamltemplate-ocaml.install.in
new file mode 100644
index 0000000..10fa6fe
--- /dev/null
+++ b/debian/libcamltemplate-ocaml.install.in
@@ -0,0 +1,2 @@
+ at OCamlStdlibDir@/camltemplate/META
+ at OCamlStdlibDir@/camltemplate/*.cma
diff --git a/debian/patches/debian-changes-1.0.2-1 b/debian/patches/debian-changes-1.0.2-1
new file mode 100644
index 0000000..cd02f63
--- /dev/null
+++ b/debian/patches/debian-changes-1.0.2-1
@@ -0,0 +1,73 @@
+Description: Upstream changes introduced in version 1.0.2-1
+ This patch has been created by dpkg-source during the package build.
+ Here's the last changelog entry, hopefully it gives details on why
+ those changes were made:
+ .
+ camltemplate (1.0.2-1) unstable; urgency=low
+ .
+   * Initial release. (Closes: #605675)
+ .
+ The person named in the Author field signed this changelog entry.
+Author: Sylvain Le Gall <gildor at debian.org>
+Bug-Debian: http://bugs.debian.org/605675
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- camltemplate-1.0.2.orig/Makefile
++++ camltemplate-1.0.2/Makefile
+@@ -79,10 +79,16 @@ webinstall: $(DIST_DIR).tar.gz
+ # Deletes generated files.
+ .PHONY: clean
+ clean:
+-	for dir in $(DIRS); do cd $$dir; $(MAKE) clean; cd ..; done
+-	rm -rf *~ camltemplate-*
++	for dir in $(filter-out doc,$(DIRS)); do $(MAKE) -C $$dir clean; done
++	-$(RM) -r *~ camltemplate-*
+ 
+ .PHONY: distclean
+ distclean: clean
+-	rm -f Makefile.config
++	$(RM) Makefile.config
++
++.PHONY: really-clean
++really-clean: distclean
++	$(MAKE) -C doc clean
++
++Makefile.config:
+ 	./configure
+--- camltemplate-1.0.2.orig/examples/Makefile
++++ camltemplate-1.0.2/examples/Makefile
+@@ -23,6 +23,7 @@ install:
+ 	cp -r examples.rules $(ALL_EXAMPLES) $(INSTALL_DIR)/examples
+ 	find $(INSTALL_DIR)/examples -type d -name CVS -prune -exec rm -rf \{} \;
+ 	find $(INSTALL_DIR)/examples -type d -name ._d -prune -exec rm -rf \{} \;
++	find $(INSTALL_DIR)/examples -type f -name .cvsignore -prune -exec rm -rf \{} \;
+ 
+ .PHONY: uninstall
+ uninstall:
+--- camltemplate-1.0.2.orig/src/Makefile
++++ camltemplate-1.0.2/src/Makefile
+@@ -42,10 +42,10 @@ opt:
+ 
+ install:
+ 	files=`$(COLLECT_FILES) META camlTemplate.mli camlTemplate.cmi camltemplate.cma camltemplate.cmxa camltemplate.a camlTemplate_mt.cmo camlTemplate_mt.cmx camlTemplate_mt.o` && \
+-	$(OCAMLFIND) install -destdir $(PREFIX) camltemplate $$files
++	$(OCAMLFIND) install camltemplate $$files
+ 
+ uninstall:
+-	$(OCAMLFIND) remove -destdir $(PREFIX) camltemplate
++	$(OCAMLFIND) remove camltemplate
+ 
+ clean:
+ 	rm -rf *.o *.a *.cm? mt_cmis *.cm?a ctLexer.ml ctParser.ml ctParser.mli *~
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3893f58
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian-changes-1.0.2-1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d65bb7d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DESTDIR=$(CURDIR)/debian/tmp
+
+include /usr/share/ocaml/ocamlvars.mk
+
+OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
+export OCAMLFIND_DESTDIR
+OCAMLFIND_LDCONF=ignore
+export OCAMLFIND_LDCONF
+
+%:
+	dh --with ocaml $@
+
+.PHONY: override_dh_auto_configure
+override_dh_auto_configure:
+	./configure '--prefix=$(DESTDIR)/usr' 
+
+.PHONY: override_dh_auto_build
+override_dh_auto_build:
+	$(MAKE)
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+	$(MAKE) opt
+endif 
+
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+	mkdir -p '$(OCAMLFIND_DESTDIR)'
+	$(MAKE) -C examples clean
+	$(MAKE) install 
+
+.PHONY: override_dh_install
+override_dh_install:
+	dh_install --fail-missing
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+	$(MAKE) distclean
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f466b19
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://forge.ocamlcore.org/frs/?group_id=35 \
+    .*/camltemplate-([\d\.]*)\.tar\.gz
diff --git a/examples/Makefile b/examples/Makefile
index ddc784d..f40aa58 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -23,6 +23,7 @@ install:
 	cp -r examples.rules $(ALL_EXAMPLES) $(INSTALL_DIR)/examples
 	find $(INSTALL_DIR)/examples -type d -name CVS -prune -exec rm -rf \{} \;
 	find $(INSTALL_DIR)/examples -type d -name ._d -prune -exec rm -rf \{} \;
+	find $(INSTALL_DIR)/examples -type f -name .cvsignore -prune -exec rm -rf \{} \;
 
 .PHONY: uninstall
 uninstall:
diff --git a/src/Makefile b/src/Makefile
index 2ad01d5..32b69c9 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -42,10 +42,10 @@ opt:
 
 install:
 	files=`$(COLLECT_FILES) META camlTemplate.mli camlTemplate.cmi camltemplate.cma camltemplate.cmxa camltemplate.a camlTemplate_mt.cmo camlTemplate_mt.cmx camlTemplate_mt.o` && \
-	$(OCAMLFIND) install -destdir $(PREFIX) camltemplate $$files
+	$(OCAMLFIND) install camltemplate $$files
 
 uninstall:
-	$(OCAMLFIND) remove -destdir $(PREFIX) camltemplate
+	$(OCAMLFIND) remove camltemplate
 
 clean:
 	rm -rf *.o *.a *.cm? mt_cmis *.cm?a ctLexer.ml ctParser.ml ctParser.mli *~

-- 
camltemplate packaging



More information about the Pkg-ocaml-maint-commits mailing list