tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Small print-PLIST improvement for OCaml modules



Hello,

I have a small modification for mk/ocaml.mk to change
"make print-PLIST" print ${OCAML_SITELIB}.

Can I commit this?

--- ocaml.mk	27 Oct 2014 11:58:36 -0000	1.3
+++ ocaml.mk	19 Apr 2015 02:55:49 -0000
@@ -85,6 +85,10 @@
 MAKE_ENV+=	OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
 PLIST_SUBST+=	OCAML_SITELIB="${OCAML_SITELIBDIR}"
 
+PRINT_PLIST_AWK+=	{ gsub(/${OCAML_SITELIBDIR:S|/|\\/|g}/, \
+			"$${OCAML_SITELIB}"); \
+			print; next; }
+
 .if ${OCAML_USE_FINDLIB} == "yes"
 .include "../../devel/ocaml-findlib/buildlink3.mk"
 INSTALLATION_DIRS+=	${OCAML_SITELIBDIR}


# Before this patch

% cd devel/ocaml-type_conv
% make print-PLIST
@comment $NetBSD$
lib/ocaml/site-lib/type_conv/META
lib/ocaml/site-lib/type_conv/pa_type_conv.a
lib/ocaml/site-lib/type_conv/pa_type_conv.cma
lib/ocaml/site-lib/type_conv/pa_type_conv.cmi
lib/ocaml/site-lib/type_conv/pa_type_conv.cmx
lib/ocaml/site-lib/type_conv/pa_type_conv.cmxa
lib/ocaml/site-lib/type_conv/pa_type_conv.cmxs
lib/ocaml/site-lib/type_conv/pa_type_conv.mli

# After

% make print-PLIST
@comment $NetBSD$
${OCAML_SITELIB}/type_conv/META
${OCAML_SITELIB}/type_conv/pa_type_conv.a
${OCAML_SITELIB}/type_conv/pa_type_conv.cma
${OCAML_SITELIB}/type_conv/pa_type_conv.cmi
${OCAML_SITELIB}/type_conv/pa_type_conv.cmx
${OCAML_SITELIB}/type_conv/pa_type_conv.cmxa
${OCAML_SITELIB}/type_conv/pa_type_conv.cmxs
${OCAML_SITELIB}/type_conv/pa_type_conv.mli

Kind regards,
HIRAMATSU, Yoshifumi


Home | Main Index | Thread Index | Old Index