Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2015 11:58:24 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r385881 - in head/devel/meck: . files
Message-ID:  <201505091158.t49BwOQd046575@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Sat May  9 11:58:23 2015
New Revision: 385881
URL: https://svnweb.freebsd.org/changeset/ports/385881

Log:
  Cleanup.
  
  - Simplify dependencies.
  - Use pkg-plist for the README (remove PORTDOCS).
  - Add support for DOCS.
  - Silence portlint warnings (make makepatch).

Modified:
  head/devel/meck/Makefile
  head/devel/meck/files/patch-Makefile   (contents, props changed)
  head/devel/meck/files/patch-test.config   (contents, props changed)
  head/devel/meck/pkg-plist

Modified: head/devel/meck/Makefile
==============================================================================
--- head/devel/meck/Makefile	Sat May  9 11:58:22 2015	(r385880)
+++ head/devel/meck/Makefile	Sat May  9 11:58:23 2015	(r385881)
@@ -9,9 +9,8 @@ COMMENT=	Erlang library for building moc
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erlc:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
+BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
+RUN_DEPENDS:=	${BUILD_DEPENDS}
 
 PLIST_SUB=	VERSION="${PORTVERSION}"
 
@@ -19,17 +18,17 @@ USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	eproxus
 
-PORTDOCS=	*
-
 .include <bsd.port.options.mk>
 
 do-install:
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/ebin
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/src
+.endif
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
 
 .include <bsd.port.mk>

Modified: head/devel/meck/files/patch-Makefile
==============================================================================
--- head/devel/meck/files/patch-Makefile	Sat May  9 11:58:22 2015	(r385880)
+++ head/devel/meck/files/patch-Makefile	Sat May  9 11:58:23 2015	(r385881)
@@ -1,9 +1,6 @@
-
-$FreeBSD$
-
---- Makefile.orig
+--- Makefile.orig	2014-05-05 09:33:59 UTC
 +++ Makefile
-@@ -18,7 +18,7 @@
+@@ -18,7 +18,7 @@ DIALYZER_INC=$(shell test -d include && 
  .PHONY: all rebuild compile doc clean test dialyzer typer get-deps clean-deps \
  	shell clean-plt clean-doc distclean
  

Modified: head/devel/meck/files/patch-test.config
==============================================================================
--- head/devel/meck/files/patch-test.config	Sat May  9 11:58:22 2015	(r385880)
+++ head/devel/meck/files/patch-test.config	Sat May  9 11:58:23 2015	(r385881)
@@ -1,7 +1,4 @@
-
-$FreeBSD$
-
---- test.config.orig
+--- test.config.orig	2014-05-05 09:33:59 UTC
 +++ test.config
 @@ -1,7 +1,4 @@
  %% Dependencies ===============================================================

Modified: head/devel/meck/pkg-plist
==============================================================================
--- head/devel/meck/pkg-plist	Sat May  9 11:58:22 2015	(r385880)
+++ head/devel/meck/pkg-plist	Sat May  9 11:58:23 2015	(r385881)
@@ -22,3 +22,4 @@ lib/erlang/lib/meck-%%VERSION%%/src/meck
 lib/erlang/lib/meck-%%VERSION%%/src/meck_proc.erl
 lib/erlang/lib/meck-%%VERSION%%/src/meck_ret_spec.erl
 lib/erlang/lib/meck-%%VERSION%%/src/meck_util.erl
+%%PORTDOCS%%%%DOCSDIR%%/README.md



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