Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jan 2014 22:15:28 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341464 - head/textproc/gmetadom
Message-ID:  <201401272215.s0RMFSXK032185@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Mon Jan 27 22:15:27 2014
New Revision: 341464
URL: http://svnweb.freebsd.org/changeset/ports/341464
QAT: https://qat.redports.org/buildarchive/r341464/

Log:
  Convert to staging.
  
  Sponsored by:	Absolight

Modified:
  head/textproc/gmetadom/Makefile
  head/textproc/gmetadom/pkg-plist

Modified: head/textproc/gmetadom/Makefile
==============================================================================
--- head/textproc/gmetadom/Makefile	Mon Jan 27 21:56:04 2014	(r341463)
+++ head/textproc/gmetadom/Makefile	Mon Jan 27 22:15:27 2014	(r341464)
@@ -19,37 +19,15 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	OCAML
+OPTIONS_SUB=	yes
 
 OCAML_DESC=	OCAML language support
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MOCAML}
-BUILD_DEPENDS+=	ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
-		ocamlc:${PORTSDIR}/lang/ocaml
-PLIST_SUB+=	OCAML=""
-.else
-CONFIGURE_ARGS+=	HAVE_OCAMLDEP=no HAVE_OCAMLFIND=no HAVE_OCAMLOPT=no
-PLIST_SUB+=	OCAML="@comment "
-.endif
+OCAML_BUILD_DEPENDS=	ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
+			ocamlc:${PORTSDIR}/lang/ocaml
+OCAML_CONFIGURE_OFF=	HAVE_OCAMLDEP=no HAVE_OCAMLFIND=no HAVE_OCAMLOPT=no
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/-lstdc++//g' ${WRKSRC}/src/gdome_cpp_smart/Makefile.in
 
-# Shim to clean-up a previous bad install - this can be removed
-# PORTVERSION > 0.2.6 along with the associated pkg-plist @exec
-# entries.
-pre-install:
-	@if [ -d ${LOCALBASE}/lib/ocaml/gdome2 ]; then \
-		${RM} -f ${LOCALBASE}/lib/ocaml/gdome2/* 2>/dev/null && \
-		${RMDIR} ${LOCALBASE}/lib/ocaml/gdome2 2>/dev/null; \
-	fi
-	@if [ -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so ]; then \
-		${RM} -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so 2>/dev/null; \
-	fi
-	@if [ -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so.owner ]; then \
-		${RM} -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so.owner 2>/dev/null; \
-	fi
-
 .include <bsd.port.mk>

Modified: head/textproc/gmetadom/pkg-plist
==============================================================================
--- head/textproc/gmetadom/pkg-plist	Mon Jan 27 21:56:04 2014	(r341463)
+++ head/textproc/gmetadom/pkg-plist	Mon Jan 27 22:15:27 2014	(r341464)
@@ -154,6 +154,8 @@ libdata/pkgconfig/gdome2-cpp-smart.pc
 @dirrm include/gmetadom/gdome_cpp_smart
 @dirrm include/gmetadom
 %%OCAML%%@dirrm lib/ocaml/gdome2
+@comment Shim to clean-up a previous bad install - this can be removed
+@comment PORTVERSION > 0.2.6
 @exec if [ -d %D/lib/ocaml/gdome2 ] ; then /bin/rm -f %D/lib/ocaml/gdome2/* 2>/dev/null && /bin/rmdir %D/lib/ocaml/gdome2 2>/dev/null ; fi
 @exec if [ -f %D/lib/ocaml/stublibs/dllmlgdome.so ] ; then /bin/rm -f %D/lib/ocaml/stublibs/dllmlgdome.so 2>/dev/null ; fi
 @exec if [ -f %D/lib/ocaml/stublibs/dllmlgdome.so.owner ] ; then /bin/rm -f %D/lib/ocaml/stublibs/dllmlgdome.so.owner 2>/dev/null ; fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401272215.s0RMFSXK032185>