diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-09 09:59:22 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-09 09:59:22 +0800 |
commit | 745f259df50bc3b4bf05d6a9a2cca784a5ce46d0 (patch) | |
tree | 27a6d696096d5d70f22db80ab19e99ba936596c2 /devel/ocaml-ounit | |
parent | 970145e00efdda948cf3854bcd76f4694fb0e53d (diff) | |
download | freebsd-ports-graphics-745f259df50bc3b4bf05d6a9a2cca784a5ce46d0.tar.gz freebsd-ports-graphics-745f259df50bc3b4bf05d6a9a2cca784a5ce46d0.tar.zst freebsd-ports-graphics-745f259df50bc3b4bf05d6a9a2cca784a5ce46d0.zip |
- Add LICENSE
- Switch to options helpers
Diffstat (limited to 'devel/ocaml-ounit')
-rw-r--r-- | devel/ocaml-ounit/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/devel/ocaml-ounit/Makefile b/devel/ocaml-ounit/Makefile index c95232a12af..fd2b8394fa4 100644 --- a/devel/ocaml-ounit/Makefile +++ b/devel/ocaml-ounit/Makefile @@ -11,24 +11,26 @@ PKGNAMEPREFIX= ocaml- MAINTAINER= ports@FreeBSD.org COMMENT= OCaml unit test framework +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENCE + USES= gmake USE_OCAML= yes USE_OCAML_FINDLIB= yes USE_OCAMLFIND_PLIST= yes OCAML_PKGDIRS= oUnit -DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} ALL_TARGET= all allopt testall doc MAKE_ENV= OCAMLFIND_DESTDIR=${PREFIX}/lib/ocaml/site-lib + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} + OPTIONS_DEFINE= DOCS -post-install: - @${ECHO_MSG} "==> Installing port documentation for ${PKGORIGIN}..." +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - @( cd ${WRKSRC}; ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR} ) - @( cd ${WRKSRC}/doc; \ - ${INSTALL_DATA} style.css ${STAGEDIR}${DOCSDIR}; \ - for f in `${FIND} . -type f -name \\*.html -print`; do \ - ${INSTALL_DATA} $${f} ${STAGEDIR}${DOCSDIR}; \ - done ) + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/style.css ${STAGEDIR}${DOCSDIR} + ${FIND} ${WRKSRC}/doc -type f -name "*.html" -exec \ + ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR} \; .include <bsd.port.mk> |