Commit 5882427d authored by olgeni's avatar olgeni
Browse files

Add devel/erlang-mustache, a Mustache template engine for Erlang.

parent 9eb457b3
...@@ -410,6 +410,7 @@ ...@@ -410,6 +410,7 @@
SUBDIR += eric6 SUBDIR += eric6
SUBDIR += eris SUBDIR += eris
SUBDIR += erlang-msgpack SUBDIR += erlang-msgpack
SUBDIR += erlang-mustache
SUBDIR += erlang-protobuffs SUBDIR += erlang-protobuffs
SUBDIR += esdl SUBDIR += esdl
SUBDIR += etcd SUBDIR += etcd
......
# $FreeBSD$
PORTNAME= mustache
PORTVERSION= 0.3.0
DISTVERSIONPREFIX=v
CATEGORIES= devel
PKGNAMEPREFIX= erlang-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Mustache template engine for Erlang
LICENSE= MIT
BUILD_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= soranoba
ALL_TARGET= compile
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/mustache.app.src
@${RM} ${WRKSRC}/src/*.bak ${WRKSRC}/src/*.orig
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.endif
@${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>
SHA256 (soranoba-mustache-v0.3.0_GH0.tar.gz) = 829153de008de92702ae8fc9f9d3986fcdee16a2578e98c6495ba86ad15ba665
SIZE (soranoba-mustache-v0.3.0_GH0.tar.gz) = 187846
--- rebar.config.orig 2015-05-08 16:05:56 UTC
+++ rebar.config
@@ -36,8 +36,4 @@
{deps,
[
- {meck, ".*", {git, "git://github.com/eproxus/meck.git", {tag, "0.8.2"}}},
- {reloader, ".*", {git, "git://github.com/sile/reloader.git", {branch, "master"}}},
- {edown, ".*", {git, "git://github.com/dwango/edown.git", {branch, "master"}}},
- {eunit_formatters, ".*", {git, "git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
]}.
--- src/mustache.app.src.orig 2015-05-12 13:41:59 UTC
+++ src/mustache.app.src
@@ -2,7 +2,7 @@
{application, mustache,
[
{description, "Mustache template engine for Erlang/OTP"},
- {vsn, git},
+ {vsn, "%%PORTVERSION%%"},
{registered, []},
{applications, [
kernel,
Mustache template engine for Erlang/OTP.
WWW: https://github.com/soranoba/mustache
lib/erlang/lib/mustache-%%VERSION%%/ebin/mustache.app
lib/erlang/lib/mustache-%%VERSION%%/ebin/mustache.beam
lib/erlang/lib/mustache-%%VERSION%%/src/mustache.app.src
lib/erlang/lib/mustache-%%VERSION%%/src/mustache.erl
%%PORTDOCS%%%%DOCSDIR%%/README.md
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