mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
- Resurrect and stagify `lang/ocaml-camlidl' port
- Fix spelling in the COMMENT and add LICENSE knobs - Pass maintainership to the submitter PR: 231568 Submitted by: Greg Kennedy
This commit is contained in:
parent
ad5b779798
commit
721bc9fa48
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480802
1
MOVED
1
MOVED
@ -6552,7 +6552,6 @@ lang/hiphop-php||2014-09-01|Not staged
|
||||
lang/lush||2014-09-01|Not staged
|
||||
lang/metaocaml||2014-09-01|Not staged
|
||||
lang/mpd||2014-09-01|Not staged
|
||||
lang/ocaml-camlidl||2014-09-01|Not staged
|
||||
lang/ocaml-mode.el||2014-09-01|Not staged
|
||||
lang/ocs||2014-09-01|Not staged
|
||||
lang/oorexx||2014-09-01|Not staged
|
||||
|
@ -218,6 +218,7 @@
|
||||
SUBDIR += nyan
|
||||
SUBDIR += ocaml
|
||||
SUBDIR += ocaml-autoconf
|
||||
SUBDIR += ocaml-camlidl
|
||||
SUBDIR += ocaml-nox11
|
||||
SUBDIR += ohugs
|
||||
SUBDIR += onyx
|
||||
|
62
lang/ocaml-camlidl/Makefile
Normal file
62
lang/ocaml-camlidl/Makefile
Normal file
@ -0,0 +1,62 @@
|
||||
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= camlidl
|
||||
PORTVERSION= 1.05
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://caml.inria.fr/distrib/bazar-ocaml/
|
||||
PKGNAMEPREFIX= ocaml-
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
|
||||
${PORTNAME}-${PORTVERSION}.doc.html.tar.gz
|
||||
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
||||
|
||||
MAINTAINER= kennedy.greg@gmail.com
|
||||
COMMENT= Stub code generator for using C/C++ libraries from OCaml
|
||||
|
||||
LICENSE= LGPL20 LGPL21
|
||||
LICENSE_COMB= dual
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USE_OCAML= yes
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} -e "s,^\(OCAMLLIB=\).*,\1${STAGEDIR}${PREFIX}/lib/ocaml,g" \
|
||||
-e "s,^\(BINDIR=\).*,\1${STAGEDIR}${PREFIX}/bin,g" \
|
||||
-e "s,^CFLAGS=.*,#\&,g" \
|
||||
-e "s,^\(CPP=\).*,\1/usr/bin/cpp,g" \
|
||||
${WRKSRC}/config/Makefile.unix
|
||||
|
||||
@${REINPLACE_CMD} -e \
|
||||
"/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_SCRIPT},g" \
|
||||
${WRKSRC}/compiler/Makefile
|
||||
|
||||
@${REINPLACE_CMD} -e \
|
||||
"/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_DATA},g" \
|
||||
${WRKSRC}/lib/Makefile ${WRKSRC}/runtime/Makefile.unix
|
||||
|
||||
@${LN} -sf ${WRKSRC}/config/Makefile.unix ${WRKSRC}/config/Makefile
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml/caml
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${GZCAT} ${_DISTDIR}/${PORTNAME}-${PORTVERSION}.doc.html.tar.gz \
|
||||
| ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -
|
||||
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR}
|
||||
${FIND} ${STAGEDIR}${DOCSDIR} -type f -exec ${CHMOD} ${SHAREMODE} {} \;
|
||||
|
||||
test:
|
||||
@${ECHO_CMD} "Testing IDL library"
|
||||
@${REINPLACE_CMD} -e "s,^\(CCPP=\).*,\1${CXX},g" \
|
||||
${WRKSRC}/tests/Makefile
|
||||
cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE} all
|
||||
|
||||
.include <bsd.port.mk>
|
5
lang/ocaml-camlidl/distinfo
Normal file
5
lang/ocaml-camlidl/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1089725420
|
||||
SHA256 (camlidl-1.05.tar.gz) = 857ed5bd3b2f99c62813070e1a5b4b6375e837c6815f4ad956baeb6f8c660311
|
||||
SIZE (camlidl-1.05.tar.gz) = 100640
|
||||
SHA256 (camlidl-1.05.doc.html.tar.gz) = 00ac7822ec73cb3cb5cb23b5d34879436366d979887eb3a312e1adcae8c1c32c
|
||||
SIZE (camlidl-1.05.doc.html.tar.gz) = 45945
|
14
lang/ocaml-camlidl/pkg-descr
Normal file
14
lang/ocaml-camlidl/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
CamlIDL is a stub code generator and COM binding for Objective Caml.
|
||||
|
||||
CamlIDL comprises two parts:
|
||||
|
||||
* A stub code generator that generates the C stub code required for the
|
||||
Caml/C interface, based on an MIDL specification. (MIDL stands for Microsoft's
|
||||
Interface Description Language; it looks like C header files with some extras
|
||||
annotations, plus a notion of object interfaces that look like C++ classess
|
||||
without inheritance.)
|
||||
|
||||
* A (currently small) library of functions and tools to import COM
|
||||
components in Caml applications, and export Caml code as COM components.
|
||||
|
||||
WWW: http://caml.inria.fr/pub/old_caml_site/camlidl/
|
19
lang/ocaml-camlidl/pkg-plist
Normal file
19
lang/ocaml-camlidl/pkg-plist
Normal file
@ -0,0 +1,19 @@
|
||||
bin/camlidl
|
||||
lib/ocaml/caml/camlidlruntime.h
|
||||
lib/ocaml/com.a
|
||||
lib/ocaml/com.cma
|
||||
lib/ocaml/com.cmi
|
||||
lib/ocaml/com.cmxa
|
||||
lib/ocaml/libcamlidl.a
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/contents_motif.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/index.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main001.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main002.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main003.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main004.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main005.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main006.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/main007.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/next_motif.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlman/previous_motif.gif
|
Loading…
Reference in New Issue
Block a user