From 4cef51f686462a112ecb614312f7b4dee0d132d0 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Wed, 26 Mar 2014 20:18:38 +0000 Subject: [PATCH] Stage support --- archivers/ocaml-bz2/Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/archivers/ocaml-bz2/Makefile b/archivers/ocaml-bz2/Makefile index 365a48bc2d0f..2c46bbcd9315 100644 --- a/archivers/ocaml-bz2/Makefile +++ b/archivers/ocaml-bz2/Makefile @@ -12,10 +12,9 @@ DISTNAME= caml${PORTNAME}-${PORTVERSION} MAINTAINER= jaapb@kerguelen.org COMMENT= OCaml library to manipulate bz2 files +DESTDIRNAME= DONTUSEIT GNU_CONFIGURE= yes USES= gmake -NO_STAGE= yes - USE_OCAML= yes USE_OCAML_LDCONFIG= yes USE_OCAML_WASH= yes @@ -23,14 +22,13 @@ USE_OCAML_FINDLIB= yes USE_OCAMLFIND_PLIST= yes PORTDOCS= * +DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} -.include +OPTIONS_DEFINE= DOCS post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}) -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) -.include +.include