Hi,
do-install overrides do not work as expected when overriding
do-install, because ${PREFIX} where ${TRUEPREFIX} should be used to get
the same behavior for overridden do-install targets and the default
do-install target.
Here's the fix:
Index: ocaml.port.mk
===================================================================
RCS file: /cvs/ports/lang/ocaml/ocaml.port.mk,v
retrieving revision 1.16
diff -u -p -r1.16 ocaml.port.mk
--- ocaml.port.mk 21 Dec 2011 21:31:50 -0000 1.16
+++ ocaml.port.mk 25 Jun 2012 09:02:32 -0000
@@ -43,5 +43,5 @@ PKG_ARGS+=-Dnative=0
.endif
BUILD_DEPENDS+= lang/ocaml=${OCAML_VERSION}
-MAKE_ENV+= OCAMLFIND_DESTDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib
+MAKE_ENV+= OCAMLFIND_DESTDIR=${DESTDIR}${TRUEPREFIX}/lib/ocaml/site-lib