[Pkg-ocaml-maint-commits] [SCM] ocamlmod packaging branch, master, updated. debian/0.0.2-1

Sylvain Le Gall gildor at debian.org
Thu Apr 19 23:50:16 UTC 2012


The following commit has been merged in the master branch:
commit a1634ed41b4b8f23e2c82e969990448a757938b0
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Thu Apr 19 23:17:04 2012 +0000

    Fix generated oasis2debian packaging system, add a manpage

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c45dd61
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ocamlmod (0.0.2-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #669567)
+
+ -- Sylvain Le Gall <gildor at debian.org>  Thu, 19 Apr 2012 22:45:30 +0000
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..79699ed
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: ocamlmod
+Section: ocaml
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders: 
+  Sylvain Le Gall <gildor at debian.org>
+Build-Depends:
+  ocaml-nox (>= 3.11.1-3~),
+  ocaml-findlib,
+  libpcre-ocaml-dev,
+  libfileutils-ocaml-dev,
+  dh-ocaml (>= 0.9~),
+  debhelper (>= 7.0.50~)
+Standards-Version: 3.9.3
+Homepage: http://forge.ocamlcore.org/projects/ocamlmod
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocamlmod.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocamlmod.git
+
+Package: ocamlmod
+Architecture: all
+Depends: ${misc:Depends}, ${ocaml:Depends}
+Description: generate OCaml modules from source files
+ Pack a set of OCaml source files into a single file preserving module
+ names. It also allows one to exclude certain parts of the file.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e142748
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: ocamlmod
+Maintainer: Sylvain Le Gall <gildor at debian.org>
+
+Files: *
+Copyright: (C) 2011 OCamlCore SARL
+License: LGPL-2.1 with OCaml linking exception
+
+ See '/usr/share/common-licenses/LGPL-2.1' for full text.
+
+ As a special exception to the GNU Library 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 Library General Public License.  By "a publicly
+ distributed version of the Library", we mean either the unmodified Library as
+ distributed by upstream author, or a modified version of the Library that is
+ distributed under the conditions defined in clause 3 of the GNU Library
+ General Public License.  This exception does not however invalidate any other
+ reasons why the executable file might be covered by the GNU Library General
+ Public License.
+
+Files: debian/*
+Copyright: (C) 2012 Sylvain Le Gall <gildor at debian.org>
+License: GPL-3+
+                
+ See '/usr/share/common-licenses/GPL-3' for full text.
+
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..6c7ed3b
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+pristine-tar = True
+cleaner = debuild clean && dh_quilt_unpatch && dh_clean
diff --git a/debian/ocamlmod.1 b/debian/ocamlmod.1
new file mode 100644
index 0000000..20891c5
--- /dev/null
+++ b/debian/ocamlmod.1
@@ -0,0 +1,28 @@
+.TH OCAMLMOD 1 "April 20, 2012" "ocamlmod manpage"
+.SH NAME
+.PP
+ocamlmod - generate OCaml modules from source files
+.SH SYNOPSIS
+.PP
+ocamlmod [-help|--help] file.mod
+.SH DESCRIPTION
+.PP
+This program allows to generate a single module files from a bunch of
+OCaml source file.
+.SH FILE SYNTAX
+.PP
+The \f[C]file.mod\f[] must contains one source (\f[C].ml\f[]) per line.
+.PP
+Each \f[C].ml\f[] file is copied with an indentation of 2 space into
+\f[C]file.ml\f[] The target filename is derived from the \f[C].mod\f[]
+filename.
+.PP
+During the copy, some parts are removed:
+.IP \[bu] 2
+Every lines contains inside a \f[C](*\ END\ EXPORT\ *)\f[],
+\f[C](*\ START\ EXPORT\ *)\f[]
+.IP \[bu] 2
+Some camlp4 related directive (\f[C]with\ odn\f[] and
+\f[C]TYPE_CONV_PATH\f[]).
+.SH AUTHORS
+Sylvain Le Gall.
diff --git a/debian/ocamlmod.manpages b/debian/ocamlmod.manpages
new file mode 100644
index 0000000..41b0df3
--- /dev/null
+++ b/debian/ocamlmod.manpages
@@ -0,0 +1 @@
+debian/ocamlmod.1
diff --git a/debian/ocamlmod.mkd b/debian/ocamlmod.mkd
new file mode 100644
index 0000000..4bf41a8
--- /dev/null
+++ b/debian/ocamlmod.mkd
@@ -0,0 +1,28 @@
+% OCAMLMOD(1) ocamlmod manpage
+% Sylvain Le Gall 
+% April 20, 2012
+
+# NAME
+
+ocamlmod - generate OCaml modules from source files
+
+# SYNOPSIS
+
+ocamlmod [-help|--help] file.mod
+
+# DESCRIPTION
+
+This program allows to generate a single module files from a bunch of 
+OCaml source file.
+
+# FILE SYNTAX
+
+The `file.mod` must contains one source (`.ml`) per line.
+
+Each `.ml` file is copied with an indentation of 2 space into `file.ml`
+The target filename is derived from the `.mod` filename.
+
+During the copy, some parts are removed:
+
+* Every lines contains inside a `(* END EXPORT *)`, `(* START EXPORT *)`
+* Some camlp4 related directive (`with odn` and `TYPE_CONV_PATH`).
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3598088
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DESTDIR=$(CURDIR)/debian/ocamlmod
+
+include /usr/share/ocaml/ocamlvars.mk
+
+OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
+export OCAMLFIND_DESTDIR
+OCAMLFIND_LDCONF=ignore
+export OCAMLFIND_LDCONF
+
+%:
+	dh --with ocaml $@
+
+.PHONY: override_dh_auto_configure
+override_dh_auto_configure:
+	ocaml setup.ml -configure --prefix /usr --destdir '$(DESTDIR)'
+
+.PHONY: override_dh_auto_build
+override_dh_auto_build:
+	ocaml setup.ml -build
+	ocaml setup.ml -doc
+
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+	ocaml setup.ml -test
+
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+	mkdir -p '$(DESTDIR)/usr/bin'
+	mkdir -p '$(OCAMLFIND_DESTDIR)'
+	ocaml setup.ml -install 
+
+.PHONY: override_dh_install
+override_dh_install:
+	dh_install --fail-missing
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+	ocaml setup.ml -distclean
+
+debian/ocamlmod.1: debian/ocamlmod.mkd
+	pandoc -s -w man $^ -o $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
ocamlmod packaging



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