mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
- Pass down relative ${OCAML_SITELIBDIR}, it is handled correctly
- Respect our ${OCAML_DOCSDIR}, in a somewhat hacking way for now
This commit is contained in:
parent
d787c84c2c
commit
7b1895b5d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504405
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= dune
|
||||
PORTVERSION= 1.10.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
PKGNAMEPREFIX= ocaml-
|
||||
|
||||
@ -19,14 +19,17 @@ USE_OCAML= yes
|
||||
USE_OCAML_FINDLIB= yes
|
||||
|
||||
ALL_TARGET= release
|
||||
MAKE_ENV= LIBDIR="${OCAMLFIND_DESTDIR}"
|
||||
MAKE_ENV= LIBDIR="${OCAML_SITELIBDIR}"
|
||||
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
||||
|
||||
PORTDOCS= CHANGES.md LICENSE.md README.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-install:
|
||||
@${MV} ${STAGEDIR}${PREFIX}/doc/dune ${STAGEDIR}${DOCSDIR}
|
||||
@${RMDIR} ${STAGEDIR}${PREFIX}/doc
|
||||
post-patch:
|
||||
# FreeBSD-specific hack, do not nag upstream (for now)
|
||||
@${REINPLACE_CMD} -e '/let doc_root/ \
|
||||
s:"doc:"${OCAML_DOCSDIR:S,^${PREFIX}/,,}:' \
|
||||
${WRKSRC}/src/install.ml
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user