From 117d45f1e0c64324512d8e76b931d4f237c3f42d Mon Sep 17 00:00:00 2001 From: Benjamin Jacobs Date: Tue, 18 Oct 2011 03:51:37 +0000 Subject: [PATCH] Initial packaging --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 43 ++++++++++++++++++++++ debian/copyright | 33 +++++++++++++++++ debian/gbp.conf | 4 ++ debian/libderiving-ocsigen-ocaml-dev.docs | 1 + debian/libderiving-ocsigen-ocaml-dev.install.in | 33 +++++++++++++++++ debian/libderiving-ocsigen-ocaml-dev.ocamldoc | 1 + debian/libderiving-ocsigen-ocaml.docs | 1 + debian/libderiving-ocsigen-ocaml.install.in | 6 +++ .../0001-fix-Makefile-usage-of-VERSION.patch | 22 +++++++++++ debian/patches/series | 1 + debian/rules | 32 ++++++++++++++++ debian/source/format | 1 + debian/watch | 2 + 15 files changed, 186 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/libderiving-ocsigen-ocaml-dev.docs create mode 100644 debian/libderiving-ocsigen-ocaml-dev.install.in create mode 100644 debian/libderiving-ocsigen-ocaml-dev.ocamldoc create mode 100644 debian/libderiving-ocsigen-ocaml.docs create mode 100644 debian/libderiving-ocsigen-ocaml.install.in create mode 100644 debian/patches/0001-fix-Makefile-usage-of-VERSION.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..82c6e53 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ocaml-deriving-ocsigen (0.2-1) unstable; urgency=low + + * Initial packaging, based on ocaml-deriving + + -- Benjamin Jacobs Sat, 8 Oct 2011 16:04:24 +0200 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..e796440 --- /dev/null +++ b/debian/control @@ -0,0 +1,43 @@ +Source: ocaml-deriving-ocsigen +Section: ocaml +Priority: optional +Maintainer: Debian OCaml Maintainers +Uploaders: + Sylvain Le Gall +Build-Depends: + ocaml-nox (>= 3.11.1-3~), + ocaml-findlib, + dh-ocaml (>= 0.9~), + debhelper (>= 7.0.50~), + libtype-conv-camlp4-dev +Standards-Version: 3.9.2 +Homepage: http://ocsigen.org/eliom/install +Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml-deriving-ocsigen.git +Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml-deriving-ocsigen.git + +Package: libderiving-ocsigen-ocaml-dev +Architecture: any +Depends: ${ocaml:Depends}, ${misc:Depends} +Provides: ${ocaml:Provides} +Recommends: ocaml-findlib +Description: deriving functions from type declarations in OCaml (devt files) + Camlp4 extension to OCaml for deriving functions from type declarations. + Includes derivers for pretty-printing, type-safe marshalling with + structure-sharing, dynamic typing, equality, and more. + . + This is the version maintened by the ocsigen project. + + +Package: libderiving-ocsigen-ocaml +Architecture: any +Depends: ${ocaml:Depends}, ${misc:Depends} +Provides: ${ocaml:Provides} +Recommends: ocaml-findlib +Description: deriving functions from type declarations in OCaml (runtime) + Camlp4 extension to OCaml for deriving functions from type declarations. + Includes derivers for pretty-printing, type-safe marshalling with + structure-sharing, dynamic typing, equality, and more. + . + This is the version maintened by the ocsigen project. + . + This package contains the shared runtime libraries. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b00edd9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: ocaml-deriving +Maintainer: Sylvain Le Gall +Source: http://ocsigen.org/downloads/ + +Files: * +Copyright: Copyright (c) 2007 Jeremy Yallop +License: MIT + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +Files: debian/* +Copyright: (C) 2010,2011 Sylvain Le Gall + (C) 2011 Benjamin Jacobs +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..e956aeb --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +upstream-branch = upstream +debian-branch = master +pristine-tar = False diff --git a/debian/libderiving-ocsigen-ocaml-dev.docs b/debian/libderiving-ocsigen-ocaml-dev.docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/libderiving-ocsigen-ocaml-dev.docs @@ -0,0 +1 @@ +README diff --git a/debian/libderiving-ocsigen-ocaml-dev.install.in b/debian/libderiving-ocsigen-ocaml-dev.install.in new file mode 100644 index 0000000..8c7f86c --- /dev/null +++ b/debian/libderiving-ocsigen-ocaml-dev.install.in @@ -0,0 +1,33 @@ +@OCamlStdlibDir@/deriving-ocsigen/deriving_Bounded.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Bounded.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_Dump.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Dump.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_dynmap.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_dynmap.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_Enum.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Enum.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_Eq.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Eq.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_Functor.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Functor.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_interned.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_interned.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_monad.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_monad.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_Pickle.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Pickle.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_Show.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Show.mli +@OCamlStdlibDir@/deriving-ocsigen/deriving_Typeable.cmi +@OCamlStdlibDir@/deriving-ocsigen/deriving_Typeable.mli +@OCamlStdlibDir@/deriving-ocsigen/pa_deriving_common.cmi +OPT: @OCamlStdlibDir@/deriving-ocsigen/deriving.a +OPT: @OCamlStdlibDir@/deriving-ocsigen/deriving.cmxa +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving.a +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving.cmx +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving.cmxa +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving_common.o +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving_common.cmx +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving_tc.a +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving_tc.cmx +OPT: @OCamlStdlibDir@/deriving-ocsigen/pa_deriving_tc.cmxa diff --git a/debian/libderiving-ocsigen-ocaml-dev.ocamldoc b/debian/libderiving-ocsigen-ocaml-dev.ocamldoc new file mode 100644 index 0000000..c01ade2 --- /dev/null +++ b/debian/libderiving-ocsigen-ocaml-dev.ocamldoc @@ -0,0 +1 @@ +# Nothing diff --git a/debian/libderiving-ocsigen-ocaml.docs b/debian/libderiving-ocsigen-ocaml.docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/libderiving-ocsigen-ocaml.docs @@ -0,0 +1 @@ +README diff --git a/debian/libderiving-ocsigen-ocaml.install.in b/debian/libderiving-ocsigen-ocaml.install.in new file mode 100644 index 0000000..992be29 --- /dev/null +++ b/debian/libderiving-ocsigen-ocaml.install.in @@ -0,0 +1,6 @@ +@OCamlStdlibDir@/deriving-ocsigen/META +@OCamlStdlibDir@/deriving-ocsigen/deriving.cma +@OCamlStdlibDir@/deriving-ocsigen/pa_deriving.cma +@OCamlStdlibDir@/deriving-ocsigen/pa_deriving.cmo +@OCamlStdlibDir@/deriving-ocsigen/pa_deriving_tc.cma +@OCamlStdlibDir@/deriving-ocsigen/pa_deriving_tc.cmo diff --git a/debian/patches/0001-fix-Makefile-usage-of-VERSION.patch b/debian/patches/0001-fix-Makefile-usage-of-VERSION.patch new file mode 100644 index 0000000..786e6be --- /dev/null +++ b/debian/patches/0001-fix-Makefile-usage-of-VERSION.patch @@ -0,0 +1,22 @@ +From: Benjamin Jacobs +Date: Sat, 8 Oct 2011 16:43:06 +0000 +Subject: [PATCH] fix Makefile usage of VERSION + +--- + syntax/Makefile | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/syntax/Makefile b/syntax/Makefile +index abcc746..c965f08 100644 +--- a/syntax/Makefile ++++ b/syntax/Makefile +@@ -90,7 +90,7 @@ deriving.opt: pa_deriving.cmxa + + ## + +-VERSION := $(shell head -n 1 VERSION) ++VERSION := $(shell head -n 1 ../VERSION) + id.ml: id.mlp ../Makefile.config ../VERSION + sed -e s/%%NAME%%/${PROJECTNAME}/ -e s/%%VERSION%%/${VERSION}/ $< > $@ + +-- diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ef626c7 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-fix-Makefile-usage-of-VERSION.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c0bd6f0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/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_install +override_dh_auto_install: + mkdir -p '$(OCAMLFIND_DESTDIR)' + dh_auto_install +# For each installed .cmi file, install the corresponding .mli file next to it + find $(DESTDIR) -name '*.cmi' -printf '%h %f\n' | \ + while read d f; do \ + find . -name $${f%.cmi}.mli -exec cp '{}' $$d ';' -quit; \ + done +# Install missing static libraries + cp -p ./syntax/pa_deriving_common.o \ + ./syntax/pa_deriving.a \ + ./syntax/pa_deriving_tc.a \ + $(OCAMLFIND_DESTDIR)/deriving-ocsigen 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..8a91003 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://ocsigen.org/download/ deriving-ocsigen-(.*)\.tar\.gz -- 2.11.4.GIT