dev-libs/libucl: revision bump for slotted lua

Closes: https://github.com/gentoo/gentoo/pull/18557
Closes: https://bugs.gentoo.org/752591
Package-Manager: Portage-3.0.11, Repoman-3.0.2
RepoMan-Options: --force
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Signed-off-by: Marek Szuba <marecki@gentoo.org>
This commit is contained in:
Aisha Tammy
2020-11-09 11:10:20 +00:00
committed by Marek Szuba
parent 86aab2e624
commit e4332cd05c
3 changed files with 88 additions and 7 deletions

View File

@@ -0,0 +1,71 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUA_COMPAT=( lua5-{1..3} )
inherit lua-single 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-libs test"
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
DEPEND="!!dev-libs/ucl
lua? ( ${LUA_DEPS} )
urls? ( net-misc/curl )
sign? ( dev-libs/openssl:0 )
"
BDEPEND="${DEPEND}
virtual/pkgconfig
"
RDEPEND="${DEPEND}"
DOCS=( README.md doc/api.md )
src_prepare() {
default
rm tests/schema/{definitions,ref{,Remote}}.json || die
eautoreconf
}
src_configure() {
lua_setup
local myeconfargs=(
"$(use_enable lua)"
"$(use_enable regex)"
"$(use_enable sign signatures)"
"$(use_enable urls)"
"$(use_enable utils)"
LUA_INCLUDE="$(lua_get_CFLAGS)"
LIB_LIBS="$(lua_get_LIBS)"
)
econf "${myeconfargs[@]}"
}
src_test() {
emake check
}
src_install() {
default
use lua && DOCS+=( "doc/lua_api.md" )
einstalldocs
if ! use static-libs; then
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || \
die "error while deleting static library"
fi
}

View File

@@ -3,7 +3,8 @@
EAPI=7
inherit autotools
LUA_COMPAT=( lua5-{1..3} )
inherit lua-single autotools
DESCRIPTION="Universal configuration library parser"
HOMEPAGE="https://github.com/vstakhov/libucl"
@@ -18,11 +19,12 @@ fi
LICENSE="BSD-2"
SLOT="0"
IUSE="lua +regex sign urls +utils static-libs"
IUSE="lua +regex sign urls +utils static-libs test"
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
DEPEND="!!dev-libs/ucl
lua? ( >=dev-lang/lua-5.1:= )
lua? ( ${LUA_DEPS} )
urls? ( net-misc/curl )
sign? ( dev-libs/openssl:0 )
"
@@ -36,24 +38,31 @@ DOCS=( README.md doc/api.md )
src_prepare() {
default
rm tests/schema/{definitions,ref{,Remote}}.json || die
eautoreconf
}
src_configure() {
lua_setup
local myeconfargs=(
"$(use_enable lua)"
"$(use_enable regex)"
"$(use_enable sign signatures)"
"$(use_enable urls)"
"$(use_enable utils)"
LUA_INCLUDE="$(lua_get_CFLAGS)"
LIB_LIBS="$(lua_get_LIBS)"
)
econf "${myeconfargs}"
econf "${myeconfargs[@]}"
}
src_test() {
emake check
}
src_install() {
default
DOCS+=( $(usex lua "doc/lua_api.md" "") )
use lua && DOCS+=( "doc/lua_api.md" )
einstalldocs
if ! use static-libs; then
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || \

View File

@@ -500,6 +500,7 @@ gnome-base/orbit
=dev-games/openscenegraph-openmw-3.4_p20200425-r100
=dev-libs/efl-1.25.1-r10
=dev-libs/libprelude-5.2.0-r10
>=dev-libs/libucl-0.8.1-r100
>=dev-lua/busted-2.0.0-r100
>=dev-lua/busted-htest-1.0.0-r100
>=dev-lua/dkjson-2.5-r100