Commit 532b3a09 authored by olgeni's avatar olgeni
Browse files

Add devel/cuttlefish, a configuration library for Erlang.

parent 7957edd5
......@@ -292,6 +292,7 @@
SUBDIR += cut
SUBDIR += cutils
SUBDIR += cutter
SUBDIR += cuttlefish
SUBDIR += cvs
SUBDIR += cvs+ipv6
SUBDIR += cvs-devel
......
# $FreeBSD$
PORTNAME= cuttlefish
PORTVERSION= 2.0.1
CATEGORIES= devel
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Configuration library for Erlang
LICENSE= APACHE20
BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang \
lager>=2.1.1:${PORTSDIR}/devel/lager \
erlang-getopt>=0.8.2:${PORTSDIR}/devel/erlang-getopt \
neotoma>=1.7.2:${PORTSDIR}/devel/neotoma
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_SUB= VERSION="${PORTVERSION}"
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= basho
post-patch:
@${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/cuttlefish.app.src
@${REINPLACE_CMD} -e "s@%%LOCALBASE%%@${LOCALBASE}@" ${WRKSRC}/src/cuttlefish_escript.erl
@${RM} ${WRKSRC}/src/*.bak ${WRKSRC}/src/*.orig
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
${INSTALL_SCRIPT} ${WRKSRC}/cuttlefish ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
SHA256 (basho-cuttlefish-2.0.1_GH0.tar.gz) = 958aa5269dacef62aa28e0706a5fe1c0abaa543ce15e61c6999420bd76a769f7
SIZE (basho-cuttlefish-2.0.1_GH0.tar.gz) = 230990
--- rebar.config.orig 2015-02-12 21:36:22 UTC
+++ rebar.config
@@ -12,9 +12,6 @@
{xref_queries, [{"(XC - UC) || (XU - X - B - \"(rebar.*|mustache)\" : Mod)", []}]}.
{deps, [
- {getopt, ".*", {git, "git://github.com/jcomellas/getopt.git", {tag, "v0.4.3"}}},
- {lager, "2.0.3", {git, "git://github.com/basho/lager.git", {tag, "2.0.3"}}},
- {neotoma, "1.7.2", {git, "git://github.com/seancribbs/neotoma.git", {tag, "1.7.2"}}}
]}.
{post_hooks, [{compile, "./rebar escriptize"}]}.
--- src/cuttlefish.app.src.orig 2015-05-20 09:05:30 UTC
+++ src/cuttlefish.app.src
@@ -1,7 +1,7 @@
{application, cuttlefish,
[
{description, "cuttlefish configuration abstraction"},
- {vsn, git},
+ {vsn, "%%PORTVERSION%%"},
{registered, []},
{applications, [
kernel,
--- src/cuttlefish_escript.erl.orig 2015-05-20 11:41:20 UTC
+++ src/cuttlefish_escript.erl
@@ -34,7 +34,7 @@ cli_options() ->
%% Option Name, Short Code, Long Code, Argument Spec, Help Message
[
{help, $h, "help", undefined, "Print this usage page"},
- {etc_dir, $e, "etc_dir", {string, "/etc"}, "etc dir"},
+ {etc_dir, $e, "etc_dir", {string, "%%LOCALBASE%%/etc"}, "etc dir"},
{dest_dir, $d, "dest_dir", string, "specifies the directory to write the config file to"},
{dest_file, $f, "dest_file", {string, "app"}, "the file name to write"},
{schema_dir, $s, "schema_dir", string, "a directory containing .schema files"},
Cuttlefish is a library for Erlang applications that wish to walk
the fine line between Erlang app.configs and a sysctl-like syntax.
WWW: https://github.com/basho/cuttlefish
bin/cuttlefish
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/conf_parse.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish.app
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_advanced.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_bytesize.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_conf.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_datatypes.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_duration.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_duration_parse.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_effective.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_enum.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_error.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_escript.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_flag.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_generator.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_mapping.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_rebar_plugin.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_schema.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_translation.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_unit.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_util.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_validator.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_variable.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/cuttlefish_vmargs.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/ebin/lager_stderr_backend.beam
lib/erlang/lib/cuttlefish-%%VERSION%%/src/conf_parse.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/conf_parse.peg
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish.app.src
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_advanced.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_bytesize.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_conf.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_datatypes.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_duration.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_duration.hrl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_duration_parse.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_duration_parse.peg
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_effective.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_enum.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_error.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_escript.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_flag.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_generator.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_mapping.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_rebar_plugin.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_schema.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_translation.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_unit.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_util.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_validator.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_variable.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/cuttlefish_vmargs.erl
lib/erlang/lib/cuttlefish-%%VERSION%%/src/lager_stderr_backend.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