Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2015 14:02:18 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r386151 - in head/devel: . erlang-mustache erlang-mustache/files
Message-ID:  <201505121402.t4CE2IA8084416@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Tue May 12 14:02:17 2015
New Revision: 386151
URL: https://svnweb.freebsd.org/changeset/ports/386151

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

Added:
  head/devel/erlang-mustache/
  head/devel/erlang-mustache/Makefile   (contents, props changed)
  head/devel/erlang-mustache/distinfo   (contents, props changed)
  head/devel/erlang-mustache/files/
  head/devel/erlang-mustache/files/patch-rebar.config   (contents, props changed)
  head/devel/erlang-mustache/files/patch-src_mustache.app.src   (contents, props changed)
  head/devel/erlang-mustache/pkg-descr   (contents, props changed)
  head/devel/erlang-mustache/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue May 12 13:52:06 2015	(r386150)
+++ head/devel/Makefile	Tue May 12 14:02:17 2015	(r386151)
@@ -410,6 +410,7 @@
     SUBDIR += eric6
     SUBDIR += eris
     SUBDIR += erlang-msgpack
+    SUBDIR += erlang-mustache
     SUBDIR += erlang-protobuffs
     SUBDIR += esdl
     SUBDIR += etcd

Added: head/devel/erlang-mustache/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-mustache/Makefile	Tue May 12 14:02:17 2015	(r386151)
@@ -0,0 +1,41 @@
+# $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>

Added: head/devel/erlang-mustache/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-mustache/distinfo	Tue May 12 14:02:17 2015	(r386151)
@@ -0,0 +1,2 @@
+SHA256 (soranoba-mustache-v0.3.0_GH0.tar.gz) = 829153de008de92702ae8fc9f9d3986fcdee16a2578e98c6495ba86ad15ba665
+SIZE (soranoba-mustache-v0.3.0_GH0.tar.gz) = 187846

Added: head/devel/erlang-mustache/files/patch-rebar.config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-mustache/files/patch-rebar.config	Tue May 12 14:02:17 2015	(r386151)
@@ -0,0 +1,11 @@
+--- 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"}}}
+   ]}.

Added: head/devel/erlang-mustache/files/patch-src_mustache.app.src
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-mustache/files/patch-src_mustache.app.src	Tue May 12 14:02:17 2015	(r386151)
@@ -0,0 +1,11 @@
+--- 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,

Added: head/devel/erlang-mustache/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-mustache/pkg-descr	Tue May 12 14:02:17 2015	(r386151)
@@ -0,0 +1,3 @@
+Mustache template engine for Erlang/OTP.
+
+WWW: https://github.com/soranoba/mustache

Added: head/devel/erlang-mustache/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-mustache/pkg-plist	Tue May 12 14:02:17 2015	(r386151)
@@ -0,0 +1,5 @@
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505121402.t4CE2IA8084416>