diff options
-rw-r--r-- | dev-libs/libucl/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libucl/libucl-0.8.1.ebuild | 57 | ||||
-rw-r--r-- | dev-libs/libucl/libucl-9999.ebuild | 57 | ||||
-rw-r--r-- | dev-libs/libucl/metadata.xml | 25 |
4 files changed, 140 insertions, 0 deletions
diff --git a/dev-libs/libucl/Manifest b/dev-libs/libucl/Manifest new file mode 100644 index 000000000000..a4cbed7b873c --- /dev/null +++ b/dev-libs/libucl/Manifest @@ -0,0 +1 @@ +DIST libucl-0.8.1.tar.gz 2028394 BLAKE2B 18fda317b4b4aed3d6b72c599d191f141bf4722d1c08244deda9c5e77300e2bef7de029889a05d9b4573472928d9d49a797123ac392a4cdd3b690ac277ad673d SHA512 36a059561eadb2dd7253ca22ff56f6a0c6cdd28580e28451c0cf47e1aec321a2e1589fc83ccb2033346f2dbca31a7e6afa9666ea544a0c190b7f80ed0e9f45af diff --git a/dev-libs/libucl/libucl-0.8.1.ebuild b/dev-libs/libucl/libucl-0.8.1.ebuild new file mode 100644 index 000000000000..a019e11cbc80 --- /dev/null +++ b/dev-libs/libucl/libucl-0.8.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Universal configuration library parser" +HOMEPAGE="https://github.com/vstakhov/libucl" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vstakhov/libucl.git" +else + SRC_URI="https://github.com/vstakhov/libucl/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD-2" +SLOT="0" + +IUSE="lua +regex sign urls +utils static" + +DEPEND="!!dev-libs/ucl + lua? ( >=dev-lang/lua-5.1:= ) + urls? ( net-misc/curl ) + sign? ( dev-libs/openssl:0 ) +" +BDEPEND="${DEPEND} + virtual/pkgconfig +" +RDEPEND="${DEPEND}" + +DOCS=( README.md doc/api.md ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + "$(use_enable lua)" + "$(use_enable regex)" + "$(use_enable sign signatures)" + "$(use_enable urls)" + "$(use_enable utils)" + ) + econf "${myeconfargs}" +} + +src_install() { + default + DOCS+=( $(usex lua "doc/lua_api.md" "") ) + einstalldocs + use static || find "${ED}" -name "*.la" -delete +} diff --git a/dev-libs/libucl/libucl-9999.ebuild b/dev-libs/libucl/libucl-9999.ebuild new file mode 100644 index 000000000000..a019e11cbc80 --- /dev/null +++ b/dev-libs/libucl/libucl-9999.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Universal configuration library parser" +HOMEPAGE="https://github.com/vstakhov/libucl" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vstakhov/libucl.git" +else + SRC_URI="https://github.com/vstakhov/libucl/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD-2" +SLOT="0" + +IUSE="lua +regex sign urls +utils static" + +DEPEND="!!dev-libs/ucl + lua? ( >=dev-lang/lua-5.1:= ) + urls? ( net-misc/curl ) + sign? ( dev-libs/openssl:0 ) +" +BDEPEND="${DEPEND} + virtual/pkgconfig +" +RDEPEND="${DEPEND}" + +DOCS=( README.md doc/api.md ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + "$(use_enable lua)" + "$(use_enable regex)" + "$(use_enable sign signatures)" + "$(use_enable urls)" + "$(use_enable utils)" + ) + econf "${myeconfargs}" +} + +src_install() { + default + DOCS+=( $(usex lua "doc/lua_api.md" "") ) + einstalldocs + use static || 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..b357b63e2e53 --- /dev/null +++ b/dev-libs/libucl/metadata.xml @@ -0,0 +1,25 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription> + 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 + </longdescription> + <maintainer type="person"> + <email>gentoo@aisha.cc</email> + <name>Aisha Tammy</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="regex">Enable regex support</flag> + <flag name="sign">Enable signatures check</flag> + <flag name="urls">Enable URLs fetch</flag> + <flag name="utils">Install utils for checking other configs</flag> + </use> +</pkgmetadata> |