On Wed, Sep 13, 2006 at 04:09:18PM +0200, Stefano Zacchiroli wrote: > Subject: cdbs: add a class for OCaml related packages
I misused reportbug screwing up the report, sorry. Attached you can find the 2 files implementing the OCaml class. Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!-
#
# Description: CDBS class for OCaml related packages
#
# Copyright © 2006 Stefano Zacchiroli <[EMAIL PROTECTED]>
#
# 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id: ocaml.mk 3110 2006-09-13 13:40:53Z zack $
_cdbs_scripts_path ?= /usr/lib/cdbs
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
_cdbs_class_path ?= /usr/share/cdbs/1/class
ifndef _cdbs_class_ocaml
_cdbs_class_ocaml = 1
# to ensure invocations and tests on /usr/bin/ocaml* are meaningful
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), ocaml-nox
# import OCAML_* make variables
include $(_cdbs_class_path)/ocaml-vars.mk$(_cdbs_makefile_suffix)
# ensure dpkg-gencontrol will fill F:OCamlABI fields with the proper value
ifdef _cdbs_rules_debhelper
DEB_DH_GENCONTROL_ARGS += -- -VF:OCamlABI="$(OCAML_ABI)"
endif
# generate .in files counterpars before building, substituting @OCamlABI@
# markers with the proper value; clean stamps after building
pre-build:: ocamlinit
ocamlinit: ocamlinit-stamp
ocamlinit-stamp:
for f in $(OCAML_IN_FILES); do sed -e 's/@OCamlABI@/$(OCAML_ABI)/g'
$$f.in > $$f; done
touch $@
clean::
rm -f ocamlinit-stamp
endif
# # Description: Useful CDBS variables for OCaml related packages # # Copyright © 2006 Stefano Zacchiroli <[EMAIL PROTECTED]> # # 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 Street, Fifth Floor, Boston, MA 02110-1301 USA. # # $Id: ocaml-vars.mk 3110 2006-09-13 13:40:53Z zack $ _cdbs_scripts_path ?= /usr/lib/cdbs _cdbs_rules_path ?= /usr/share/cdbs/1/rules _cdbs_class_path ?= /usr/share/cdbs/1/class ifndef _cdbs_class_ocaml_vars _cdbs_class_ocaml = 1 # current OCaml ABI version (ATM 3.09.2). # Used internally by ocaml.mk, may be useful to debian/rules writers as well OCAML_ABI := $(shell /usr/bin/ocamlc -version) # OCaml standard library location. # For debian/rules writers. OCAML_STDLIB_DIR := $(shell /usr/bin/ocamlc -where) # list of .in files contained (non-recursively) in debian/ that requires # pre-build filling. # Used internally by ocaml.mk. # debian/rules writers might need to add stuff to this list: # e.g.: OCAML_IN_FILES += debian/patches/foo.in OCAML_IN_FILES := $(filter-out debian/control,$(patsubst %.in,%,$(wildcard debian/*.in))) # 'yes' if native code compilation is available on the build architecture, 'no' otherwise. # For debian/rules writers. OCAML_HAVE_OCAMLOPT := $(shell if test -x /usr/bin/ocamlopt ; then echo "yes" ; else echo "no" ; fi) endif
signature.asc
Description: Digital signature

