void-packages/srcpkgs/ocaml/ocaml-compiler-libs.template

19 lines
655 B
Text
Raw Normal View History

2012-09-30 05:11:16 +00:00
# Template file for 'ocaml-compiler-libs'.
#
depends="ocaml-${version}"
short_desc="${short_desc} (shared libraries)"
long_desc="${long_desc}
This package contains modules used internally by the OCaml compiler."
do_install() {
local compiler_libs="${DESTDIR}/usr/lib/ocaml/compiler-libs"
mkdir -pv "${compiler_libs}"/{parsing,typing,utils}
cp -v parsing/*.{cmi,cmo,cmx,ml,mli,mll,o} "${compiler_libs}"/parsing
cp -v typing/*.{cmi,cmo,cmx,ml,mli,o} "${compiler_libs}"/typing
cp -v utils/*.{cmi,cmo,cmx,ml,mli,o} "${compiler_libs}"/utils
rm -fv "${compiler_libs}"/typing/outcometree.{cmi,mli}
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}