dev-libs/kwsys: new package, add 0_pre20220603

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-06-05 19:44:02 +02:00
parent e217e6d8aa
commit 97f98781b1
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
COMMIT="c28e27bc4ad8e12d88b05f30eec19b2987c60721"
DESCRIPTION="Kitware System Library"
HOMEPAGE="https://gitlab.kitware.com/utils/kwsys"
SRC_URI="https://gitlab.kitware.com/utils/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.bz2"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND=""
DEPEND=""
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DKWSYS_INSTALL_BIN_DIR=bin
-DKWSYS_INSTALL_INCLUDE_DIR=include
-DKWSYS_INSTALL_LIB_DIR=$(get_libdir)
-DKWSYS_STANDALONE=ON
-DBUILD_TESTING=$(usex test)
)
cmake_src_configure
}