mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: Stagify.
2: switch to OCAML_* variables.
This commit is contained in:
parent
41930dfa21
commit
9d04f6211e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361533
@ -11,29 +11,24 @@ PKGNAMEPREFIX= ocaml-
|
|||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= OCaml unit test framework
|
COMMENT= OCaml unit test framework
|
||||||
|
|
||||||
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
|
|
||||||
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
|
|
||||||
|
|
||||||
USES= gmake
|
USES= gmake
|
||||||
|
USE_OCAML= yes
|
||||||
|
USE_OCAML_FINDLIB= yes
|
||||||
|
USE_OCAMLFIND_PLIST= yes
|
||||||
|
OCAML_PKGDIRS= oUnit
|
||||||
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
||||||
PORTDOCS= README style.css *.html
|
|
||||||
|
|
||||||
ALL_TARGET= all allopt testall doc
|
ALL_TARGET= all allopt testall doc
|
||||||
|
|
||||||
MAKE_ENV= OCAMLFIND_DESTDIR=${PREFIX}/lib/ocaml/site-lib
|
MAKE_ENV= OCAMLFIND_DESTDIR=${PREFIX}/lib/ocaml/site-lib
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${ECHO_MSG} "==> Installing port documentation for ${PKGORIGIN}..."
|
@${ECHO_MSG} "==> Installing port documentation for ${PKGORIGIN}..."
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
@( cd ${WRKSRC}; ${INSTALL_DATA} README ${DOCSDIR} )
|
@( cd ${WRKSRC}; ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR} )
|
||||||
@( cd ${WRKSRC}/doc; \
|
@( cd ${WRKSRC}/doc; \
|
||||||
${INSTALL_DATA} style.css ${DOCSDIR}; \
|
${INSTALL_DATA} style.css ${STAGEDIR}${DOCSDIR}; \
|
||||||
for f in `${FIND} . -type f -name \\*.html -print`; do \
|
for f in `${FIND} . -type f -name \\*.html -print`; do \
|
||||||
${INSTALL_DATA} $${f} ${DOCSDIR}; \
|
${INSTALL_DATA} $${f} ${STAGEDIR}${DOCSDIR}; \
|
||||||
done )
|
done )
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
lib/ocaml/site-lib/oUnit/oUnit.a
|
%%PORTDOCS%%%%DOCSDIR%%/OUnit.html
|
||||||
lib/ocaml/site-lib/oUnit/oUnit.cmxa
|
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||||
lib/ocaml/site-lib/oUnit/oUnit.cma
|
%%PORTDOCS%%%%DOCSDIR%%/index.html
|
||||||
lib/ocaml/site-lib/oUnit/oUnit.cmi
|
%%PORTDOCS%%%%DOCSDIR%%/index_attributes.html
|
||||||
lib/ocaml/site-lib/oUnit/oUnit.mli
|
%%PORTDOCS%%%%DOCSDIR%%/index_class_types.html
|
||||||
lib/ocaml/site-lib/oUnit/META
|
%%PORTDOCS%%%%DOCSDIR%%/index_classes.html
|
||||||
@dirrm lib/ocaml/site-lib/oUnit
|
%%PORTDOCS%%%%DOCSDIR%%/index_exceptions.html
|
||||||
@unexec ocamlfind remove oUnit 2> /dev/null || true
|
%%PORTDOCS%%%%DOCSDIR%%/index_methods.html
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/index_module_types.html
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/index_modules.html
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/index_types.html
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/index_values.html
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/style.css
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/type_OUnit.html
|
||||||
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
|
Loading…
Reference in New Issue
Block a user