Date: Wed, 20 May 2015 12:17:30 +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: r386854 - in head/devel: . cuttlefish cuttlefish/files Message-ID: <201505201217.t4KCHU9a038267@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: olgeni Date: Wed May 20 12:17:30 2015 New Revision: 386854 URL: https://svnweb.freebsd.org/changeset/ports/386854 Log: Add devel/cuttlefish, a configuration library for Erlang. Added: head/devel/cuttlefish/ head/devel/cuttlefish/Makefile (contents, props changed) head/devel/cuttlefish/distinfo (contents, props changed) head/devel/cuttlefish/files/ head/devel/cuttlefish/files/patch-rebar.config (contents, props changed) head/devel/cuttlefish/files/patch-src_cuttlefish.app.src (contents, props changed) head/devel/cuttlefish/files/patch-src_cuttlefish__escript.erl (contents, props changed) head/devel/cuttlefish/pkg-descr (contents, props changed) head/devel/cuttlefish/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Wed May 20 11:30:58 2015 (r386853) +++ head/devel/Makefile Wed May 20 12:17:30 2015 (r386854) @@ -292,6 +292,7 @@ SUBDIR += cut SUBDIR += cutils SUBDIR += cutter + SUBDIR += cuttlefish SUBDIR += cvs SUBDIR += cvs+ipv6 SUBDIR += cvs-devel Added: head/devel/cuttlefish/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cuttlefish/Makefile Wed May 20 12:17:30 2015 (r386854) @@ -0,0 +1,39 @@ +# $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> Added: head/devel/cuttlefish/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cuttlefish/distinfo Wed May 20 12:17:30 2015 (r386854) @@ -0,0 +1,2 @@ +SHA256 (basho-cuttlefish-2.0.1_GH0.tar.gz) = 958aa5269dacef62aa28e0706a5fe1c0abaa543ce15e61c6999420bd76a769f7 +SIZE (basho-cuttlefish-2.0.1_GH0.tar.gz) = 230990 Added: head/devel/cuttlefish/files/patch-rebar.config ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cuttlefish/files/patch-rebar.config Wed May 20 12:17:30 2015 (r386854) @@ -0,0 +1,12 @@ +--- 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"}]}. Added: head/devel/cuttlefish/files/patch-src_cuttlefish.app.src ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cuttlefish/files/patch-src_cuttlefish.app.src Wed May 20 12:17:30 2015 (r386854) @@ -0,0 +1,11 @@ +--- 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, Added: head/devel/cuttlefish/files/patch-src_cuttlefish__escript.erl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cuttlefish/files/patch-src_cuttlefish__escript.erl Wed May 20 12:17:30 2015 (r386854) @@ -0,0 +1,11 @@ +--- 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"}, Added: head/devel/cuttlefish/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cuttlefish/pkg-descr Wed May 20 12:17:30 2015 (r386854) @@ -0,0 +1,4 @@ +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 Added: head/devel/cuttlefish/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cuttlefish/pkg-plist Wed May 20 12:17:30 2015 (r386854) @@ -0,0 +1,55 @@ +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505201217.t4KCHU9a038267>