--- fieldslib-0.1.0.orig/debian/install.in +++ fieldslib-0.1.0/debian/install.in @@ -0,0 +1 @@ +lib/*.mli @OCamlStdlibDir@/fieldslib/ --- fieldslib-0.1.0.orig/debian/control +++ fieldslib-0.1.0/debian/control @@ -0,0 +1,39 @@ +Source: fieldslib +Section: ocaml +Priority: extra +Maintainer: Debian OCaml Maintainers +Uploaders: Stefano Zacchiroli , +Build-Depends: + cdbs, + debhelper (>= 7), + quilt, + ocaml-nox (>= 3.11.1), + ocaml-findlib, + camlp4, + camlp4-extra, + libtype-conv-camlp4-dev, + dh-ocaml (>= 0.9) +Standards-Version: 3.8.3 +Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/fieldslib.git +Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/fieldslib.git +Homepage: http://ocaml.janestreet.com/?q=node/13 + +Package: libfields-camlp4-dev +Architecture: any +Depends: + ocaml-findlib, + camlp4, + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Provides: ${ocaml:Provides} +Description: OCaml syntax extension that enables folding over record fields + fieldslib is an OCaml syntax extension that can be used to define + first class values representing record fields. On top of those + values additional routines can then be automatically defined to: + . + - get and set record fields + - iterate and fold over fields + - create new record values + . + fieldslib is built on top of CamlP4. --- fieldslib-0.1.0.orig/debian/docs +++ fieldslib-0.1.0/debian/docs @@ -0,0 +1 @@ +README --- fieldslib-0.1.0.orig/debian/gbp.conf +++ fieldslib-0.1.0/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True --- fieldslib-0.1.0.orig/debian/compat +++ fieldslib-0.1.0/debian/compat @@ -0,0 +1 @@ +7 --- fieldslib-0.1.0.orig/debian/rules +++ fieldslib-0.1.0/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/ocaml.mk + +LIB_NAME = fields +PKG_NAME = lib$(LIB_NAME)-camlp4-dev +DESTDIR = $(CURDIR)/debian/$(PKG_NAME)$(OCAML_STDLIB_DIR) +OCAMLFIND_INSTFLAGS=-destdir $(DESTDIR) + +ifeq ($(OCAML_HAVE_OCAMLOPT),yes) +DEB_MAKE_BUILD_TARGET = all +DEB_MAKE_INSTALL_TARGET = install OCAMLFIND_INSTFLAGS="$(OCAMLFIND_INSTFLAGS)" +else +DEB_MAKE_BUILD_TARGET = byte +DEB_MAKE_INSTALL_TARGET = installbyte OCAMLFIND_INSTFLAGS="$(OCAMLFIND_INSTFLAGS)" +endif + +OCAML_DHOCAML_FLAGS := --runtime-map=$(PKG_NAME) + +build/$(PKG_NAME):: + mkdir -p $(DESTDIR) + --- fieldslib-0.1.0.orig/debian/examples +++ fieldslib-0.1.0/debian/examples @@ -0,0 +1,2 @@ +sample/*.ml +sample/*Makefile --- fieldslib-0.1.0.orig/debian/copyright +++ fieldslib-0.1.0/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Stefano Zacchiroli on +Mon, 09 Nov 2009 10:34:15 +0100. + +It was downloaded from + + +Files: * +Copyright: © 2008-2009 Jane Street Holding, LLC +License: LGPL-2.1 | other + As a special exception to the GNU Lesser 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 Lesser General Public License. + By "a publicly distributed version of the Library", we mean either the + unmodified Library as distributed by the authors, or a modified version + of the Library that is distributed under the conditions defined in clause + 3 of the GNU Lesser General Public License. This exception does not + however invalidate any other reasons why the executable file might be + covered by the GNU Lesser General Public License. + +The Library is distributed under the terms of the GNU Lesser General Public +License version 2.1, with the special exception to it reported above. + +The full text of the GNU Lessere General Public License version 2.1 can be +found in `/usr/share/common-licenses/LGPL-2.1'. + + +Files: debian/* +Copyright: © 2009 Stefano Zacchiroli +License: LGPL-2.1 | other + +The Debian packaging is copyright Stefano Zacchiroli, and licensed +under the same license of the software itself. + --- fieldslib-0.1.0.orig/debian/libfields-camlp4-dev.ocamldoc +++ fieldslib-0.1.0/debian/libfields-camlp4-dev.ocamldoc @@ -0,0 +1 @@ + -package camlp4 --- fieldslib-0.1.0.orig/debian/watch +++ fieldslib-0.1.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://ocaml.janestreet.com/?q=node/13 .*/fieldslib-(.*)\.tgz --- fieldslib-0.1.0.orig/debian/changelog +++ fieldslib-0.1.0/debian/changelog @@ -0,0 +1,20 @@ +fieldslib (0.1.0-2build1) lucid; urgency=low + + * No-change rebuild for OCaml 3.11.2 transition (LP: #527627). + + -- Ilya Barygin Thu, 25 Feb 2010 20:53:45 +0300 + +fieldslib (0.1.0-2) unstable; urgency=low + + * Use quilt for patch management + * Avoid building native code objects on non-native architectures: new + patch 0001-support-for-bytecode-only-build (Closes: #559720) + + -- Stefano Zacchiroli Fri, 11 Dec 2009 11:12:14 +0100 + +fieldslib (0.1.0-1) unstable; urgency=low + + * Initial release (Closes: #555197) + + -- Stefano Zacchiroli Mon, 09 Nov 2009 10:34:15 +0100 + --- fieldslib-0.1.0.orig/debian/patches/series +++ fieldslib-0.1.0/debian/patches/series @@ -0,0 +1 @@ +0001-support-for-bytecode-only-build.patch --- fieldslib-0.1.0.orig/debian/patches/0001-support-for-bytecode-only-build.patch +++ fieldslib-0.1.0/debian/patches/0001-support-for-bytecode-only-build.patch @@ -0,0 +1,74 @@ +From: Stefano Zacchiroli +Date: Fri, 11 Dec 2009 10:45:33 +0100 +Subject: [PATCH] support for bytecode-only build + +--- + Makefile | 9 +++++++++ + OCamlMakefile | 2 +- + lib/Makefile | 8 +++++++- + 3 files changed, 17 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index e5bd9d9..dec8f1c 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,10 +3,19 @@ all: + @cd lib && $(MAKE) + @cd sample && $(MAKE) + ++.PHONY: byte ++byte: ++ @cd lib && $(MAKE) byte ++ @cd sample && $(MAKE) ++ + .PHONY: install + install: + @cd lib && $(MAKE) $@ + ++.PHONY: installbyte ++installbyte: ++ @cd lib && $(MAKE) $@ ++ + .PHONY: uninstall + uninstall: + @cd lib && $(MAKE) $@ +diff --git a/OCamlMakefile b/OCamlMakefile +index e9deb24..b7042bf 100644 +--- a/OCamlMakefile ++++ b/OCamlMakefile +@@ -1216,7 +1216,7 @@ libinstall: all + $(QUIET)printf "\nInstallation successful.\n" + + .PHONY: libinstall-byte-code +-libinstall-byte-code: all ++libinstall-byte-code: + $(QUIET)printf "\nInstalling byte-code library with ocamlfind\n" + $(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META \ + $(filter-out $(RESULT).$(EXT_LIB) $(RESULT).cmxa, $(LIBINSTALL_FILES)) +diff --git a/lib/Makefile b/lib/Makefile +index 5fd5087..af8b13e 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -14,14 +14,20 @@ all: \ + fieldslib.cma fieldslib.cmxa \ + pa_fields_conv.cmi pa_fields_conv.cmo + ++byte: \ ++ pack-byte-code \ ++ fieldslib.cma \ ++ pa_fields_conv.cmi pa_fields_conv.cmo ++ + #toplevel-library: byte-code-library \ + # $(OCAMLC) -a -o sexplib_top.cma sexplib.cma install_printers.cmo + + LIBINSTALL_FILES = \ +- fieldslib.cmi fieldslib.cma fieldslib.cmxa $(wildcard fieldslib.a) \ ++ fieldslib.cmi fieldslib.cma $(wildcard fieldslib.cmxa) $(wildcard fieldslib.a) \ + $(wildcard fieldslib.lib) pa_fields_conv.cmi pa_fields_conv.cmo + + install: libinstall ++installbyte: libinstall-byte-code + uninstall: libuninstall + + clean:: clean-doc +--