diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-13 10:39:22 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-13 10:39:22 +0100 |
commit | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (patch) | |
tree | 8ac67e26b45f34d71c5aab3621813b100a0d5f00 /dev-libs/libucl/libucl-9999.ebuild | |
parent | f516638b7fe9592837389826a6152a7e1b251c54 (diff) |
gentoo resync : 13.06.2020
Diffstat (limited to 'dev-libs/libucl/libucl-9999.ebuild')
-rw-r--r-- | dev-libs/libucl/libucl-9999.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
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 +} |