Commit f29ab936 authored by olgeni's avatar olgeni
Browse files

Add devel/erlang-gen_leader, a leader election behavior for Erlang.

parent b0d0072a
......@@ -411,6 +411,7 @@
SUBDIR += eric4
SUBDIR += eric6
SUBDIR += eris
SUBDIR += erlang-gen_leader
SUBDIR += erlang-gen_smtp
SUBDIR += erlang-getopt
SUBDIR += erlang-ibrowse
......
# $FreeBSD$
PORTNAME= gen_leader
PORTVERSION= 2014.10.20
CATEGORIES= devel
PKGNAMEPREFIX= erlang-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Leader election behavior for Erlang
BUILD_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= garret-smith
GH_PROJECT= gen_leader_revival
GH_TAGNAME= a12a4e3
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/ebin/gen_leader.app
@${RM} ${WRKSRC}/ebin/*.bak ${WRKSRC}/ebin/*.orig
do-build:
@cd ${WRKSRC} && ./rebar compile
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/skeleton.erl ${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}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
.include <bsd.port.mk>
SHA256 (garret-smith-gen_leader_revival-2014.10.20-a12a4e3_GH0.tar.gz) = 6872969acc0fe3054ba1be747caeb9ae265d1995e966def46994d449ed64427c
SIZE (garret-smith-gen_leader_revival-2014.10.20-a12a4e3_GH0.tar.gz) = 181295
--- ebin/gen_leader.app.orig 2015-06-02 14:02:02 UTC
+++ ebin/gen_leader.app
@@ -3,7 +3,7 @@
{application, gen_leader,
[
{description, "The gen_leader behaviour"},
- {vsn, "1.0"},
+ {vsn, "%%PORTVERSION%%"},
{id, "gen_leader"},
{modules, [gen_leader]},
{registered, [ ]},
This application implements a leader election behavior modeled after
gen_server. This behavior intends to make it reasonably straightforward to
implement a fully distributed server with master-slave semantics.
WWW: https://github.com/garret-smith/gen_leader_revival
lib/erlang/lib/gen_leader-%%VERSION%%/ebin/gen_leader.app
lib/erlang/lib/gen_leader-%%VERSION%%/ebin/gen_leader.beam
lib/erlang/lib/gen_leader-%%VERSION%%/include/gen_leader.app
lib/erlang/lib/gen_leader-%%VERSION%%/include/gen_leader.beam
lib/erlang/lib/gen_leader-%%VERSION%%/src/Makefile
lib/erlang/lib/gen_leader-%%VERSION%%/src/gen_leader.erl
%%PORTDOCS%%%%DOCSDIR%%/README.markdown
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/skeleton.erl
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment