# Copyright 2009 A Frederick Christensen # Distributed under the terms of the GNU General Public License v2 SUMMARY="Preprocessor-pretty-printer of OCaml" HOMEPAGE="http://camlp5.gforge.inria.fr/" DOWNLOADS="http://camlp5.gforge.inria.fr/distrib/src/${PNV}.tgz" LICENCES="BSD-3" SLOT="0" PLATFORMS="~amd64 ~x86" MYOPTIONS=" strict [[ description = [ new sytax tree - breaks compatibility with older syntax tree ] ]] " # NOTE: camlp5 has lower _and_ upper bounds on ocaml versions! # Be sure to check when bumping. DEPENDENCIES=" build+run: dev-lang/ocaml[>=1.07&<=4.03.0] " DEFAULT_SRC_COMPILE_PARAMS=( world.opt ) # This OCaml specific configure file behaves very unlike # 'normal' (read autotools) configure files. Options are in the # form "--option value" rather than "--option=value" # (' ' instead of '=') src_configure() { option strict && CAMLP5_MODE="--strict" || CAMLP5_MODE="--transitional" edo ./configure \ --prefix /usr/$(exhost --target) \ --mandir /usr/share/man \ "$CAMLP5_MODE" }