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

Sylvain Le Gall gildor at debian.org
Sun Dec 5 00:03:34 UTC 2010


The following commit has been merged in the master branch:
commit ad6895f79e48b2942c00f92d1a17af3d27375ebb
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Sun Dec 5 01:01:50 2010 +0100

    Initial packaging

diff --git a/Makefile b/Makefile
index efa3d7e..71b9493 100644
--- a/Makefile
+++ b/Makefile
@@ -212,8 +212,11 @@ clean:
 		test.bin test-2.bin test.json test-2.json \
 		test.ml test.mli testj.ml testj.mli \
 		test2.ml test2.mli test2j.ml test2j.mli \
-		ag_doc_lexer.ml
-	rm -rf odoc testdoc
+		ag_doc_lexer.ml ag_version.ml META
+
+.PHONY: distclean
+distclean: clean
+	-$(RM) -r odoc testdoc
 
 
 .PHONY: release
diff --git a/debian/atdgen.1 b/debian/atdgen.1
new file mode 100644
index 0000000..dfb8dd8
--- /dev/null
+++ b/debian/atdgen.1
@@ -0,0 +1,67 @@
+.TH ATDGEN 1 "December 5, 2010" "atdgen User Manual"
+.SH NAME
+.PP
+atdgen - generate OCaml serializers and deserializers.
+.SH SYNOPSIS
+.PP
+atdge [options] file.atd
+.SH DESCRIPTION
+.PP
+Generate OCaml serializers and deserializers.
+Default serialization format is biniou.
+.SH OPTIONS
+.TP
+.B -open Module1,Module2,\&...
+List of modules to open (comma-separated or space-separated)
+.RS
+.RE
+.TP
+.B -ntd
+Do not dump OCaml type definitions
+.RS
+.RE
+.TP
+.B -nfd
+Do not dump OCaml function definitions
+.RS
+.RE
+.TP
+.B -rec
+Keep OCaml type definitions mutually recursive
+.RS
+.RE
+.TP
+.B -o PREFIX
+Use this prefix for the generated files, e.g.\ `foo/bar' for
+foo/bar.ml and foo/bar.mli
+.RS
+.RE
+.TP
+.B -biniou
+Write serializers and deserializers for Biniou (default).
+.RS
+.RE
+.TP
+.B -json
+Write serializers and deserializers for JSON.
+.RS
+.RE
+.TP
+.B -std-json
+Convert tuples and variants into standard JSON and refuse to print
+NaN and infinities (implying -json).
+.RS
+.RE
+.TP
+.B -version
+Print the version identifier of atdgen and exit.
+.RS
+.RE
+.TP
+.B -help|--help
+Display list of options
+.RS
+.RE
+.SH AUTHORS
+Sylvain Le Gall.
+
diff --git a/debian/atdgen.mkd b/debian/atdgen.mkd
new file mode 100644
index 0000000..55e159e
--- /dev/null
+++ b/debian/atdgen.mkd
@@ -0,0 +1,51 @@
+% ATDGEN(1) atdgen User Manual
+% Sylvain Le Gall 
+% December 5, 2010
+
+# NAME
+
+atdgen - generate OCaml serializers and deserializers.
+
+# SYNOPSIS
+
+atdge [options] file.atd
+
+# DESCRIPTION
+
+Generate OCaml serializers and deserializers. Default serialization format is
+biniou.
+
+# OPTIONS
+
+-open Module1,Module2,...
+:   List of modules to open (comma-separated or space-separated)
+
+-ntd 
+:   Do not dump OCaml type definitions
+
+-nfd 
+:   Do not dump OCaml function definitions
+
+-rec 
+:   Keep OCaml type definitions mutually recursive
+
+-o PREFIX
+:   Use this prefix for the generated files, e.g. 'foo/bar' for
+    foo/bar.ml and foo/bar.mli
+
+-biniou 
+:   Write serializers and deserializers for Biniou (default).
+
+-json 
+:   Write serializers and deserializers for JSON.
+
+-std-json 
+:   Convert tuples and variants into standard JSON and
+    refuse to print NaN and infinities (implying -json).
+
+-version 
+:   Print the version identifier of atdgen and exit.
+
+-help|\--help
+:   Display list of options
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7d34ffb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+atdgen (1.0.1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #605671)
+
+ -- Sylvain Le Gall <gildor at debian.org>  Sun, 05 Dec 2010 00:57:42 +0100
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..d58fb2c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: atdgen
+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~),
+  menhir,
+  libeasy-format-ocaml-dev,
+  cppo,
+  libbiniou-ocaml-dev,
+  libyojson-ocaml-dev,
+  libatd-ocaml-dev
+Standards-Version: 3.9.1
+Homepage: http://oss.wink.com/atdgen/
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/atdgen.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/atdgen.git
+
+Package: libatdgen-ocaml-dev
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: code generator for biniou and JSON serialization in OCaml
+ Atdgen is a command-line program that takes as input type definitions in
+ the ATD syntax and produces OCaml code suitable for data serialization
+ and deserialization. Two data formats are currently supported, these are
+ biniou and JSON.
+
+Package: libatdgen-ocaml
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: code generator for biniou and JSON serialization in OCaml
+ Atdgen is a command-line program that takes as input type definitions in
+ the ATD syntax and produces OCaml code suitable for data serialization
+ and deserialization. Two data formats are currently supported, these are
+ biniou and JSON.
+ .
+ This package contains the shared runtime libraries.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..bf9a3f7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: atdgen
+Maintainer: Sylvain Le Gall <gildor at debian.org>
+
+Files: *
+Copyright: Copyright (c) 2010 MyLife
+License: BSD3
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. The name of the author may not be used to endorse or promote products
+    derived from this software without specific prior written permission.
+ 
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+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/libatdgen-ocaml-dev.doc-base.manual b/debian/libatdgen-ocaml-dev.doc-base.manual
new file mode 100644
index 0000000..32c8fb2
--- /dev/null
+++ b/debian/libatdgen-ocaml-dev.doc-base.manual
@@ -0,0 +1,8 @@
+Document: libatdgen-ocaml-dev-manual
+Title: Atdgen reference manual
+Author: Martin Jambon
+Section: Programming/OCaml
+
+Format: HTML
+Index: /usr/share/doc/libatdgen-ocaml-dev/atdgen-manual.html
+Files: /usr/share/doc/libatdgen-ocaml-dev/atdgen-manual.html
diff --git a/debian/libatdgen-ocaml-dev.docs b/debian/libatdgen-ocaml-dev.docs
new file mode 100644
index 0000000..e503338
--- /dev/null
+++ b/debian/libatdgen-ocaml-dev.docs
@@ -0,0 +1,3 @@
+README
+manual/atdgen-manual.html
+odoc
diff --git a/debian/libatdgen-ocaml-dev.examples b/debian/libatdgen-ocaml-dev.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/libatdgen-ocaml-dev.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/libatdgen-ocaml-dev.install.in b/debian/libatdgen-ocaml-dev.install.in
new file mode 100644
index 0000000..25840b8
--- /dev/null
+++ b/debian/libatdgen-ocaml-dev.install.in
@@ -0,0 +1,8 @@
+ at OCamlStdlibDir@/atdgen/*.cmo
+ at OCamlStdlibDir@/atdgen/*.cmi
+ at OCamlStdlibDir@/atdgen/*.mli
+OPT: @OCamlStdlibDir@/atdgen/*.o
+OPT: @OCamlStdlibDir@/atdgen/*.cmxa
+OPT: @OCamlStdlibDir@/atdgen/*.a
+OPT: @OCamlStdlibDir@/atdgen/*.cmx
+/usr/bin/atdgen
diff --git a/debian/libatdgen-ocaml-dev.manpages b/debian/libatdgen-ocaml-dev.manpages
new file mode 100644
index 0000000..d8aa2a9
--- /dev/null
+++ b/debian/libatdgen-ocaml-dev.manpages
@@ -0,0 +1 @@
+debian/atdgen.1
diff --git a/debian/libatdgen-ocaml-dev.ocamldoc b/debian/libatdgen-ocaml-dev.ocamldoc
new file mode 100644
index 0000000..783bd53
--- /dev/null
+++ b/debian/libatdgen-ocaml-dev.ocamldoc
@@ -0,0 +1,2 @@
+-d odoc
+--doc-base-generate
diff --git a/debian/libatdgen-ocaml.install.in b/debian/libatdgen-ocaml.install.in
new file mode 100644
index 0000000..50db1c0
--- /dev/null
+++ b/debian/libatdgen-ocaml.install.in
@@ -0,0 +1,2 @@
+ at OCamlStdlibDir@/atdgen/META
+ at OCamlStdlibDir@/atdgen/*.cma
diff --git a/debian/patches/debian-changes-1.0.1-1 b/debian/patches/debian-changes-1.0.1-1
new file mode 100644
index 0000000..8af59af
--- /dev/null
+++ b/debian/patches/debian-changes-1.0.1-1
@@ -0,0 +1,42 @@
+Description: Upstream changes introduced in version 1.0.1-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:
+ .
+ atdgen (1.0.1-1) unstable; urgency=low
+ .
+   * Initial release. (Closes: #605671)
+ .
+ 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/605671
+
+---
+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>
+
+--- atdgen-1.0.1.orig/Makefile
++++ atdgen-1.0.1/Makefile
+@@ -212,8 +212,11 @@ clean:
+ 		test.bin test-2.bin test.json test-2.json \
+ 		test.ml test.mli testj.ml testj.mli \
+ 		test2.ml test2.mli test2j.ml test2j.mli \
+-		ag_doc_lexer.ml
+-	rm -rf odoc testdoc
++		ag_doc_lexer.ml ag_version.ml META
++
++.PHONY: distclean
++distclean: clean
++	-$(RM) -r odoc testdoc
+ 
+ 
+ .PHONY: release
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f537d08
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian-changes-1.0.1-1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3690b15
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,51 @@
+#!/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_build
+override_dh_auto_build:
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+	$(MAKE)
+else
+	$(MAKE) all
+endif 
+
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+	mkdir -p '$(OCAMLFIND_DESTDIR)'
+	mkdir -p '$(DESTDIR)/usr/bin'
+	make install 'BINDIR=$(DESTDIR)/usr/bin'
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+	$(RM) '$(DESTDIR)/usr/bin/atdgen.run'
+else
+	mv '$(DESTDIR)/usr/bin/atdgen.run' '$(DESTDIR)/usr/bin/atdgen'
+endif 
+
+.PHONY: override_dh_install
+override_dh_install:
+	dh_install --fail-missing
+
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+	true
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+	$(MAKE) clean
+
+debian/atdgen.1: debian/atdgen.mkd
+	pandoc -s -w man $^ -o $@
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..74b45a5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://oss.wink.com/atdgen/ atdgen-([\d\.]*)\.tar\.gz

-- 
atdgen packaging



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