--- ocaml-text-0.2.orig/debian/control +++ ocaml-text-0.2/debian/control @@ -0,0 +1,53 @@ +Source: ocaml-text +Priority: optional +Maintainer: Debian OCaml Maintainers +Uploaders: Stéphane Glondu +Build-Depends: + debhelper (>= 7.2.11~), + quilt (>= 0.46-7~), + dh-ocaml (>= 0.9), + ocaml-findlib, + ocaml-nox (>= 3.11.1-3~) +Standards-Version: 3.8.3 +Section: ocaml +Homepage: http://ocaml-text.forge.ocamlcore.org/ +Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml-text.git +Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml-text.git + +Package: libtext-ocaml-dev +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Provides: ${ocaml:Provides} +Recommends: ocaml-findlib +Description: library for dealing with sequences of Unicode characters + OCaml-Text is an OCaml library for dealing with "text", i.e. sequences + of Unicode characters, in a convenient way. It supports: + * encoding/decoding of text; + * functions for manipulation of UTF-8 encoded strings, such as + validation and most of the functions from "List" and "String" + modules of the OCaml standard library, adapted for UTF-8 strings; + * locale-specific text functions (compare, upper, is_alpha, ...). + . + It is composed of two modules: + * "Encoding" for encoding/decoding text + * "Text" for text manipulation + . + This package contains all the development stuff you need to use the + OCaml-Text library in your programs. + +Package: libtext-ocaml +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Provides: ${ocaml:Provides} +Description: runtime libraries of OCaml-Text + OCaml-Text is an OCaml library for dealing with "text", i.e. sequences + of Unicode characters, in a convenient way. + . + This package contains runtime libraries (shared stub library, + bytecode plugin and native code plugin if available). --- ocaml-text-0.2.orig/debian/gbp.conf +++ ocaml-text-0.2/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True --- ocaml-text-0.2.orig/debian/compat +++ ocaml-text-0.2/debian/compat @@ -0,0 +1 @@ +7 --- ocaml-text-0.2.orig/debian/libtext-ocaml.dirs.in +++ ocaml-text-0.2/debian/libtext-ocaml.dirs.in @@ -0,0 +1,2 @@ +@OCamlDllDir@ +@OCamlStdlibDir@/text --- ocaml-text-0.2.orig/debian/rules +++ ocaml-text-0.2/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f +# -*- makefile -*- +include /usr/share/ocaml/ocamlvars.mk + +export OCAMLFIND_DESTDIR=$(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR) + +%: + dh --with quilt,ocaml $@ + +.PHONY: override_dh_installchangelogs +override_dh_installchangelogs: + dh_installchangelogs CHANGES.darcs + +.PHONY: override_dh_auto_install +override_dh_auto_install: + install -d $(OCAMLFIND_DESTDIR) + install -d $(CURDIR)/debian/tmp/$(OCAML_DLL_DIR) + make install + +.PHONY: override_dh_auto_build +override_dh_auto_build: + make \ + OC="ocamlbuild -classic-display -byte-plugin" \ + $(if $(OCAML_OPT_ARCH),all,byte) + make doc +ifeq ($(OCAML_HAVE_OCAMLOPT),yes) + cd _build && ocamlopt -shared -I src -o text.cmxs text.cmxa +endif --- ocaml-text-0.2.orig/debian/libtext-ocaml-dev.install.in +++ ocaml-text-0.2/debian/libtext-ocaml-dev.install.in @@ -0,0 +1,7 @@ +@OCamlStdlibDir@/text/*.mli +@OCamlStdlibDir@/text/*.cmi +@OCamlStdlibDir@/text/*.a +OPT: @OCamlStdlibDir@/text/*.cmx +OPT: @OCamlStdlibDir@/text/*.cmxa +_build/text.docdir/*.html /usr/share/doc/libtext-ocaml-dev/html +_build/text.docdir/*.css /usr/share/doc/libtext-ocaml-dev/html --- ocaml-text-0.2.orig/debian/copyright +++ ocaml-text-0.2/debian/copyright @@ -0,0 +1,40 @@ +Packaged-By: Stéphane Glondu +Packaged-Date: Sat, 09 May 2009 11:47:11 +0200 +Original-Source-Location: http://ocaml-text.forge.ocamlcore.org/ +Upstream-Author: Jérémie Dimino + +Files: * +Copyright: © 2008-2009 Jérémie Dimino +License: BSD-C3 + + All rights reserved. + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * 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. + * Neither the name of Jeremie Dimino nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS AND + CONTRIBUTORS 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: © 2009 Stéphane Glondu +License: BSD-C3 --- ocaml-text-0.2.orig/debian/libtext-ocaml-dev.doc-base +++ ocaml-text-0.2/debian/libtext-ocaml-dev.doc-base @@ -0,0 +1,9 @@ +Document: ocaml-text +Title: OCaml-Text API documentation +Author: Jérémie Dimino +Abstract: OCaml-Text ocamldoc-generated API documentation +Section: Programming/OCaml + +Format: HTML +Index: /usr/share/doc/libtext-ocaml-dev/html/index.html +Files: /usr/share/doc/libtext-ocaml-dev/html/* --- ocaml-text-0.2.orig/debian/libtext-ocaml.install.in +++ ocaml-text-0.2/debian/libtext-ocaml.install.in @@ -0,0 +1,4 @@ +@OCamlDllDir@ +@OCamlStdlibDir@/text/META +@OCamlStdlibDir@/text/*.cma +OPT: _build/*.cmxs @OCamlStdlibDir@/text --- ocaml-text-0.2.orig/debian/README.source +++ ocaml-text-0.2/debian/README.source @@ -0,0 +1,11 @@ +ocaml-text for Debian +--------------------- + +This source package uses quilt to apply and remove its patches. Please +refer to `/usr/share/doc/quilt/README.source' for information about +how to use quilt for source packages. + +The quilt series is generated from the Git repository. Have a look at +the `redo-patches' target of debian/rules for more details. + + -- Stephane Glondu Sat, 09 May 2009 11:47:11 +0200 --- ocaml-text-0.2.orig/debian/watch +++ ocaml-text-0.2/debian/watch @@ -0,0 +1,4 @@ +version=3 +http://forge.ocamlcore.org/frs/?group_id=100 /frs/download.php/211/text-(.*)\.tar\.gz +# Upstream darcs repository: +# http://darcs.ocamlcore.org/repos/ocaml-text/ocaml-text --- ocaml-text-0.2.orig/debian/libtext-ocaml-dev.dirs.in +++ ocaml-text-0.2/debian/libtext-ocaml-dev.dirs.in @@ -0,0 +1,2 @@ +@OCamlStdlibDir@/text +/usr/share/doc/libtext-ocaml-dev/html --- ocaml-text-0.2.orig/debian/changelog +++ ocaml-text-0.2/debian/changelog @@ -0,0 +1,27 @@ +ocaml-text (0.2-3build1) lucid; urgency=low + + * No-change rebuild for OCaml 3.11.2 transition (LP: #526073). + + -- Ilya Barygin Wed, 24 Feb 2010 23:03:36 +0300 + +ocaml-text (0.2-3) unstable; urgency=low + + * Switch packaging to dh-ocaml 0.9 + * debian/control: + - add myself to Uploaders, remove DMUA + - update Standards-Version to 3.8.3 (no changes) + + -- Stéphane Glondu Wed, 14 Oct 2009 00:05:45 +0200 + +ocaml-text (0.2-2) unstable; urgency=low + + * Add dependency to libtext-ocaml in libtext-ocaml-dev (Closes: #534112) + * Update Standards-Version to 3.8.2 + + -- Stephane Glondu Sun, 21 Jun 2009 21:27:46 +0200 + +ocaml-text (0.2-1) unstable; urgency=low + + * Initial release (Closes: #527906) + + -- Stephane Glondu Sat, 09 May 2009 11:47:11 +0200 --- ocaml-text-0.2.orig/debian/patches/series +++ ocaml-text-0.2/debian/patches/series @@ -0,0 +1 @@ +0001-Fix-upstream-Makefile-on-non-native-architectures.patch --- ocaml-text-0.2.orig/debian/patches/0001-Fix-upstream-Makefile-on-non-native-architectures.patch +++ ocaml-text-0.2/debian/patches/0001-Fix-upstream-Makefile-on-non-native-architectures.patch @@ -0,0 +1,43 @@ +From ff6b9e095a1b8cecaab868052932a68677b29fb7 Mon Sep 17 00:00:00 2001 +From: Stephane Glondu +Date: Sat, 9 May 2009 12:38:41 +0200 +Subject: [PATCH] Fix upstream Makefile on non-native architectures + +--- + Makefile | 10 +++++++--- + 1 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index 22992f3..1766c61 100644 +--- a/Makefile ++++ b/Makefile +@@ -14,6 +14,10 @@ NAME = text + all: + $(OC) META $(NAME).cma $(NAME).cmxa + ++.PHONY: byte ++byte: ++ $(OC) META $(NAME).cma ++ + .PHONY: doc + doc: + $(OC) $(NAME).docdir/index.html +@@ -27,12 +31,12 @@ install: + $(OF) install $(NAME) _build/META \ + _build/src/*.mli \ + _build/src/*.cmi \ +- _build/src/*.cmx \ ++ $(wildcard _build/src/*.cmx) \ + _build/src/*.a \ + _build/src/*.so \ + _build/$(NAME).cma \ +- _build/$(NAME).cmxa \ +- _build/$(NAME).a ++ $(wildcard _build/$(NAME).cmxa) \ ++ $(wildcard _build/$(NAME).a) + + .PHONY: uninstall + uninstall: +-- +1.6.2.4 +