debian/0000755000000000000000000000000012256116330007165 5ustar debian/changelog0000644000000000000000000000657512256116330011054 0ustar ocamlbricks (0.90+bzr367-1build1) trusty; urgency=medium * Rebuild for ocaml-4.01. -- Matthias Klose Mon, 23 Dec 2013 20:28:08 +0000 ocamlbricks (0.90+bzr367-1) unstable; urgency=low * New upstream snapshot. -- Lucas Nussbaum Fri, 05 Jul 2013 16:29:21 +0200 ocamlbricks (0.90+bzr365-1) unstable; urgency=low * New upstream snapshot from the trunk branch * Add myself to Uploaders * Update Uploaders to reflect the current state of the package. Thanks, Jonathan! * Update to Standards-Version 3.9.4 (no changes) * Use canonical Git URIs * Remove empty directories * Add DEP-3 headers for patches -- Nicolas Dandrimont Sun, 23 Jun 2013 15:30:45 +0200 ocamlbricks (0.90+bzr364.3-1) unstable; urgency=low * New upstream snapshot. Should fix the build failures on non-native ocaml architectures. * Add no-ocamlopt-arches.diff: work-around for partial upstream fix (see https://bugs.launchpad.net/ocamlbricks/+bug/1130098). -- Lucas Nussbaum Tue, 28 May 2013 16:38:50 +0200 ocamlbricks (0.90+bzr356-1) unstable; urgency=low [ Sylvain Le Gall ] * Remove Sylvain Le Gall from uploaders [ Lucas Nussbaum ] * New upstream snapshot from the trunk branch, after discussion with upstream author in https://bugs.launchpad.net/marionnet/+bug/1085055. This is a step towards packaging marionnet. * Rework most of the packaging. * Update Standards-Version. No changes needed. * New homepage: https://launchpad.net/ocamlbricks -- Lucas Nussbaum Mon, 18 Feb 2013 21:08:04 +0100 ocamlbricks (0.50.1-4) unstable; urgency=low [ Mehdi Dogguy ] * Add a .doc-base file for the documentation instead of calling by hand ocamldoc-api-ref-config (Closes: #549732). [ Sylvain Le Gall ] * Use dh_ocaml 0.9 features: OCaml:Provides and OCaml:Depends * Downgrade build-depends from ocaml to ocaml-nox * Upgrade Standards-Version to 3.8.3 (section ocaml) * Add debian/README.source * Use ocamlinit.mk (Closes: #521429) -- Sylvain Le Gall Wed, 07 Oct 2009 09:03:49 +0000 ocamlbricks (0.50.1-3) unstable; urgency=low [ Jonathan Roudiere ] * Change the maintainer of ocamlbricks to Debian OCaml Maintainers * Fix bug and compatibility with dash, change 'source' by '.' in CONFIGURATION/configuration_files.m and invoke bash explicitly in unixExtra.ml * miror changes in debian/{rules,control}, update version of Debian Policy * Solve META lacks dependencies (Closes: #521428) [ Sylvain Le Gall ] * Add debian/gbp.conf to force using pristine-tar * Change debian revision, to match latest uploaded version [ Stephane Glondu ] * Add dh-ocaml to Build-Depends, update call to ocamldoc-api-ref-config (Closes: #519632) * Update versions in Build-Depends for OCaml 3.11.0 transition -- Sylvain Le Gall Sun, 29 Mar 2009 20:13:43 +0200 ocamlbricks (0.50.1-1) unstable; urgency=low [ Jonathan Roudiere ] * Initial release (closes: Bug#477326) First package of OCamlbricks, including documentation OCamldoc in HTML format and the build system use to build OCamlbricks like an example. * Creation and adding *.mli (OCaml header files) in the package. [ Sylvain Le Gall ] * Final fix, review and upload -- Sylvain Le Gall Tue, 17 Jun 2008 01:04:30 +0200 debian/rules0000755000000000000000000000254012165552506010256 0ustar #!/usr/bin/make -f include /usr/share/ocaml/ocamlvars.mk %: dh $@ --with ocaml override_dh_auto_build: # workaround for https://bugs.launchpad.net/ocamlbricks/+bug/1173148 make meta.ml ; make meta.ml.released dh_auto_build override_dh_auto_clean: dh_auto_clean rm -f meta_ocamlbricks.ml override_dh_auto_install: dh_auto_install rm -r $(CURDIR)/debian/libocamlbricks-ocaml-dev/bin rm -r $(CURDIR)/debian/libocamlbricks-ocaml-dev/sbin override_dh_auto_test: # do nothing # see https://launchpad.net/ocamlbricks/trunk PACKAGE = ocamlbricks SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p') BZR_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/bzr//' ) TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz get-orig-source: rm -rf get-orig-source $(TARBALL) mkdir get-orig-source bzr branch -r $(BZR_REVISION) lp:$(PACKAGE)/trunk get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig make -C get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig meta.ml.released rm get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/meta.ml rm -rf get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/.bzr GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig rm -rf get-orig-source echo " "$(TARBALL)" created; move it to the right destination to build the package" .PHONY: get-orig-source debian/gbp.conf0000644000000000000000000000003612165552506010613 0ustar [DEFAULT] pristine-tar = True debian/control0000644000000000000000000000455212165552506010606 0ustar Source: ocamlbricks Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Uploaders: Lucas Nussbaum , Nicolas Dandrimont Build-Depends: debhelper (>= 8), ocaml-nox (>= 3.12.1), liblablgtk2-ocaml-dev (>= 2.12.0-2), bash (>= 3.1), dh-ocaml (>= 0.9.1), ocaml-findlib, bzr, camlp4-extra Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ocaml-maint/packages/ocamlbricks.git Vcs-Git: git://anonscm.debian.org/pkg-ocaml-maint/packages/ocamlbricks.git Homepage: https://launchpad.net/ocamlbricks Package: libocamlbricks-ocaml-dev Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends}, liblablgtk2-ocaml-dev (>= 2.12.0-2) Provides: ${ocaml:Provides} Replaces: ocamlbricks (<< 0.50.1) Suggests: ocaml-findlib Description: Miscellaneous utility functions in OCaml for Marionnet This OCaml library provides a set of needed and useful macros for developing. It is mainly used by the marionnet package. Modules and functionality are the following : . - Configuration_files: Allow to get information from configuration files - Environments: Environments are useful for maintaining the state, intendend as a set of bindings, of a user interaction with a GUI - FilenameExtra: Additional features for the standard module Filename - Fix: Poor man fix point operators - Hashm[m]ap: 2 Module implementing polymorphic unbounded (multi) maps - Hashset: Very simple module implementing a polymorphic unbounded sets - Identifier: Build and manage unique (fresh) identifiers - Ledgrid: Constants Some global constant definitions, for fine-tuning - ListExtra: Additional features for the standard module List - Memo: Module for building memoised functions - Oomarshal: Object-oriented marshalling support - PreludeExtra: "Additional features" for the standard module Pervasives - Shell: A collection of (mainly quick and easy) wrappers for the most famous Unix tools and generic unix commands or scripts - StrExtra: Additional features for the standard library Str - Sugar: Basic shortcuts and syntactic sugar - SysExtra: Additional features for the standard module Sys - UnixExtra: Additional features for the standard library Unix - Widget: Some generic tools for building GUIs - Wrapper: Handling shell scripts in OCaml debian/copyright0000644000000000000000000000353612165552506011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ocamlbricks Source: https://launchpad.net/ocamlbricks Files: * Copyright: 2007-2013 Luca Saiu 2007-2013 Jean-Vincent Loddo 2007-2013 Université Paris 13 License: GPL-2+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . Files: debian/* Copyright: 2008 Jonathan Roudière 2013 Lucas Nussbaum License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/source/0000755000000000000000000000000012165552506010475 5ustar debian/source/format0000644000000000000000000000001412165552506011703 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012165552506010624 5ustar debian/patches/0001-Fix-the-OCaml-C-header-paths.patch0000644000000000000000000000431012165552506017241 0ustar From: Lucas Nussbaum Date: Sat, 1 Dec 2012 18:41:14 +0100 Subject: Fix the OCaml C header paths This uses the Debian-specific paths for the caml C includes Forwarded: not-needed --- EXTRA/does-process-exist-c-wrapper.c | 4 ++-- EXTRA/waitpid-c-wrapper.c | 12 ++++++------ GETTEXT/gettext-c-wrapper.c | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/EXTRA/does-process-exist-c-wrapper.c b/EXTRA/does-process-exist-c-wrapper.c index e512376..8351c78 100644 --- a/EXTRA/does-process-exist-c-wrapper.c +++ b/EXTRA/does-process-exist-c-wrapper.c @@ -24,10 +24,10 @@ #include #include -#include +#include /* If I don't #include caml/alloc.h then this module compiles fine, but then crashes at runtime. Funny, isn't it? */ -#include +#include /* Return true iff the process identified by the given pid exists. The idea is just to call kill with 0 as a signal, which is easy in C but impossible in OCaml: */ diff --git a/EXTRA/waitpid-c-wrapper.c b/EXTRA/waitpid-c-wrapper.c index 7d08874..ee7a407 100644 --- a/EXTRA/waitpid-c-wrapper.c +++ b/EXTRA/waitpid-c-wrapper.c @@ -22,12 +22,12 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #define WAITPID_NAME "waitpid" diff --git a/GETTEXT/gettext-c-wrapper.c b/GETTEXT/gettext-c-wrapper.c index 0c3ea78..42d5bed 100644 --- a/GETTEXT/gettext-c-wrapper.c +++ b/GETTEXT/gettext-c-wrapper.c @@ -22,11 +22,11 @@ #include #include -#include +#include /* If I don't #include caml/alloc.h then this module compiles fine, but then crashes at runtime. Funny, isn't it? */ -#include -#include +#include +#include /* Some part of the gettext initialization should only be performed once: */ static bool was_gettext_initialized = false; debian/patches/series0000644000000000000000000000021312165552506012035 0ustar 0001-Fix-the-OCaml-C-header-paths.patch 0002-Use-the-Debian-prefix-for-building.patch 0003-Fix-the-build-on-non-native-architectures.patch debian/patches/0003-Fix-the-build-on-non-native-architectures.patch0000644000000000000000000000207612165552506022164 0ustar From: Lucas Nussbaum Date: Tue, 28 May 2013 16:36:40 +0200 Subject: Fix the build on non-native architectures This patch complements an incomplete upstream fix on architectures without ocamlopt Origin: vendor Bug: https://bugs.launchpad.net/ocamlbricks/+bug/1130098 Forwarded: https://bugs.launchpad.net/ocamlbricks/+bug/1130098 --- Makefile.d/ocamlmklib_wrapper.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.d/ocamlmklib_wrapper.sh b/Makefile.d/ocamlmklib_wrapper.sh index da72860..7a5d6ed 100755 --- a/Makefile.d/ocamlmklib_wrapper.sh +++ b/Makefile.d/ocamlmklib_wrapper.sh @@ -42,6 +42,12 @@ cd _build/ echo "Rebuilding library with ocamlmklib..." set -x ocamlmklib -custom -o ocamlbricks $OBJECTS $INCLUDES $CMO -ocamlmklib -custom -o ocamlbricks $OBJECTS $INCLUDES $CMX +if which ocamlopt &>/dev/null; then + ocamlmklib -custom -o ocamlbricks $OBJECTS $INCLUDES $CMX +fi set +x -ls -l ocamlbricks.cm{,x}a +if which ocamlopt &>/dev/null; then + ls -l ocamlbricks.cm{,x}a +else + ls -l ocamlbricks.cma +fi debian/patches/0002-Use-the-Debian-prefix-for-building.patch0000644000000000000000000000233512165552506020573 0ustar From: Lucas Nussbaum Date: Tue, 12 Feb 2013 19:46:50 +0100 Subject: Use the Debian prefix for building This configures the build to use debian/tmp as prefix for installation Forwarded: not-needed --- CONFIGME | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONFIGME b/CONFIGME index 24941d6..cadaf22 100644 --- a/CONFIGME +++ b/CONFIGME @@ -34,11 +34,11 @@ # Installation prefix, for example /usr or /usr/local # *No* trailing slash should be included. -prefix=/usr/local +prefix=${DESTDIR:-debian/tmp} # Prefix for host-wide configuration files; you should probably keep the # default setting: -configurationprefix=/etc +configurationprefix=${prefix}/etc # Prefix for the locale files localeprefix=${prefix}/share/locale @@ -58,7 +58,7 @@ ocaml_libraryprefix=$(ocamlc -where || exit -1) # By default they will be installed into ${ocaml_libraryprefix}, but you # can change it if you really want to install into a different, custom prefix. # *No* trailing slash should be included. -libraryprefix=${ocaml_libraryprefix} +libraryprefix=${prefix}/${ocaml_libraryprefix} # # This definition may be appropriate for debian packaging: #libraryprefix=debian/tmp/${ocaml_libraryprefix} debian/compat0000644000000000000000000000000212165552506010373 0ustar 8