aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/erlang-epgsql/Makefile18
-rw-r--r--devel/erlang-bbmustache/Makefile28
-rw-r--r--devel/erlang-bear/Makefile22
-rw-r--r--devel/erlang-erlware_commons/Makefile23
-rw-r--r--devel/erlang-folsom/Makefile26
-rw-r--r--devel/erlang-gen_smtp/Makefile18
-rw-r--r--devel/erlang-getopt/Makefile18
-rw-r--r--devel/erlang-goldrush/Makefile17
-rw-r--r--devel/erlang-jobs/Makefile30
-rw-r--r--devel/erlang-jsx/Makefile19
-rw-r--r--devel/erlang-lager/Makefile21
-rw-r--r--devel/erlang-lager_syslog/Makefile19
-rw-r--r--devel/erlang-meck/Makefile16
-rw-r--r--devel/erlang-msgpack/Makefile20
-rw-r--r--devel/erlang-parse_trans/Makefile27
-rw-r--r--devel/erlang-poolboy/Makefile16
-rw-r--r--devel/erlang-protobuffs/Makefile20
-rw-r--r--devel/erlang-providers/Makefile24
-rw-r--r--devel/erlang-rebar3_hex/Makefile33
-rw-r--r--devel/erlang-recon/Makefile23
-rw-r--r--devel/erlang-ssl_verify_hostname/Makefile19
-rw-r--r--devel/erlang-syslog/Makefile20
-rw-r--r--dns/erlang-idna/Makefile15
-rw-r--r--textproc/erlang-edown/Makefile25
-rw-r--r--www/erlang-hackney/Makefile30
-rw-r--r--www/erlang-webmachine/Makefile28
26 files changed, 66 insertions, 509 deletions
diff --git a/databases/erlang-epgsql/Makefile b/databases/erlang-epgsql/Makefile
index d5adfc180c10..bb3bb4d79d57 100644
--- a/databases/erlang-epgsql/Makefile
+++ b/databases/erlang-epgsql/Makefile
@@ -11,23 +11,7 @@ COMMENT= Erlang PostgreSQL Database Client
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>
diff --git a/devel/erlang-bbmustache/Makefile b/devel/erlang-bbmustache/Makefile
index 729728804ad7..4cce40fc010a 100644
--- a/devel/erlang-bbmustache/Makefile
+++ b/devel/erlang-bbmustache/Makefile
@@ -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 Erlang
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>
diff --git a/devel/erlang-bear/Makefile b/devel/erlang-bear/Makefile
index dd0dd52837b0..409b4dc4b58c 100644
--- a/devel/erlang-bear/Makefile
+++ b/devel/erlang-bear/Makefile
@@ -10,28 +10,8 @@ COMMENT= Set of statistics functions for Erlang
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>
diff --git a/devel/erlang-erlware_commons/Makefile b/devel/erlang-erlware_commons/Makefile
index 31e6e2594f63..2ccd208a4029 100644
--- a/devel/erlang-erlware_commons/Makefile
+++ b/devel/erlang-erlware_commons/Makefile
@@ -11,29 +11,8 @@ COMMENT= Erlang project focused on all aspects of reusable components
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>
diff --git a/devel/erlang-folsom/Makefile b/devel/erlang-folsom/Makefile
index 5916d94b30a2..c3f1d08b8f15 100644
--- a/devel/erlang-folsom/Makefile
+++ b/devel/erlang-folsom/Makefile
@@ -10,31 +10,11 @@ COMMENT= Erlang based metrics system inspired by Coda Hale's metrics
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>
diff --git a/devel/erlang-gen_smtp/Makefile b/devel/erlang-gen_smtp/Makefile
index c26ac880829e..59e41be4076e 100644
--- a/devel/erlang-gen_smtp/Makefile
+++ b/devel/erlang-gen_smtp/Makefile
@@ -10,24 +10,8 @@ COMMENT= Extensible SMTP server and client for Erlang
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>
diff --git a/devel/erlang-getopt/Makefile b/devel/erlang-getopt/Makefile
index 9c35bf6e8519..57bcce45d785 100644
--- a/devel/erlang-getopt/Makefile
+++ b/devel/erlang-getopt/Makefile
@@ -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 for Erlang
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>
diff --git a/devel/erlang-goldrush/Makefile b/devel/erlang-goldrush/Makefile
index fac41d7aea1e..afe21e3d58f3 100644
--- a/devel/erlang-goldrush/Makefile
+++ b/devel/erlang-goldrush/Makefile
@@ -10,22 +10,11 @@ COMMENT= Fast event stream processing library for Erlang
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>
diff --git a/devel/erlang-jobs/Makefile b/devel/erlang-jobs/Makefile
index 4a631fef077e..6135eb91afa5 100644
--- a/devel/erlang-jobs/Makefile
+++ b/devel/erlang-jobs/Makefile
@@ -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>
diff --git a/devel/erlang-jsx/Makefile b/devel/erlang-jsx/Makefile
index 4067c33a94c7..99cc6a30954b 100644
--- a/devel/erlang-jsx/Makefile
+++ b/devel/erlang-jsx/Makefile
@@ -11,25 +11,8 @@ COMMENT= Erlang application for consuming, producing and manipulating JSON
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>
diff --git a/devel/erlang-lager/Makefile b/devel/erlang-lager/Makefile
index 07a6af9c5e41..3d8656130c47 100644
--- a/devel/erlang-lager/Makefile
+++ b/devel/erlang-lager/Makefile
@@ -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>
diff --git a/devel/erlang-lager_syslog/Makefile b/devel/erlang-lager_syslog/Makefile
index 96719d0b2bf4..8652e433ff45 100644
--- a/devel/erlang-lager_syslog/Makefile
+++ b/devel/erlang-lager_syslog/Makefile
@@ -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>
diff --git a/devel/erlang-meck/Makefile b/devel/erlang-meck/Makefile
index 085622bbaaec..d00d40bea61a 100644
--- a/devel/erlang-meck/Makefile
+++ b/devel/erlang-meck/Makefile
@@ -10,22 +10,8 @@ COMMENT= Erlang library for building mock modules
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>
diff --git a/devel/erlang-msgpack/Makefile b/devel/erlang-msgpack/Makefile
index 0c0b5f4a7341..3a4f82614d71 100644
--- a/devel/erlang-msgpack/Makefile
+++ b/devel/erlang-msgpack/Makefile
@@ -11,27 +11,9 @@ COMMENT= MessagePack (de)serializer for Erlang
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>
diff --git a/devel/erlang-parse_trans/Makefile b/devel/erlang-parse_trans/Makefile
index e3bea723f364..feea4abe717d 100644
--- a/devel/erlang-parse_trans/Makefile
+++ b/devel/erlang-parse_trans/Makefile
@@ -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>
diff --git a/devel/erlang-poolboy/Makefile b/devel/erlang-poolboy/Makefile
index 57ec6866408b..7b020a6ed7a9 100644
--- a/devel/erlang-poolboy/Makefile
+++ b/devel/erlang-poolboy/Makefile
@@ -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>
diff --git a/devel/erlang-protobuffs/Makefile b/devel/erlang-protobuffs/Makefile
index a7e4a41464af..fdd3447d9199 100644
--- a/devel/erlang-protobuffs/Makefile
+++ b/devel/erlang-protobuffs/Makefile
@@ -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>
diff --git a/devel/erlang-providers/Makefile b/devel/erlang-providers/Makefile
index f30bc43e2ef2..4ccfac82db60 100644
--- a/devel/erlang-providers/Makefile
+++ b/devel/erlang-providers/Makefile
@@ -10,29 +10,11 @@ COMMENT= Erlang providers library used by relx
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>
diff --git a/devel/erlang-rebar3_hex/Makefile b/devel/erlang-rebar3_hex/Makefile
index 2d1683f4ec6c..1ecb82ed6d60 100644
--- a/devel/erlang-rebar3_hex/Makefile
+++ b/devel/erlang-rebar3_hex/Makefile
@@ -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>
diff --git a/devel/erlang-recon/Makefile b/devel/erlang-recon/Makefile
index 69e236209aba..25dceecd3901 100644
--- a/devel/erlang-recon/Makefile
+++ b/devel/erlang-recon/Makefile
@@ -10,31 +10,18 @@ COMMENT= Collection of functions and scripts to debug Erlang in production
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>
diff --git a/devel/erlang-ssl_verify_hostname/Makefile b/devel/erlang-ssl_verify_hostname/Makefile
index 147ebf2350b4..61917c071e27 100644
--- a/devel/erlang-ssl_verify_hostname/Makefile
+++ b/devel/erlang-ssl_verify_hostname/Makefile
@@ -10,26 +10,9 @@ COMMENT= Erlang library for certificate hostname validation
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>
diff --git a/devel/erlang-syslog/Makefile b/devel/erlang-syslog/Makefile
index 97f0f55d75bb..91f372d96d86 100644
--- a/devel/erlang-syslog/Makefile
+++ b/devel/erlang-syslog/Makefile
@@ -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>
diff --git a/dns/erlang-idna/Makefile b/dns/erlang-idna/Makefile
index ecface067f36..6bcf06f20bfc 100644
--- a/dns/erlang-idna/Makefile
+++ b/dns/erlang-idna/Makefile
@@ -10,22 +10,9 @@ COMMENT= IDNA implementation in pure Erlang
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>
diff --git a/textproc/erlang-edown/Makefile b/textproc/erlang-edown/Makefile
index 1fa354b7d810..35db02323d55 100644
--- a/textproc/erlang-edown/Makefile
+++ b/textproc/erlang-edown/Makefile
@@ -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>
diff --git a/www/erlang-hackney/Makefile b/www/erlang-hackney/Makefile
index 7958b1786b3d..68ddabddd541 100644
--- a/www/erlang-hackney/Makefile
+++ b/www/erlang-hackney/Makefile
@@ -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>
diff --git a/www/erlang-webmachine/Makefile b/www/erlang-webmachine/Makefile
index e424fab40b13..f8c2cbb34d65 100644
--- a/www/erlang-webmachine/Makefile
+++ b/www/erlang-webmachine/Makefile
@@ -10,35 +10,15 @@ COMMENT= HTTP semantic awareness on top mochiweb
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>