[Pkg-ocaml-maint-commits] [SCM] xmlm packaging branch, master, updated. upstream/1.0.1.orig-1-g9606e42

Romain Beauxis toots at rastageeks.org
Thu May 14 06:46:17 UTC 2009


The following commit has been merged in the master branch:
commit 9606e42654b4f2489b986849e1f7df8b6f3dfec4
Author: Romain Beauxis <toots at rastageeks.org>
Date:   Thu May 14 17:46:08 2009 +1100

    Initial packaging..

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d53607c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+xmlm (1.0.1-1) unstable; urgency=low
+
+  * Initial upload to unstable (Closes: #528436)
+
+ -- Romain Beauxis <toots at rastageeks.org>  Thu, 14 May 2009 16:26:15 +1100
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..0d5ff21
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: xmlm
+Section: devel
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders: Samuel Mimram <smimram at debian.org>, Romain Beauxis <toots at rastageeks.org>
+Build-Depends: debhelper (>= 7.0.1), quilt, patchutils (>= 0.2.25), 
+               cdbs (>= 0.4.27), ocaml-nox, ocaml-findlib (>= 1.2.4), dh-ocaml
+Standards-Version: 3.8.1
+Homepage: http://savonet.sourceforge.net/
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/xmlm.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/xmlm.git
+
+Package: libxmlm-ocaml-dev
+Architecture: any
+Section: ocaml
+Depends: ocaml-nox-${F:OCamlABI}, ocaml-findlib, ${misc:Depends}
+Description: OCaml xml manipulation module
+ Xmlm allows the OCaml programmer to manipulate xml data. 
+ Its complexity is half-way between the easy xml-light module and 
+ a full parsing of xml data.
+ .
+ It is also very simple to updgrade existing code using xml-light
+ in order to use xmlm.
+ .
+ This package contains all the development stuff you need to develop
+ OCaml programs which use xmlm.
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..aaa706e
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,25 @@
+Source: xmlm
+Section: devel
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders: Samuel Mimram <smimram at debian.org>, Romain Beauxis <toots at rastageeks.org>
+Build-Depends: @cdbs@, ocaml-findlib (>= 1.2.4), dh-ocaml
+Standards-Version: 3.8.1
+Homepage: http://savonet.sourceforge.net/
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/xmlm.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/xmlm.git
+
+Package: libxmlm-ocaml-dev
+Architecture: any
+Section: ocaml
+Depends: ocaml-nox-${F:OCamlABI}, ocaml-findlib, ${misc:Depends}
+Description: OCaml xml manipulation module
+ Xmlm allows the OCaml programmer to manipulate xml data. 
+ Its complexity is half-way between the easy xml-light module and 
+ a full parsing of xml data.
+ .
+ It is also very simple to updgrade existing code using xml-light
+ in order to use xmlm.
+ .
+ This package contains all the development stuff you need to develop
+ OCaml programs which use xmlm.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..196e933
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,41 @@
+This package was debianized by Romain Beauxis <toots at rastageeks.org> on
+Thu, 14 May 2009 16:26:15 +1100.
+
+It was downloaded from <http://erratique.ch/software/xmlm>
+
+Upstream Author: Daniel C. Bünzli
+
+Copyright © 2007-2008, Daniel C. Bünzli. 
+
+License:
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are
+  met:
+
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+
+  2. 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.
+
+  3. Neither the name of the Daniel C. Bünzli nor the names of
+     contributors may be used to endorse or promote products derived
+     from this software without specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT
+  OWNER OR 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.
+
+The Debian packaging is © 2009, Romain Beauxis <toots at rastageeks.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
diff --git a/debian/libxmlm-ocaml-dev.docs b/debian/libxmlm-ocaml-dev.docs
new file mode 100644
index 0000000..f528701
--- /dev/null
+++ b/debian/libxmlm-ocaml-dev.docs
@@ -0,0 +1,2 @@
+README
+doc
diff --git a/debian/libxmlm-ocaml-dev.install.in b/debian/libxmlm-ocaml-dev.install.in
new file mode 100644
index 0000000..9564cdb
--- /dev/null
+++ b/debian/libxmlm-ocaml-dev.install.in
@@ -0,0 +1,4 @@
+ at OCamlStdlibDir@/xmlm/META
+ at OCamlStdlibDir@/xmlm/*.cm*
+ at OCamlStdlibDir@/xmlm/*.ml*
+OPT: @OCamlStdlibDir@/xmlm/*.a 
diff --git a/debian/patches/fix_build_script.patch b/debian/patches/fix_build_script.patch
new file mode 100644
index 0000000..83ebda6
--- /dev/null
+++ b/debian/patches/fix_build_script.patch
@@ -0,0 +1,49 @@
+Index: xmlm/build
+===================================================================
+--- xmlm.orig/build	2009-05-14 16:55:13.000000000 +1100
++++ xmlm/build	2009-05-14 17:40:18.000000000 +1100
+@@ -8,7 +8,8 @@
+ SHORTDESCRIPTION="Streaming XML input\/output for OCaml"
+ EMAIL="daniel.buenzl i\\\@erratique.ch"
+ 
+-INSTALLDIR=${INSTALLDIR:="`ocamlc -where`/$PROJECTNAME"}
++#INSTALLDIR=${INSTALLDIR:="`ocamlc -where`/$PROJECTNAME"}
++INSTALLDIR=$INSTALLDIR
+ DOCDIR=${DOCDIR:="doc"}
+ 
+ # Caml tools
+@@ -27,28 +28,29 @@
+ {
+   case $1 in
+     module-byte)
+-      ocb $PROJECTNAME.cmo ;;
++      ocb $PROJECTNAME.cma 
++      ocb $PROJECTNAME.cmi ;;
+     module-native) 
+-      ocb $PROJECTNAME.cmx ;;
++      ocb $PROJECTNAME.cmx 
++      ocb $PROJECTNAME.cmxa ;;
+     module)
+       action module-byte
+       action module-native ;;
+     xmltrip) 
+       ocb xmltrip.native ;;
+     doc)
+-      ocb $PROJECTNAME.cmi
+       $OCAMLDOC -html -I src -colorize-code -d $DOCDIR src/$PROJECTNAME.mli ;;
+     distrib) distrib ;;
+     install-byte)
+       action module-byte
+       $MKDIR -p $INSTALLDIR
+       F="_build/src/$PROJECTNAME"
+-      $CP $F.ml $F.mli $F.cmi $F.cmo src/META $INSTALLDIR ;;
++      $CP $F.mli $F.cmi $F.cma src/META $INSTALLDIR ;;
+     install)
+       action module
+       $MKDIR -p $INSTALLDIR
+       F="_build/src/$PROJECTNAME"
+-      $CP $F.ml $F.mli $F.cmi $F.cmo $F.cmx $F.o src/META $INSTALLDIR ;;
++      $CP $F.mli $F.cmi $F.cma $F.cmx $F.cmxa $F.a src/META $INSTALLDIR ;;
+     clean) 
+       ocb -clean ;;
+     clean-all) 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4e71319
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_build_script.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..01759aa
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/class/ocaml.mk
+
+# In order to regenerate 'debian/control' :
+#   DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
+# Then check manually if everything's ok
+
+DESTDIR = $(CURDIR)/debian/tmp$(shell ocamlc -where)
+DEB_MAKE_INSTALL_TARGET := install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
+DEB_DH_INSTALL_SOURCEDIR := debian/tmp
+DEB_DH_INSTALL_ARGS :=  --list-missing
+
+build/libxmlm-ocaml-dev::
+	mkdir -p $(DESTDIR)
+	if [ -x /usr/bin/ocamlopt ]; then\
+	  INSTALLDIR=$(DESTDIR)/xmlm ./build module; \
+	  INSTALLDIR=$(DESTDIR)/xmlm ./build install; \
+	else\
+	  INSTALLDIR=$(DESTDIR)/xmlm ./build module-byte; \
+	  INSTALLDIR=$(DESTDIR)/xmlm ./build install-byte; \
+	fi
+	INSTALLDIR=$(DESTDIR)/xmlm ./build doc
+
+clean::
+	INSTALLDIR=$(DESTDIR)/xmlm ./build clean
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a144fe2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://erratique.ch/software/xmlm .*xmlm-(.+)\.tbz

-- 
xmlm packaging



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