void-packages/srcpkgs/ocaml-lidl/template

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-04-29 16:42:08 +02:00
# Template file for 'ocaml-lidl'
pkgname=ocaml-lidl
version=1.05
2013-04-30 17:59:49 +02:00
revision=4
2013-04-29 16:42:08 +02:00
wrksrc="camlidl-${version}"
makedepends="ocaml-compiler-libs"
short_desc="stub code generator and COM binding for Objective Caml"
maintainer="pancake <pancake@nopcode.org>"
homepage="http://caml.inria.fr/pub/old_caml_site/camlidl/"
license="Q"
distfiles="http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/camlidl-${version}.tar.gz"
checksum=857ed5bd3b2f99c62813070e1a5b4b6375e837c6815f4ad956baeb6f8c660311
2013-04-29 17:33:02 +02:00
nostrip=yes
2013-04-29 16:42:08 +02:00
do_configure() {
cp -f config/Makefile.unix config/Makefile
}
do_build() {
make ${makejobs} CPP=cpp BINDIR=/usr/bin OCAMLLIB=/usr/lib/ocaml
}
do_install() {
2013-04-30 17:59:49 +02:00
mkdir -p ${DESTDIR}/usr/bin \
${DESTDIR}/usr/lib/ocaml/caml \
${DESTDIR}/usr/lib/ocaml/site-lib/camlidl
2013-04-29 16:42:08 +02:00
make BINDIR=${DESTDIR}/usr/bin OCAMLLIB=${DESTDIR}/usr/lib/ocaml install
2013-04-30 17:59:49 +02:00
cat > ${DESTDIR}/usr/lib/ocaml/site-lib/camlidl/META << EOF
# Specifications for the "unix" library:
requires = ""
description = "LIDL"
version = "1.05"
directory = "^"
browse_interfaces = " Unit name: Unix Unit name: UnixLabels "
archive(byte) = "com.cma"
archive(native) = "com.cmxa"
archive(byte,mt_vm) = "com.cma"
EOF
2013-04-29 16:42:08 +02:00
}
ocaml-lidl_package() {
pkg_install() {
vmove all
}
}