[Pkg-ocaml-maint-commits] [SCM] ocaml-inotify packaging branch, master, updated. 84cd6823a62cf5a4b3b75e66060527af6afbdac6

Sylvain Le Gall gildor at debian.org
Sun Jun 8 14:41:40 UTC 2008


The following commit has been merged in the master branch:
commit f4466d84d7a189a1d705e5539873bf1c6c614486
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Sun Jun 8 12:47:33 2008 +0200

    Initial packaging

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..944e02e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ocaml-inotify (0.5-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- Sylvain Le Gall <gildor at debian.org>  Sun, 08 Jun 2008 11:46:51 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c3d51c7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,34 @@
+Source: ocaml-inotify
+Section: libdevel
+Priority: optional
+Maintainer: Sylvain Le Gall <gildor at debian.org>
+Build-Depends: cdbs (>= 0.4.52), ocaml-nox (>= 3.10.1), debhelper (>> 5), ocaml-findlib, dpatch
+Standards-Version: 3.7.3
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml-inotify.git
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml-inotify.git
+Homepage: http://tab.snarc.org/projects/ocaml_inotify/
+
+Package: libinotify-ocaml
+Architecture: any
+Depends: ocaml-base-nox-${F:OCamlABI}, ${shlibs:Depends}
+Description: OCaml bindings for the inotify API
+ This library provides OCaml bindings for using inotify.
+ .
+ Inotify is a linux kernel subsystem, that notice changes to the filesystem,
+ and report those changes to applications.
+ .
+ This package contains shared library.
+
+Package: libinotify-ocaml-dev
+Architecture: any
+Depends: ocaml-nox-${F:OCamlABI}, libinotify-ocaml (= ${binary:Version})
+Description: OCaml bindings for the inotify API
+ This library provides OCaml bindings for using inotify.
+ .
+ Inotify is a linux kernel subsystem, that notice changes to the filesystem,
+ and report those changes to applications.
+ .
+ .
+ This package contains header and OCaml library.
+
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..407c88a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,25 @@
+This package was debianized by Sylvain Le Gall <gildor at debian.org> on
+Sun, 08 Jun 2008 11:56:52 +0200.
+
+It was downloaded from :
+
+http://tab.snarc.org/projects/ocaml_inotify/
+
+Copyright:
+
+   Copyright (C) 2006 Vincent Hanquez 
+
+License:
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU Lesser General Public License as published
+  by the Free Software Foundation; version 2 only.
+ 
+  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.
+
+On Debian GNU/Linux systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL-2'.
+
diff --git a/debian/libinotify-ocaml-dev.dirs.in b/debian/libinotify-ocaml-dev.dirs.in
new file mode 100644
index 0000000..cc51687
--- /dev/null
+++ b/debian/libinotify-ocaml-dev.dirs.in
@@ -0,0 +1 @@
+ at OCamlStdlibDir@
diff --git a/debian/libinotify-ocaml.dirs.in b/debian/libinotify-ocaml.dirs.in
new file mode 100644
index 0000000..a8131b4
--- /dev/null
+++ b/debian/libinotify-ocaml.dirs.in
@@ -0,0 +1 @@
+ at OCamlDllDir@
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..aa1f656
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1 @@
+01_nogcc
diff --git a/debian/patches/01_nogcc.dpatch b/debian/patches/01_nogcc.dpatch
new file mode 100755
index 0000000..10d0c43
--- /dev/null
+++ b/debian/patches/01_nogcc.dpatch
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_nogcc.dpatch by Sylvain Le Gall <gildor at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad ocaml-inotify~/Makefile ocaml-inotify/Makefile
+--- ocaml-inotify~/Makefile	2008-06-08 12:37:26.000000000 +0200
++++ ocaml-inotify/Makefile	2008-06-08 12:38:46.000000000 +0200
+@@ -1,5 +1,3 @@
+-CC = gcc
+-CFLAGS = -Wall -fPIC -O2
+ OCAMLC = ocamlc
+ OCAMLOPT = ocamlopt
+ 
+@@ -44,7 +42,7 @@
+ 	$(OCAMLOPT) $(OCAMLOPTFLAGS) -c -o $@ $<
+ 
+ %.o: %.c
+-	$(CC) $(CFLAGS) -c -o $@ $<
++	$(OCAMLC) -c -o $@ $<
+ 
+ .PHONY: install
+ install: $(LIBS)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2a5f622
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+# debian/rules for ocaml-inotify package
+# Copyright (C) 2008 Sylvain Le Gall <gildor at debian.org>
+#
+# 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, 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, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+# MA 02110-1301, USA.
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/class/ocaml.mk
+
+DESTDIR_DEV=$(CURDIR)/debian/libinotify-ocaml-dev
+DESTDIR=$(CURDIR)/debian/libinotify-ocaml
+
+DEB_MAKE_CLEAN_TARGET    := clean
+DEB_MAKE_BUILD_TARGET    := all 
+DEB_MAKE_INSTALL_TARGET  := install \
+  OCAMLDESTDIR="$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)"
+
+clean::
+	$(RM) '$(CURDIR)/debian/libinotify-ocaml-dev.dirs'
+	$(RM) '$(CURDIR)/debian/libinotify-ocaml.dirs'
+
+install/libinotify-ocaml-dev::
+	mv $(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/inotify/*.so $(DESTDIR)/$(OCAML_DLL_DIR)/
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..031f79d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://tab.snarc.org/download/ocaml/ocaml_inotify-([0-9\.]*).tar.bz2

-- 
ocaml-inotify packaging



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