Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 2015 22:27:18 +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: r391483 - in head: databases/erlang-epgsql devel/erlang-bbmustache devel/erlang-bear devel/erlang-erlware_commons devel/erlang-folsom devel/erlang-gen_smtp devel/erlang-getopt devel/erl...
Message-ID:  <201507062227.t66MRIH1036277@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Mon Jul  6 22:27:17 2015
New Revision: 391483
URL: https://svnweb.freebsd.org/changeset/ports/391483

Log:
  Update most of the Erlang ports to use erlang.mk.
  
  These do not require a PORTREVISION bump.

Modified:
  head/databases/erlang-epgsql/Makefile
  head/devel/erlang-bbmustache/Makefile
  head/devel/erlang-bear/Makefile
  head/devel/erlang-erlware_commons/Makefile
  head/devel/erlang-folsom/Makefile
  head/devel/erlang-gen_smtp/Makefile
  head/devel/erlang-getopt/Makefile
  head/devel/erlang-goldrush/Makefile
  head/devel/erlang-jobs/Makefile
  head/devel/erlang-jsx/Makefile
  head/devel/erlang-lager/Makefile
  head/devel/erlang-lager_syslog/Makefile
  head/devel/erlang-meck/Makefile
  head/devel/erlang-msgpack/Makefile
  head/devel/erlang-parse_trans/Makefile
  head/devel/erlang-poolboy/Makefile
  head/devel/erlang-protobuffs/Makefile
  head/devel/erlang-providers/Makefile
  head/devel/erlang-rebar3_hex/Makefile
  head/devel/erlang-recon/Makefile
  head/devel/erlang-ssl_verify_hostname/Makefile
  head/devel/erlang-syslog/Makefile
  head/dns/erlang-idna/Makefile
  head/textproc/erlang-edown/Makefile
  head/www/erlang-hackney/Makefile
  head/www/erlang-webmachine/Makefile

Modified: head/databases/erlang-epgsql/Makefile
==============================================================================
--- head/databases/erlang-epgsql/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/databases/erlang-epgsql/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -11,23 +11,7 @@ COMMENT=	Erlang PostgreSQL Database Clie
 
 LICENSE=	BSD3CLAUSE
 
-BUILD_DEPENDS=	erlc:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-
 .include <bsd.port.mk>

Modified: head/devel/erlang-bbmustache/Makefile
==============================================================================
--- head/devel/erlang-bbmustache/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-bbmustache/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -2,7 +2,7 @@
 
 PORTNAME=	bbmustache
 PORTVERSION=	1.0.3
-DISTVERSIONPREFIX=v
+DISTVERSIONPREFIX=	v
 CATEGORIES=	devel
 PKGNAMEPREFIX=	erlang-
 
@@ -11,32 +11,8 @@ COMMENT=	Mustache template engine for Er
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar3
 USE_GITHUB=	yes
 GH_ACCOUNT=	soranoba
 
-ALL_TARGET=	compile
-
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-pre-build:
-	@${RM} ${WRKSRC}/rebar.lock
-
-post-build:
-	@${LN} -s ${WRKSRC}/_build/dev/lib/${PORTNAME}/ebin ${WRKSRC}
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-bear/Makefile
==============================================================================
--- head/devel/erlang-bear/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-bear/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,28 +10,8 @@ COMMENT=	Set of statistics functions for
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
-USES=		gmake
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	boundary
 
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-do-build:
-	@cd ${WRKSRC} && ./rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-erlware_commons/Makefile
==============================================================================
--- head/devel/erlang-erlware_commons/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-erlware_commons/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -11,29 +11,8 @@ COMMENT=	Erlang project focused on all a
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	erlware
 
-do-build:
-	@cd ${WRKSRC} && rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/priv/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-
 .include <bsd.port.mk>

Modified: head/devel/erlang-folsom/Makefile
==============================================================================
--- head/devel/erlang-folsom/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-folsom/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,31 +10,11 @@ COMMENT=	Erlang based metrics system ins
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		erlang-bear>=0.8.2:${PORTSDIR}/devel/erlang-bear
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
-USES=		gmake
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	boundary
 
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-do-build:
-	@cd ${WRKSRC} && ./rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ERL_BUILD_DEPS=	devel/erlang-bear
+ERL_RUN_DEPS:=	${ERL_BUILD_DEPS}
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-gen_smtp/Makefile
==============================================================================
--- head/devel/erlang-gen_smtp/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-gen_smtp/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,24 +10,8 @@ COMMENT=	Extensible SMTP server and clie
 
 LICENSE=	BSD2CLAUSE
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	Vagabond
 
-do-build:
-	cd ${WRKSRC} && ./rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-getopt/Makefile
==============================================================================
--- head/devel/erlang-getopt/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-getopt/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -2,7 +2,7 @@
 
 PORTNAME=	getopt
 PORTVERSION=	0.8.2
-DISTVERSIONPREFIX=v
+DISTVERSIONPREFIX=	v
 CATEGORIES=	devel
 PKGNAMEPREFIX=	erlang-
 
@@ -11,22 +11,8 @@ COMMENT=	Command line parsing library fo
 
 LICENSE=	BSD3CLAUSE
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
-USES=		gmake
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	jcomellas
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-goldrush/Makefile
==============================================================================
--- head/devel/erlang-goldrush/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-goldrush/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,22 +10,11 @@ COMMENT=	Fast event stream processing li
 
 LICENSE=	ISCL
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	DeadZen
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.org ${STAGEDIR}${DOCSDIR}
-	@${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
+post-build:
+	@${RM} -r ${WRKSRC}/priv
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-jobs/Makefile
==============================================================================
--- head/devel/erlang-jobs/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-jobs/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -9,34 +9,16 @@ PKGNAMEPREFIX=	erlang-
 MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	Job scheduler and load regulation for Erlang
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar \
-		erlang-parse_trans>=0:${PORTSDIR}/devel/erlang-parse_trans
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	uwiger
 
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-do-build:
-	@cd ${WRKSRC} && rebar compile
+ERL_BUILD_DEPS=	devel/erlang-parse_trans
+ERL_RUN_DEPS:=	${ERL_BUILD_DEPS}
+ERL_DOCS=	doc/*
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
+post-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
-	@${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}/include
-	@${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
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
+	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-jsx/Makefile
==============================================================================
--- head/devel/erlang-jsx/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-jsx/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -11,25 +11,8 @@ COMMENT=	Erlang application for consumin
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	talentdeficit
 
-do-build:
-	@cd ${WRKSRC} && rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-lager/Makefile
==============================================================================
--- head/devel/erlang-lager/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-lager/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,24 +10,13 @@ COMMENT=	Logging framework for Erlang
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		erlang-goldrush>=0.1.6:${PORTSDIR}/devel/erlang-goldrush
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	basho
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ERL_RUN_DEPS=	devel/erlang-goldrush
+
+post-build:
+	@${RM} -r ${WRKSRC}/priv
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-lager_syslog/Makefile
==============================================================================
--- head/devel/erlang-lager_syslog/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-lager_syslog/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,23 +10,12 @@ COMMENT=	Syslog backend for Lager
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		erlang-lager>=2.1.1:${PORTSDIR}/devel/erlang-lager \
-		erlang-syslog>=1.0.3:${PORTSDIR}/devel/erlang-syslog
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	basho
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.org ${STAGEDIR}${DOCSDIR}
-	@${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
+ERL_BUILD_DEPS=	devel/erlang-lager \
+		devel/erlang-syslog
+RUN_DEPENDS:=	${BUILD_DEPENDS}
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-meck/Makefile
==============================================================================
--- head/devel/erlang-meck/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-meck/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,22 +10,8 @@ COMMENT=	Erlang library for building moc
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
-USES=		gmake
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	eproxus
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-msgpack/Makefile
==============================================================================
--- head/devel/erlang-msgpack/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-msgpack/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -11,27 +11,9 @@ COMMENT=	MessagePack (de)serializer for 
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	msgpack
 GH_PROJECT=	msgpack-erlang
 
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-
 .include <bsd.port.mk>

Modified: head/devel/erlang-parse_trans/Makefile
==============================================================================
--- head/devel/erlang-parse_trans/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-parse_trans/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -8,33 +8,14 @@ PKGNAMEPREFIX=	erlang-
 MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	Parse transform utilities for Erlang
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	uwiger
 
-post-patch:
-	@${RM} ${WRKSRC}/src/*.orig
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-do-build:
-	@cd ${WRKSRC} && ./rebar compile
+ERL_DOCS=	doc/*
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
+post-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
-	@${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}/include
-	@${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
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
+	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-poolboy/Makefile
==============================================================================
--- head/devel/erlang-poolboy/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-poolboy/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -11,22 +11,8 @@ COMMENT=	Pooling library for Erlang
 
 LICENSE=	ISCL
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
-USES=		gmake
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	devinus
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-protobuffs/Makefile
==============================================================================
--- head/devel/erlang-protobuffs/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-protobuffs/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -9,27 +9,9 @@ PKGNAMEPREFIX=	erlang-
 MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	Protocol Buffers interface for Erlang
 
-BUILD_DEPENDS=	erlc:${PORTSDIR}/lang/erlang
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	basho
 GH_PROJECT=	erlang_protobuffs
 
-.include <bsd.port.options.mk>
-
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-providers/Makefile
==============================================================================
--- head/devel/erlang-providers/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-providers/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,29 +10,11 @@ COMMENT=	Erlang providers library used b
 
 LICENSE=	LGPL3
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar \
-		erlang-getopt>=0:${PORTSDIR}/devel/erlang-getopt
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		erlang-getopt>=0:${PORTSDIR}/devel/erlang-getopt
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	tsloughter
 
-do-build:
-	@cd ${WRKSRC} && rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ERL_BUILD_DEPS=	devel/erlang-getopt
+ERL_RUN_DEPS:=	${ERL_BUILD_DEPS}
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-rebar3_hex/Makefile
==============================================================================
--- head/devel/erlang-rebar3_hex/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-rebar3_hex/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -11,35 +11,14 @@ COMMENT=	Rebar3 Hex library
 
 LICENSE=	BSD3CLAUSE
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar \
-		erlang-erlware_commons>=0:${PORTSDIR}/devel/erlang-erlware_commons \
-		erlang-ssl_verify_hostname>=0:${PORTSDIR}/devel/erlang-ssl_verify_hostname \
-		erlang-jsx>=0:${PORTSDIR}/devel/erlang-jsx \
-		erlang-providers>=0:${PORTSDIR}/devel/erlang-providers
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		erlang-erlware_commons>=0:${PORTSDIR}/devel/erlang-erlware_commons \
-		erlang-ssl_verify_hostname>=0:${PORTSDIR}/devel/erlang-ssl_verify_hostname \
-		erlang-jsx>=0:${PORTSDIR}/devel/erlang-jsx \
-		erlang-providers>=0:${PORTSDIR}/devel/erlang-providers
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	hexpm
 
-do-build:
-	@cd ${WRKSRC} && rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/priv
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/priv/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ERL_BUILD_DEPS=	devel/erlang-erlware_commons \
+		devel/erlang-jsx \
+		devel/erlang-providers \
+		devel/erlang-ssl_verify_hostname
+ERL_RUN_DEPS:=	${ERL_BUILD_DEPS}
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-recon/Makefile
==============================================================================
--- head/devel/erlang-recon/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-recon/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,31 +10,18 @@ COMMENT=	Collection of functions and scr
 
 LICENSE=	BSD3CLAUSE
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	ferd
 
-post-patch:
-	@${REINPLACE_CMD} -i '' -e "s@%%LOCALBASE%%@${LOCALBASE}@" ${WRKSRC}/script/app_deps.erl
+ERL_DOCS=	README.md doc/*
+REBAR_TARGETS=	compile doc
 
-do-build:
-	@cd ${WRKSRC} && ./rebar compile doc
+post-build:
 	@${RM} ${WRKSRC}/doc/packages-frame.html
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+post-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/script
-	@${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
 	${INSTALL_DATA} ${WRKSRC}/script/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/script
 
 .include <bsd.port.mk>

Modified: head/devel/erlang-ssl_verify_hostname/Makefile
==============================================================================
--- head/devel/erlang-ssl_verify_hostname/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-ssl_verify_hostname/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,26 +10,9 @@ COMMENT=	Erlang library for certificate 
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		rebar:${PORTSDIR}/devel/rebar
-RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	deadtrickster
 GH_PROJECT=	ssl_verify_hostname.erl
 
-do-build:
-	@cd ${WRKSRC} && rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/erlang-syslog/Makefile
==============================================================================
--- head/devel/erlang-syslog/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/devel/erlang-syslog/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -8,27 +8,9 @@ PKGNAMEPREFIX=	erlang-
 MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	Erlang port driver for interacting with syslog
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	Vagabond
 GH_PROJECT=	${PKGNAMEPREFIX}${PORTNAME}
 
-do-build:
-	cd ${WRKSRC} && ./rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/priv
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/priv/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-
 .include <bsd.port.mk>

Modified: head/dns/erlang-idna/Makefile
==============================================================================
--- head/dns/erlang-idna/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/dns/erlang-idna/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,22 +10,9 @@ COMMENT=	IDNA implementation in pure Erl
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	benoitc
 GH_PROJECT=	${PKGNAMEPREFIX}${PORTNAME}
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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/textproc/erlang-edown/Makefile
==============================================================================
--- head/textproc/erlang-edown/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/textproc/erlang-edown/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -8,31 +8,10 @@ PKGNAMEPREFIX=	erlang-
 MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	EDoc extension for generating Github-flavored Markdown
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar
 USE_GITHUB=	yes
 GH_ACCOUNT=	uwiger
 
-post-patch:
-	@${RM} ${WRKSRC}/src/*.orig
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-
-do-build:
-	@cd ${WRKSRC} && ./rebar compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
-	@${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
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	cd ${WRKSRC}/priv && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
+ERL_DOCS=	doc/*
 
 .include <bsd.port.mk>

Modified: head/www/erlang-hackney/Makefile
==============================================================================
--- head/www/erlang-hackney/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/www/erlang-hackney/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,38 +10,18 @@ COMMENT=	Simple HTTP client in Erlang
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		erlang-idna>=0:${PORTSDIR}/dns/erlang-idna \
-		erlang-ssl_verify_hostname>=0:${PORTSDIR}/devel/erlang-ssl_verify_hostname
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=	VERSION="${PORTVERSION}"
-
+USES=		erlang:rebar3
 USE_GITHUB=	yes
 GH_ACCOUNT=	benoitc
 
+ERL_BUILD_DEPS=	dns/erlang-idna \
+		devel/erlang-ssl_verify_hostname
+ERL_RUN_DEPS:=	${ERL_BUILD_DEPS}
+
 pre-build:
-	@${LN} -s ${WRKSRC}/_build/default/lib/${PORTNAME}/ebin ${WRKSRC}
 	@${MKDIR} ${WRKSRC}/_build/default/lib
 .for lib in idna ssl_verify_hostname
 	@${LN} -s ${PREFIX}/lib/erlang/lib/${lib}-* ${WRKSRC}/_build/default/lib/${lib}
 .endfor
 
-do-build:
-	@${RM} ${WRKSRC}/rebar.lock
-	@cd ${WRKSRC} && ./rebar3 compile
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/priv/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	cd ${WRKSRC}/src && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-
 .include <bsd.port.mk>

Modified: head/www/erlang-webmachine/Makefile
==============================================================================
--- head/www/erlang-webmachine/Makefile	Mon Jul  6 22:08:57 2015	(r391482)
+++ head/www/erlang-webmachine/Makefile	Mon Jul  6 22:27:17 2015	(r391483)
@@ -10,35 +10,15 @@ COMMENT=	HTTP semantic awareness on top 
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	erl:${PORTSDIR}/lang/erlang \
-		erlang-mochiweb-basho>=2.9.0p1:${PORTSDIR}/www/erlang-mochiweb-basho
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
-PLIST_SUB=      VERSION="${PORTVERSION}"
-
-USES=		gmake
+USES=		erlang:rebar
 USE_GITHUB=     yes
 GH_ACCOUNT=     basho
 
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
-	@${RM} ${WRKSRC}/demo/priv/www/uploads/.gitignore
+ERL_BUILD_DEPS=	www/erlang-mochiweb-basho
+ERL_RUN_DEPS:=	${ERL_BUILD_DEPS}
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	for FILE in README.org; do \
-		${INSTALL_DATA} ${WRKSRC}/$${FILE} ${STAGEDIR}${DOCSDIR}; \
-	done
+post-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	cd ${WRKSRC}/demo && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
-	@${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}/include
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
-	${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
-	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
-	cd ${WRKSRC}/priv && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
 
 .include <bsd.port.mk>



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