[Pkg-ocaml-maint-commits] [SCM] ocamlviz packaging branch, master, updated. upstream/1.01-1-gf3c446d

Mehdi Dogguy mehdi at debian.org
Thu Mar 25 00:06:56 UTC 2010


The following commit has been merged in the master branch:
commit f3c446dfef819bc73a78374675c0a53a106b4926
Author: Mehdi Dogguy <mehdi at debian.org>
Date:   Wed Mar 24 19:48:20 2010 +0100

    Initial packaging

diff --git a/debian/META.in b/debian/META.in
new file mode 100644
index 0000000..3ac2192
--- /dev/null
+++ b/debian/META.in
@@ -0,0 +1,6 @@
+name = "ocamlviz"
+description = "real-time profiling tools for Objective Caml"
+version = "@OVVER@"
+requires = "unix,threads"
+archive(byte,mt) = "libocamlviz.cma"
+archive(native,mt) = "libocamlviz.cmxa"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f717e04
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+ocamlviz (1.01-1) unstable; urgency=low
+
+  * Initial release (Closes: #545532)
+
+ -- Mehdi Dogguy <mehdi at debian.org>  Wed, 24 Mar 2010 19:34:00 +0100
+
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..d2b7356
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,5 @@
+.depend
+Makefile
+config.log
+camlp4/pa_ocamlviz.annot
+camlp4/pa_ocamlviz.cm*
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..f74d79d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,108 @@
+Source: ocamlviz
+Section: ocaml
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders: Mehdi Dogguy <mehdi at debian.org>
+Build-Depends:
+ debhelper (>= 7.0.50),
+ autoconf,
+ automake,
+ ocaml-nox (>= 3.11.1),
+ ocaml-best-compilers,
+ camlp4-extra,
+ dh-ocaml (>= 0.9),
+ liblablgtk2-ocaml-dev,
+ libcairo-ocaml-dev
+Build-Depends-Indep:
+ mlpost,
+ ocamlweb,
+ texlive-latex-extra
+Standards-Version: 3.8.4
+Homepage: http://ocamlviz.forge.ocamlcore.org/
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocamlviz.git
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocamlviz.git
+
+Package: ocamlviz
+Section: devel
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends}
+Recommends:
+ libocamlviz-ocaml-dev
+Description: real-time profiling tools for Objective Caml (clients)
+ Ocamlviz gives the ability to instrument an existing code, in real
+ time, with lightweight monitoring annotations. Ocamlviz can also be
+ used as a debugging tool.
+ .
+ Here are a few possibilities provided by Ocamlviz:
+  * observe details about the garbage collector
+  * observe how many times the program goes through a point
+  * make a set of values (any) and count its cardinal number and its
+    size in the heap
+  * observe how much time passed between two points of the program
+  * observe the value of integers, floating-point numbers, booleans
+    and strings
+  * observe details about hash tables, like the number of empty
+    buckets, or the filling rate
+  * etc
+ .
+ This package provides two sorts of client output:
+  * an ASCII client, the monitoring is displayed in a file
+  * a Graphical User Interface, using Lablgtk2, that allows, for
+    instance, displaying data in a graph
+
+Package: libocamlviz-ocaml-dev
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends},
+ ocamlviz
+Recommends:
+ libocamlviz-ocaml-doc
+Description: real-time profiling tools for Objective Caml (library)
+ Ocamlviz gives the ability to instrument an existing code, in real
+ time, with lightweight monitoring annotations. Ocamlviz can also be
+ used as a debugging tool.
+ .
+ Here are a few possibilities provided by Ocamlviz:
+  * observe details about the garbage collector
+  * observe how many times the program goes through a point
+  * make a set of values (any) and count its cardinal number and its
+    size in the heap
+  * observe how much time passed between two points of the program
+  * observe the value of integers, floating-point numbers, booleans
+    and strings
+  * observe details about hash tables, like the number of empty
+    buckets, or the filling rate
+  * etc
+ .
+ This package provides the Ocamlviz library.
+
+Package: libocamlviz-ocaml-doc
+Section: doc
+Architecture: all
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends}
+Description: real-time profiling tools for Objective Caml (documentation)
+ Ocamlviz gives the ability to instrument an existing code, in real
+ time, with lightweight monitoring annotations. Ocamlviz can also be
+ used as a debugging tool.
+ .
+ Here are a few possibilities provided by Ocamlviz:
+  * observe details about the garbage collector
+  * observe how many times the program goes through a point
+  * make a set of values (any) and count its cardinal number and its
+    size in the heap
+  * observe how much time passed between two points of the program
+  * observe the value of integers, floating-point numbers, booleans
+    and strings
+  * observe details about hash tables, like the number of empty
+    buckets, or the filling rate
+  * etc
+ .
+ This package provides the API documentation of the Ocamlviz library
+ generated by ocamldoc out the source code.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..65d32b0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+X-Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+X-Debianized-By: Mehdi Dogguy <mehdi at debian.org>
+X-Debianized-Date: Wed Mar 24 19:29:30 CET 2010.
+X-Source-Downloaded-From: http://ocamlviz.forge.ocamlcore.org/
+X-Upstream-Author:
+  Julien Robert
+  Guillaume Von Tokarski
+  Sylvain Conchon
+  Jean-Christophe Filliatre
+  Fabrice Le Fessant
+
+Files: debian/*
+Copyright: © 2010 Mehdi Dogguy <mehdi at debian.org>
+License: LGPL-2
+  See `/usr/share/common-licenses/LGPL-2'.
+
+Files: *
+Copyright: © 2009-2010 INRIA - CNRS - Universite Paris Sud
+License: LGPL-2 with static link exception
+
+    This software is distributed under the terms of the GNU Library General
+    Public License version 2 (included below). 
+
+    As a special exception to the GNU Library General Public License, you
+    may link, statically or dynamically, a "work that uses the Library"
+    with a publicly distributed version of the Library to produce an
+    executable file containing portions of the Library, and distribute
+    that executable file under terms of your choice, without any of the
+    additional requirements listed in clause 6 of the GNU Library General
+    Public License. By "a publicly distributed version of the Library", we
+    mean either the unmodified Library as distributed, or a
+    modified version of the Library that is distributed under the
+    conditions defined in clause 3 of the GNU Library General Public
+    License. This exception does not however invalidate any other reasons
+    why the executable file might be covered by the GNU Library General
+    Public License.  
+
+  See `/usr/share/common-licenses/LGPL-2'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..3f19c92
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,11 @@
+[DEFAULT]
+pristine-tar = True
+filter = [
+    "ocamlgraph",
+    "ocamlgraph.tar.gz",
+    "doc/manuals",
+    "src/impact",
+    "src/security",
+    "cil/doc",
+    "tests/test/adpcm.c"
+    ]
diff --git a/debian/libocamlviz-ocaml-doc.install b/debian/libocamlviz-ocaml-doc.install
new file mode 100644
index 0000000..38e72dc
--- /dev/null
+++ b/debian/libocamlviz-ocaml-doc.install
@@ -0,0 +1 @@
+doc/manual.pdf	usr/share/doc/libocamlviz-ocaml-doc
diff --git a/debian/libocamlviz-ocaml-doc.ocamldoc b/debian/libocamlviz-ocaml-doc.ocamldoc
new file mode 100644
index 0000000..1bbb022
--- /dev/null
+++ b/debian/libocamlviz-ocaml-doc.ocamldoc
@@ -0,0 +1,2 @@
+-sort -I src/
+--include debian/libocamlviz-ocaml-dev/usr/lib
diff --git a/debian/ocamlviz.links b/debian/ocamlviz.links
new file mode 100644
index 0000000..1e4b958
--- /dev/null
+++ b/debian/ocamlviz.links
@@ -0,0 +1,2 @@
+usr/share/man/man1/ocamlviz.1.gz usr/share/man/man1/ocamlviz-ascii.1.gz
+usr/share/man/man1/ocamlviz.1.gz usr/share/man/man1/ocamlviz-gui.1.gz
diff --git a/debian/ocamlviz.manpages b/debian/ocamlviz.manpages
new file mode 100644
index 0000000..81a1fe2
--- /dev/null
+++ b/debian/ocamlviz.manpages
@@ -0,0 +1 @@
+doc/ocamlviz.1
diff --git a/debian/patches/detect_cairo b/debian/patches/detect_cairo
new file mode 100644
index 0000000..9b7d0c3
--- /dev/null
+++ b/debian/patches/detect_cairo
@@ -0,0 +1,11 @@
+--- a/configure.in
++++ b/configure.in
+@@ -143,7 +143,7 @@
+ fi
+ 
+ # checking for cairo
+-AC_CHECK_FILE($OCAMLLIB/cairo/cairo.cmxa,CAIRO=yes,CAIRO=no)
++AC_CHECK_FILE($OCAMLLIB/cairo/cairo.cma,CAIRO=yes,CAIRO=no)
+ if test "$CAIRO" = yes ; then
+       INCLUDECAIRO="-I +cairo"
+ fi
diff --git a/debian/patches/mlpost_byte b/debian/patches/mlpost_byte
new file mode 100644
index 0000000..7d39fb0
--- /dev/null
+++ b/debian/patches/mlpost_byte
@@ -0,0 +1,11 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -182,7 +182,7 @@
+ 	ocamldoc -html -d doc -I src -I +lablgtk2 $(OCAMLDOCFILES)
+ 
+ doc/manual.pdf: doc/manual.tex
+-	cd doc && mlpost -native -latex manual.tex -pdf fig.ml && pdflatex manual.tex
++	cd doc && mlpost -latex manual.tex -pdf fig.ml && pdflatex manual.tex
+ 
+ wc:
+ 	ocamlwc src/*.ml* tests/*.ml* www/*.html -p 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8f622c7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+detect_cairo
+mlpost_byte
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..17443dd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+include /usr/share/ocaml/ocamlvars.mk
+
+OVLIBDIR=$(CURDIR)/debian/libocamlviz-ocaml-dev$(OCAML_STDLIB_DIR)/ocamlviz
+OVBINDIR=$(CURDIR)/debian/ocamlviz/usr/bin
+OVVER=$(shell grep ^VERSION Makefile.in | sed "s/VERSION=//")
+
+export OCAMLINIT_SED = -e 's/@OVVER@/$(OVVER)/g'
+
+override_dh_auto_test:
+
+override_dh_auto_configure:
+	autoreconf
+	./configure --prefix=$(CURDIR)/debian/tmp/usr
+
+override_dh_auto_clean:
+	[ ! -f Makefile ] || $(MAKE) clean
+
+override_dh_auto_build:
+	$(MAKE)
+ifneq (,$(findstring libocamlviz-ocaml-doc,$(shell dh_listpackages)))
+	$(MAKE) doc/manual.pdf
+	cd doc && pdflatex manual.tex
+	cd doc && pdflatex manual.tex
+endif
+
+override_dh_auto_install:
+	mkdir -p $(OVBINDIR)
+	mkdir -p $(OVLIBDIR)/camlp4
+	$(MAKE) OCAMLLIB=$(OVLIBDIR) BINDIR=$(OVBINDIR) install
+	cp debian/META $(OVLIBDIR)
+	for file in monitor_sig protocol ocamlviz_threads; do \
+		cp src/$${file}.cmi src/$${file}.mli $(OVLIBDIR)/; \
+	done
+	cp camlp4/pa_ocamlviz.ml $(OVLIBDIR)/camlp4
+
+override_dh_compress:
+	dh_compress -X.pdf
+
+override_dh_ocaml:
+	dh_ocaml --nodefined-map libocamlviz-ocaml-dev:Mutex,Condition,ThreadUnix,Thread,Event
+
+%:
+	dh --with ocaml $@
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..4341426
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+https://forge.ocamlcore.org/frs/?group_id=104 \
+  https://forge.ocamlcore.org/frs/download\.php/258/ocamlviz-(.*)\.tar\.gz

-- 
ocamlviz packaging



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