1
0
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:
Vanilla I. Shu 2014-07-11 13:47:03 +00:00
parent 41930dfa21
commit 9d04f6211e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361533
2 changed files with 24 additions and 22 deletions

View File

@ -11,29 +11,24 @@ PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= OCaml unit test framework
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
USES= gmake
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAMLFIND_PLIST= yes
OCAML_PKGDIRS= oUnit
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= README style.css *.html
ALL_TARGET= all allopt testall doc
MAKE_ENV= OCAMLFIND_DESTDIR=${PREFIX}/lib/ocaml/site-lib
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "==> Installing port documentation for ${PKGORIGIN}..."
@${MKDIR} ${DOCSDIR}
@( cd ${WRKSRC}; ${INSTALL_DATA} README ${DOCSDIR} )
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@( cd ${WRKSRC}; ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR} )
@( cd ${WRKSRC}/doc; \
${INSTALL_DATA} style.css ${DOCSDIR}; \
${INSTALL_DATA} style.css ${STAGEDIR}${DOCSDIR}; \
for f in `${FIND} . -type f -name \\*.html -print`; do \
${INSTALL_DATA} $${f} ${DOCSDIR}; \
${INSTALL_DATA} $${f} ${STAGEDIR}${DOCSDIR}; \
done )
.endif
.include <bsd.port.mk>

View File

@ -1,8 +1,15 @@
lib/ocaml/site-lib/oUnit/oUnit.a
lib/ocaml/site-lib/oUnit/oUnit.cmxa
lib/ocaml/site-lib/oUnit/oUnit.cma
lib/ocaml/site-lib/oUnit/oUnit.cmi
lib/ocaml/site-lib/oUnit/oUnit.mli
lib/ocaml/site-lib/oUnit/META
@dirrm lib/ocaml/site-lib/oUnit
@unexec ocamlfind remove oUnit 2> /dev/null || true
%%PORTDOCS%%%%DOCSDIR%%/OUnit.html
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/index_attributes.html
%%PORTDOCS%%%%DOCSDIR%%/index_class_types.html
%%PORTDOCS%%%%DOCSDIR%%/index_classes.html
%%PORTDOCS%%%%DOCSDIR%%/index_exceptions.html
%%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%%