Index: head/devel/Makefile =================================================================== --- head/devel/Makefile +++ head/devel/Makefile @@ -6060,6 +6060,7 @@ SUBDIR += yajl-tcl SUBDIR += yaml-cpp SUBDIR += yaml-cpp03 + SUBDIR += yaml2argdata SUBDIR += yasm SUBDIR += yasm-devel SUBDIR += z80-asm Index: head/devel/yaml2argdata/Makefile =================================================================== --- head/devel/yaml2argdata/Makefile +++ head/devel/yaml2argdata/Makefile @@ -0,0 +1,28 @@ +# Created by: Ed Schouten +# $FreeBSD$ + +PORTNAME= yaml2argdata +DISTVERSIONPREFIX= v +DISTVERSION= 0.3 +CATEGORIES= devel + +MAINTAINER= ed@FreeBSD.org +COMMENT= Helper classes for parsing YAML into Argdata + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= argdata>=0:devel/argdata \ + yaml-cpp>=0:devel/yaml-cpp + +USE_GITHUB= yes +GH_ACCOUNT= NuxiNL + +NO_BUILD= yes + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME} + cd ${WRKSRC}/${PORTNAME} && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/${PORTNAME} + +.include Index: head/devel/yaml2argdata/distinfo =================================================================== --- head/devel/yaml2argdata/distinfo +++ head/devel/yaml2argdata/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1504099311 +SHA256 (NuxiNL-yaml2argdata-v0.3_GH0.tar.gz) = 8b4d3bba51d0c7944dfe4c7d8c9cc8e49cb99f5b538195cc53ef49fd95519909 +SIZE (NuxiNL-yaml2argdata-v0.3_GH0.tar.gz) = 4116 Index: head/devel/yaml2argdata/pkg-descr =================================================================== --- head/devel/yaml2argdata/pkg-descr +++ head/devel/yaml2argdata/pkg-descr @@ -0,0 +1,15 @@ +Argdata is a binary serialisation format similar to FreeBSD's nvlists. +It differs from nvlists in that it uses data types that are more similar +to YAML. + +Argdata is used by CloudABI as a replacement for string command line +arguments and environment variables. CloudABI processes can start new +processes by passing them a YAML-like tree of arguments, having file +descriptors of resources annotated to the tree. + +This package provides a series of helper classes that are used by +utilities like cloudabi-run to parse and translate YAML to Argdata. +These classes are useful when building custom utilities for launching +CloudABI processes, such as CloudABI's Kubernetes daemon. + +WWW: https://github.com/NuxiNL/yaml2argdata Index: head/devel/yaml2argdata/pkg-plist =================================================================== --- head/devel/yaml2argdata/pkg-plist +++ head/devel/yaml2argdata/pkg-plist @@ -0,0 +1,5 @@ +include/yaml2argdata/yaml_argdata_factory.h +include/yaml2argdata/yaml_builder.h +include/yaml2argdata/yaml_canonicalizing_factory.h +include/yaml2argdata/yaml_error_factory.h +include/yaml2argdata/yaml_factory.h