ocaml: fix installation.
This commit is contained in:
parent
1424993c39
commit
1623a97740
1 changed files with 9 additions and 8 deletions
|
@ -34,9 +34,16 @@ do_build() {
|
|||
}
|
||||
|
||||
do_install() {
|
||||
local compiler_libs=${DESTDIR}/usr/lib/ocaml/compiler-libs
|
||||
|
||||
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man install
|
||||
|
||||
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
@ -44,15 +51,9 @@ ocaml-compiler-libs_package() {
|
|||
depends="ocaml-${version}"
|
||||
short_desc+=" -- shared libraries"
|
||||
pkg_install() {
|
||||
local compiler_libs="${PKGDESTDIR}/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 -f "${compiler_libs}"/typing/outcometree.{cmi,mli}
|
||||
|
||||
vmove usr/lib/ocaml/compiler-libs
|
||||
vinstall ${wrksrc}/LICENSE 644 usr/share/licenses/${pkgname}
|
||||
rm -f ${PKGDESTDIR}/usr/lib/ocaml/compiler-libs/typing/outcometree.{cmi,mli}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue