diff options
author | olgeni <olgeni@FreeBSD.org> | 2015-07-06 22:27:17 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2015-07-06 22:27:17 +0000 |
commit | b7344f042db02d5c13735cbc7bb1ebf863b1d19b (patch) | |
tree | 8b590048db59196d48712afbd86344d32bdee72b | |
parent | 6de78d6fa3b32b7cac69683bd0daa717fb42bae1 (diff) | |
download | FreeBSD-ports-b7344f042db02d5c13735cbc7bb1ebf863b1d19b.zip FreeBSD-ports-b7344f042db02d5c13735cbc7bb1ebf863b1d19b.tar.gz |
Update most of the Erlang ports to use erlang.mk.
These do not require a PORTREVISION bump.
26 files changed, 66 insertions, 509 deletions
diff --git a/databases/erlang-epgsql/Makefile b/databases/erlang-epgsql/Makefile index d5adfc1..bb3bb4d 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 7297288..4cce40fc 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 dd0dd52..409b4dc 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 31e6e25..2ccd208 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 5916d94..c3f1d08 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 c26ac880..59e41be 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 9c35bf6..57bcce4 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 fac41d7..afe21e3 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 4a631fe..6135eb9 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 4067c33..99cc6a3 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 07a6af9..3d86561 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 96719d0..8652e43 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 085622b..d00d40b 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 0c0b5f4..3a4f826 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 e3bea72..feea4ab 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 57ec686..7b020a6 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 a7e4a41..fdd3447 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 f30bc43..4ccfac8 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 2d1683f..1ecb82e 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 69e2362..25dceec 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 147ebf2..61917c0 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 97f0f55..91f372d 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 ecface0..6bcf06f 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 1fa354b..35db023 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 7958b17..68ddabd 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 e424fab..f8c2cbb 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> |