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

Sylvain Le Gall gildor at debian.org
Sat Dec 4 23:43:11 UTC 2010


The following commit has been merged in the master branch:
commit 131dbb6c0e7dc6e9e0118959f27005f369f74343
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Sun Dec 5 00:42:39 2010 +0100

    Initial packaging

diff --git a/Makefile b/Makefile
index dd1f3fd..5e97a2b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ PACKS = easy-format,biniou
 
 .PHONY: default all opt install doc
 default: META all opt
-all: yojson.cmo
+all: yojson.cmo 
 opt: yojson.cmx ydump
 
 ifndef PREFIX
@@ -60,6 +60,10 @@ ydump: yojson.cmx ydump.ml
 	ocamlfind ocamlopt -o ydump -package $(PACKS) -linkpkg \
 		yojson.cmx ydump.ml
 
+ydump.byte: yojson.cmo ydump.ml
+	ocamlfind ocamlc -o ydump -package $(PACKS) -linkpkg \
+		yojson.cmo ydump.ml
+
 doc: doc/index.html
 doc/index.html: yojson.mli
 	mkdir -p doc
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7914b7c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+yojson (0.8.1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #605681)
+
+ -- Sylvain Le Gall <gildor at debian.org>  Sun, 05 Dec 2010 00:41:55 +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..485e9e0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: yojson
+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~),
+  libeasy-format-ocaml-dev,
+  cppo,
+  libbiniou-ocaml-dev
+Standards-Version: 3.9.1
+Homepage: http://martin.jambon.free.fr/yojson.html
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/yojson.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/yojson.git
+
+Package: libyojson-ocaml-dev
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: JSON library for OCaml
+ Yojson is an optimized parsing and printing library for the JSON format.
+ It addresses a few shortcomings of json-wheel including 3x speed
+ improvement, polymorphic variants and optional syntax for tuples and
+ variants.
+ .
+ It is a replacement for json-wheel (libjson-wheel-ocaml-dev).
+
+Package: libyojson-ocaml
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: JSON library for OCaml
+ Yojson is an optimized parsing and printing library for the JSON format.
+ It addresses a few shortcomings of json-wheel including 3x speed
+ improvement, polymorphic variants and optional syntax for tuples and
+ variants.
+ .
+ It is a replacement for json-wheel (libjson-wheel-ocaml-dev).
+ .
+ This package contains the shared runtime libraries.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ac77c7a
--- /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: yojson
+Maintainer: Sylvain Le Gall <gildor at debian.org>
+
+Files: *
+Copyright: Copyright (c) 2010 Martin Jambon
+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/libyojson-ocaml-dev.docs b/debian/libyojson-ocaml-dev.docs
new file mode 100644
index 0000000..600e5dd
--- /dev/null
+++ b/debian/libyojson-ocaml-dev.docs
@@ -0,0 +1,2 @@
+README
+doc 
diff --git a/debian/libyojson-ocaml-dev.install.in b/debian/libyojson-ocaml-dev.install.in
new file mode 100644
index 0000000..3c5dce3
--- /dev/null
+++ b/debian/libyojson-ocaml-dev.install.in
@@ -0,0 +1,5 @@
+ at OCamlStdlibDir@/yojson/*.cmi
+ at OCamlStdlibDir@/yojson/*.mli
+OPT: @OCamlStdlibDir@/yojson/*.o
+OPT: @OCamlStdlibDir@/yojson/*.cmx
+/usr/bin/ydump
diff --git a/debian/libyojson-ocaml-dev.manpages b/debian/libyojson-ocaml-dev.manpages
new file mode 100644
index 0000000..2d3cb0b
--- /dev/null
+++ b/debian/libyojson-ocaml-dev.manpages
@@ -0,0 +1 @@
+debian/ydump.1
diff --git a/debian/libyojson-ocaml-dev.ocamldoc b/debian/libyojson-ocaml-dev.ocamldoc
new file mode 100644
index 0000000..40038c8
--- /dev/null
+++ b/debian/libyojson-ocaml-dev.ocamldoc
@@ -0,0 +1,2 @@
+-d doc
+--doc-base-generate
diff --git a/debian/libyojson-ocaml.install.in b/debian/libyojson-ocaml.install.in
new file mode 100644
index 0000000..6eb36e3
--- /dev/null
+++ b/debian/libyojson-ocaml.install.in
@@ -0,0 +1,2 @@
+ at OCamlStdlibDir@/yojson/META
+ at OCamlStdlibDir@/yojson/*.cmo
diff --git a/debian/patches/debian-changes-0.8.1-1 b/debian/patches/debian-changes-0.8.1-1
new file mode 100644
index 0000000..ba66fed
--- /dev/null
+++ b/debian/patches/debian-changes-0.8.1-1
@@ -0,0 +1,48 @@
+Description: Upstream changes introduced in version 0.8.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:
+ .
+ yojson (0.8.1-1) unstable; urgency=low
+ .
+   * Initial release. (Closes: #605681)
+ .
+ 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/605681
+
+---
+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>
+
+--- yojson-0.8.1.orig/Makefile
++++ yojson-0.8.1/Makefile
+@@ -7,7 +7,7 @@ PACKS = easy-format,biniou
+ 
+ .PHONY: default all opt install doc
+ default: META all opt
+-all: yojson.cmo
++all: yojson.cmo 
+ opt: yojson.cmx ydump
+ 
+ ifndef PREFIX
+@@ -60,6 +60,10 @@ ydump: yojson.cmx ydump.ml
+ 	ocamlfind ocamlopt -o ydump -package $(PACKS) -linkpkg \
+ 		yojson.cmx ydump.ml
+ 
++ydump.byte: yojson.cmo ydump.ml
++	ocamlfind ocamlc -o ydump -package $(PACKS) -linkpkg \
++		yojson.cmo ydump.ml
++
+ doc: doc/index.html
+ doc/index.html: yojson.mli
+ 	mkdir -p doc
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1d39e5a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian-changes-0.8.1-1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a275cd2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,43 @@
+#!/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 META ydump.byte
+endif 
+	$(MAKE) doc
+
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+	mkdir -p '$(OCAMLFIND_DESTDIR)'
+	mkdir -p '$(DESTDIR)/usr/bin'
+	make install 'BINDIR=$(DESTDIR)/usr/bin'
+
+.PHONY: override_dh_install
+override_dh_install:
+	dh_install --fail-missing
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+	$(MAKE) clean
+
+debian/ydump.1: debian/ydump.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..6537e2f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://martin.jambon.free.fr/yojson.html yojson-([\d\.]*)\.tar\.gz
diff --git a/debian/ydump.1 b/debian/ydump.1
new file mode 100644
index 0000000..d615cd6
--- /dev/null
+++ b/debian/ydump.1
@@ -0,0 +1,47 @@
+.TH YDUMP 1 "December 5, 2010" "ydump User Manual"
+.SH NAME
+.PP
+ydump - JSON pretty printer.
+.SH SYNOPSIS
+.PP
+ydump [options] file
+.SH DESCRIPTION
+.PP
+JSON pretty printer using yojson and easy-format.
+.SH OPTIONS
+.TP
+.B -o 
+Output file
+.RS
+.RE
+.TP
+.B -std
+Convert tuples and variants into standard JSON, refuse to print NaN
+and infinities, require the root node to be either an object or an
+array.
+.RS
+.RE
+.TP
+.B -c
+Compact output (default: pretty-printed)
+.RS
+.RE
+.TP
+.B -s
+Streaming mode: read and write a sequence of JSON values instead of
+just one.
+.RS
+.RE
+.TP
+.B -ob
+Experimental
+.RS
+.RE
+.TP
+.B -help|--help
+Display list of options
+.RS
+.RE
+.SH AUTHORS
+Sylvain Le Gall.
+
diff --git a/debian/ydump.mkd b/debian/ydump.mkd
new file mode 100644
index 0000000..fa3a454
--- /dev/null
+++ b/debian/ydump.mkd
@@ -0,0 +1,38 @@
+% YDUMP(1) ydump User Manual
+% Sylvain Le Gall 
+% December 5, 2010
+
+# NAME
+
+ydump - JSON pretty printer.
+
+# SYNOPSIS
+
+ydump [options] file
+
+# DESCRIPTION
+
+JSON pretty printer using yojson and easy-format.
+
+# OPTIONS
+
+-o <file>
+:   Output file
+
+-std 
+:   Convert tuples and variants into standard JSON,
+    refuse to print NaN and infinities,
+    require the root node to be either an object or an array.
+
+-c 
+:   Compact output (default: pretty-printed)
+
+-s 
+:   Streaming mode: read and write a sequence of JSON values instead of
+    just one.
+
+-ob 
+:   Experimental
+
+-help|\--help
+:   Display list of options

-- 
yojson packaging



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