Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2014 22:36:46 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349302 - head/security/ocaml-cryptgps
Message-ID:  <201403262236.s2QMakLt025185@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Wed Mar 26 22:36:46 2014
New Revision: 349302
URL: http://svnweb.freebsd.org/changeset/ports/349302
QAT: https://qat.redports.org/buildarchive/r349302/

Log:
  - Stage support
  - Use USE_OCAMLFIND_PLIST instead of doing it manually

Modified:
  head/security/ocaml-cryptgps/Makefile

Modified: head/security/ocaml-cryptgps/Makefile
==============================================================================
--- head/security/ocaml-cryptgps/Makefile	Wed Mar 26 22:06:38 2014	(r349301)
+++ head/security/ocaml-cryptgps/Makefile	Wed Mar 26 22:36:46 2014	(r349302)
@@ -14,36 +14,20 @@ COMMENT=	Symmetric cryptographic algorit
 LICENSE=	MIT
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
-USE_GMAKE=	yes
+USES=		gmake
 USE_OCAML=	yes
-USE_OCAML_FINDLIB=yes
+USE_OCAML_FINDLIB=	yes
+USE_OCAMLFIND_PLIST=	yes
 
 ALL_TARGET=	all opt
-MASTERPORT=	${PORTSDIR}/devel/ocaml-camlidl
 
-.if !defined(NOPORTDOCS)
 PORTDOCS=	*
-DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
-.endif
+DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-post-extract:
-# For nonstandard prefixes
-.if !exists(${OCAMLFIND_DESTDIR})
-	${MKDIR} ${OCAMLFIND_DESTDIR}
-.endif
-.if !exists(${OCAMLFIND_LDCONF})
-	${TOUCH} ${OCAMLFIND_LDCONF}
-.endif
+OPTIONS_DEFINE=	DOCS
 
 post-install:
-	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
-		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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