Index: head/devel/relx/Makefile =================================================================== --- head/devel/relx/Makefile (revision 391722) +++ head/devel/relx/Makefile (revision 391723) @@ -1,75 +1,78 @@ # $FreeBSD$ PORTNAME= relx PORTVERSION= 3.3.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES+= http://olgeni.olgeni.com/~olgeni/distfiles/:deps \ LOCAL/olgeni:deps DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ relx-cache-4.tar.gz:deps MAINTAINER= olgeni@FreeBSD.org COMMENT= Sane, simple release creation for Erlang LICENSE= APACHE20 BUILD_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang \ rebar3>=0:${PORTSDIR}/devel/rebar3 \ erlang-bbmustache>=0:${PORTSDIR}/devel/erlang-bbmustache \ erlang-erlware_commons>=0:${PORTSDIR}/devel/erlang-erlware_commons \ erlang-getopt>=0:${PORTSDIR}/devel/erlang-getopt \ erlang-providers>=0:${PORTSDIR}/devel/erlang-providers \ erlang-jsx>=0:${PORTSDIR}/devel/erlang-jsx \ erlang-rebar3_hex>=0:${PORTSDIR}/devel/erlang-rebar3_hex \ erlang-ssl_verify_hostname>=0:${PORTSDIR}/devel/erlang-ssl_verify_hostname RUN_DEPENDS:= ${BUILD_DEPENDS} PLIST_SUB= VERSION="${PORTVERSION}" # Use either erlware or tsloughter, depending on who actually # published the package on hex.pm USE_GITHUB= yes GH_ACCOUNT= erlware # rebar3 insists on downloading dependencies, and some kind of package # index into the user's HOME. We need to trick it into behaving by # providing both before building. post-extract: @${LN} -s cache ${WRKDIR}/.cache pre-build: @${MKDIR} ${WRKSRC}/_build/default/lib @${MKDIR} ${WRKSRC}/_build/default/plugins .for lib in bbmustache erlware_commons getopt providers @${LN} -s ${PREFIX}/lib/erlang/lib/${lib}-* ${WRKSRC}/_build/default/lib/${lib} .endfor .for plugin in jsx rebar3_hex ssl_verify_hostname @${LN} -s ${PREFIX}/lib/erlang/lib/${plugin}-* ${WRKSRC}/_build/default/plugins/${plugin} .endfor do-build: @${RM} ${WRKSRC}/rebar.lock @cd ${WRKSRC} && HOME=${WRKDIR} rebar3 compile @${RM} ${WRKSRC}/rebar.lock @cd ${WRKSRC} && HOME=${WRKDIR} rebar3 escriptize 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}/include @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src ${INSTALL_DATA} ${WRKSRC}/_build/default/lib/relx/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin cd ${WRKSRC}/priv && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv ${INSTALL_SCRIPT} ${WRKSRC}/_build/default/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include Index: head/devel/relx/pkg-plist =================================================================== --- head/devel/relx/pkg-plist (revision 391722) +++ head/devel/relx/pkg-plist (revision 391723) @@ -1,60 +1,62 @@ bin/relx lib/erlang/lib/relx-%%VERSION%%/ebin/relx.app lib/erlang/lib/relx-%%VERSION%%/ebin/relx.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_app_discovery.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_app_info.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_cmd_args.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_config.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_depsolver.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_depsolver_culprit.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_dscv_util.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_goal.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_goal_utils.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_prv_app_discover.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_prv_archive.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_prv_assembler.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_prv_overlay.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_prv_rel_discover.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_prv_release.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_prv_relup.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_rel_discovery.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_release.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_state.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_topo.beam lib/erlang/lib/relx-%%VERSION%%/ebin/rlx_util.beam lib/erlang/lib/relx-%%VERSION%%/include/relx.hrl lib/erlang/lib/relx-%%VERSION%%/priv/templates/bin lib/erlang/lib/relx-%%VERSION%%/priv/templates/bin_windows lib/erlang/lib/relx-%%VERSION%%/priv/templates/erl_ini lib/erlang/lib/relx-%%VERSION%%/priv/templates/erl_script lib/erlang/lib/relx-%%VERSION%%/priv/templates/extended_bin lib/erlang/lib/relx-%%VERSION%%/priv/templates/extended_bin_windows lib/erlang/lib/relx-%%VERSION%%/priv/templates/install_upgrade_escript lib/erlang/lib/relx-%%VERSION%%/priv/templates/nodetool lib/erlang/lib/relx-%%VERSION%%/priv/templates/sys_config lib/erlang/lib/relx-%%VERSION%%/priv/templates/vm_args lib/erlang/lib/relx-%%VERSION%%/src/relx.app.src lib/erlang/lib/relx-%%VERSION%%/src/relx.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_app_discovery.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_app_info.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_cmd_args.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_config.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_depsolver.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_depsolver_culprit.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_dscv_util.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_goal.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_goal.peg lib/erlang/lib/relx-%%VERSION%%/src/rlx_goal_utils.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_prv_app_discover.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_prv_archive.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_prv_assembler.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_prv_overlay.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_prv_rel_discover.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_prv_release.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_prv_relup.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_rel_discovery.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_release.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_state.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_topo.erl lib/erlang/lib/relx-%%VERSION%%/src/rlx_util.erl %%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/relx.config +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/relx_simple.config