From ffa561e5237ea7454302a091b7898464e00f5806 Mon Sep 17 00:00:00 2001 From: hattenberger Date: Sat, 23 Feb 2013 09:42:53 +0000 Subject: use ocamfind to install package --- debian/control | 4 ++-- debian/rules | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'debian') diff --git a/debian/control b/debian/control index 4bba10f..48267c3 100644 --- a/debian/control +++ b/debian/control @@ -1,8 +1,8 @@ Source: ivy-ocaml -Section: net +Section: libs Priority: optional Maintainer: Gautier Hattenberger -Build-Depends: debhelper (>= 7.0.50~), dh-ocaml (>= 0.9.0), ocaml-nox, libglib2.0-dev, libpcre3-dev, ivy-c-dev (>=3.11) +Build-Depends: debhelper (>= 7.0.50~), dh-ocaml (>= 0.9.0), ocaml-nox, ocaml-findlib, libglib2.0-dev, libpcre3-dev, ivy-c-dev (>=3.11) Standards-Version: 3.9.2 Homepage: http://www2.tls.cena.fr/products/ivy/ Vcs-Svn: http://svn.tls.cena.fr/svn/ivy/ivy-ocaml/trunk diff --git a/debian/rules b/debian/rules index 6827cc6..f09e0b2 100755 --- a/debian/rules +++ b/debian/rules @@ -1,10 +1,11 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. + +include /usr/share/ocaml/ocamlvars.mk + +DEB_DESTDIR = $(CURDIR)/debian/ivy-ocaml +DEB_OCAML_DESTDIR = $(DEB_DESTDIR)$(OCAML_STDLIB_DIR) +export OCAMLFIND_DESTDIR = $(DEB_OCAML_DESTDIR) # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -13,5 +14,8 @@ dh $@ --with ocaml override_dh_auto_install : - $(MAKE) install DESTDIR=$(CURDIR)/debian/ivy-ocaml + mkdir -p $(DEB_OCAML_DESTDIR) + mkdir -p $(DEB_OCAML_DESTDIR)/stublibs + $(MAKE) DESTDIR=$(DEB_DESTDIR) install +.PHONY: override_dh_auto_install -- cgit v1.1