mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-libs/libcli: new package, add 1.10.7
Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com>
This commit is contained in:
38
dev-libs/libcli/libcli-1.10.7.ebuild
Normal file
38
dev-libs/libcli/libcli-1.10.7.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Shared C library to include Cisco-like CLI into other software"
|
||||
HOMEPAGE="https://dparrish.com/pages/libcli"
|
||||
SRC_URI="https://github.com/dparrish/${PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test static-libs"
|
||||
|
||||
# Test disabled for being an interactive test
|
||||
# RESTRICT="!test? ( test )"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="virtual/libcrypt:="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/libcli-1.10.7-makefile.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CC AR
|
||||
export LIBSUBDIR="$(get_libdir)"
|
||||
export PREFIX=/usr
|
||||
export STATIC_LIB="$(usex static-libs 1 0)"
|
||||
export TESTS="$(usex test 1 0)"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH=. ./clitest
|
||||
}
|
||||
Reference in New Issue
Block a user