From: Johan Bergström Date: Thu, 4 Feb 2016 03:36:27 +0000 (+1100) Subject: dev-libs/libucl: New package X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e56d2b3c4b3b4133195f26e9501d9236771e3897;p=gentoo.git dev-libs/libucl: New package Libucl is a configuration library parser and a set of optional utilities. --- diff --git a/dev-libs/libucl/Manifest b/dev-libs/libucl/Manifest new file mode 100644 index 000000000000..7f98a55840e8 --- /dev/null +++ b/dev-libs/libucl/Manifest @@ -0,0 +1 @@ +DIST libucl-0.7.3.tar.gz 1986726 SHA256 2f69995c7f8320350f56c1183c395cc4a2a958331f22d60b7839a117c9c601e1 SHA512 29b466254887f7be1168ce31de9f852f3f1868a3afaa5a73859a4cd43b915510850e786ff778613fa48579ee6f0f78e5898c83ce9423f1fb688cce8d969a8eab WHIRLPOOL 2f72d5a5b938719f59661abe827cfc7f0b20db22c478fdc98c40d664c652d0b67096aa82b5ec161d3212bfd38924b3be364bd797ea090ec620f7c2efc82a4157 diff --git a/dev-libs/libucl/libucl-0.7.3.ebuild b/dev-libs/libucl/libucl-0.7.3.ebuild new file mode 100644 index 000000000000..585a76baa977 --- /dev/null +++ b/dev-libs/libucl/libucl-0.7.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools + +DESCRIPTION="Universal configuration library parser" +HOMEPAGE="https://github.com/vstakhov/libucl" +SRC_URI="https://github.com/vstakhov/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +IUSE="lua +regex signatures static-libs urlfetch utils" +DEPEND="lua? ( >=dev-lang/lua-5.1:= ) + signatures? ( dev-libs/openssl:0 ) + urlfetch? ( net-misc/curl )" +RDEPEND="${DEPEND}" + +DOCS=( README.md doc/api.md ) + +src_prepare() { + eapply_user + eautoreconf +} + +src_configure() { + local myeconf="" + use urlfetch && myeconf="--with-urls" + econf \ + $(use_enable lua) \ + $(use_enable regex) \ + $(use_enable signatures) \ + $(use_enable utils) \ + ${myeconf} +} + +src_install() { + default + use lua && DOCS+=( doc/lua_api.md ) + # no .a's it seems + use static-libs || find "${ED}" -name "*.la" -delete +} diff --git a/dev-libs/libucl/metadata.xml b/dev-libs/libucl/metadata.xml new file mode 100644 index 000000000000..4f528bc055ec --- /dev/null +++ b/dev-libs/libucl/metadata.xml @@ -0,0 +1,25 @@ + + + + + bugs@bergstroem.nu + Johan Bergström + Co-maintainer, CC on bugs. + + + + proxy-maint@gentoo.org + Proxy Maintainers + + UCL is heavily infused by nginx configuration as the example + of a convenient configuration system. However, UCL is fully compatible with + JSON format and is able to parse json files. It can also emit UCL objects + into different formats such as "nginx like", json, yaml and + compact json + + Enable regex checking for schema + Enable signatures check + Enable URLs fetch + Builds and installs utils + +