diff --git a/.travis.yml b/.travis.yml index 00daee9..bf70f79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,5 @@ language: c -script: - # run twice, once for bootstrapping - - ocamlbuild -use-ocamlfind merr/merr.native merr/merr.byte - - ocamlbuild -use-ocamlfind merr/merr.native merr/merr.byte +script: dpkg-buildpackage -b -us -uc install: - sudo add-apt-repository -y ppa:pippijn/ppa @@ -13,3 +10,4 @@ install: branches: only: - master + - /.*\/staging/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..89e4e0c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ocaml-merr (0.1) precise; urgency=low + + * Initial release. (Closes: #9999) + + -- Pippijn van Steenhoven Fri, 06 Sep 2013 00:59:57 +0200 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..fa1feb6 --- /dev/null +++ b/debian/control @@ -0,0 +1,47 @@ +Source: ocaml-merr +Section: ocaml +Priority: optional +Maintainer: Pippijn van Steenhoven +Uploaders: + Pippijn van Steenhoven +Build-Depends: + ocaml-nox (>= 3.12), + ocaml-findlib, + git, + omake, + libsexplib-camlp4-dev, + dh-ocaml, + debhelper (>= 8.0.0) +Standards-Version: 3.9.2 +Homepage: https://github.com/pippijn/merr +Vcs-Git: git://github.com/pippijn/merr +Vcs-Browser: https://github.com/pippijn/merr + +Package: merr +Architecture: any +Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends} +Provides: ${ocaml:Provides} +Description: Common library for OCaml projects + This library contains some common modules I use for + most of my projects. + . + This package contains the shared runtime libraries. + +Package: libmerr-ocaml +Architecture: any +Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends} +Provides: ${ocaml:Provides} +Description: Common library for OCaml projects + This library contains some common modules I use for + most of my projects. + . + This package contains the shared runtime libraries. + +Package: libmerr-ocaml-dev +Architecture: any +Depends: ${ocaml:Depends}, ${misc:Depends} +Provides: ${ocaml:Provides} +Recommends: ocaml-findlib +Description: Common library for OCaml projects + This library contains some common modules I use for + most of my projects. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8aae1aa --- /dev/null +++ b/debian/copyright @@ -0,0 +1,3 @@ +Files: debian/* +Copyright: (C) 2013 Pippijn van Steenhoven +License: GPL-3+ diff --git a/debian/libmerr-ocaml-dev.install.in b/debian/libmerr-ocaml-dev.install.in new file mode 100644 index 0000000..bff0956 --- /dev/null +++ b/debian/libmerr-ocaml-dev.install.in @@ -0,0 +1,3 @@ +@OCamlStdlibDir@/libmerr/*.a +@OCamlStdlibDir@/libmerr/*.cm[ix] +@OCamlStdlibDir@/libmerr/*.cmxa diff --git a/debian/libmerr-ocaml.install.in b/debian/libmerr-ocaml.install.in new file mode 100644 index 0000000..0b7cfff --- /dev/null +++ b/debian/libmerr-ocaml.install.in @@ -0,0 +1,3 @@ +@OCamlStdlibDir@/libmerr/META +@OCamlStdlibDir@/libmerr/*.cma +@OCamlStdlibDir@/libmerr/*.cmxs diff --git a/debian/merr.install.in b/debian/merr.install.in new file mode 100644 index 0000000..16dfb4c --- /dev/null +++ b/debian/merr.install.in @@ -0,0 +1,3 @@ +/usr/bin/merr +/usr/bin/merr.byte +/usr/bin/merr.native diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..15dd02e --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DESTDIR = $(CURDIR)/debian/tmp +FLAGS = + +include /usr/share/ocaml/ocamlvars.mk + +OCAMLFIND_DESTDIR = $(DESTDIR)/$(OCAML_STDLIB_DIR) +export OCAMLFIND_DESTDIR + +prefix = /usr + +%: + dh --with ocaml $@ + +.PHONY: override_dh_auto_configure +override_dh_auto_configure: + if [ ! -d obuild ]; then \ + git clone --depth=1 https://github.com/pippijn/obuild; \ + fi + obuild/script/prepare-tree . + +.PHONY: override_dh_auto_build +override_dh_auto_build: + cd obuild && omake + +.PHONY: override_dh_auto_test +override_dh_auto_test: + cd obuild && omake check + +.PHONY: override_dh_auto_install +override_dh_auto_install: + mkdir -p '$(DESTDIR)$(prefix)/bin' + mkdir -p '$(OCAMLFIND_DESTDIR)' + mkdir -p '$(OCAMLFIND_DESTDIR)/stublibs' + cd obuild && omake install prefix='$(prefix)' DESTDIR='$(DESTDIR)' + +.PHONY: override_dh_install +override_dh_install: + dh_install --fail-missing + +.PHONY: override_dh_auto_clean +override_dh_auto_clean: + rm -rf obuild