dev-libs/belcard: New package imported from nest

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
Alarig Le Lay 2022-04-28 14:33:49 +02:00
parent 9eb3d3cd99
commit d9880b6c05
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST belcard-5.1.3.tar.gz 201328 BLAKE2B 95454a01848a0f2e9056249d6cd9133b76ea7239fed5e00712f1c988bedca860a894d288d70ce2bfaf00ab48e3db0e23a587859c58f950b669ea7f80b29c3c78 SHA512 f6080959629deab60c2462a3c21120cce2061c515104728b63f96d54c573bf4a917698a300632bf1e58066ccd63115be16c40d9c9cf8c5fb0fa6a94709fc587d

View file

@ -0,0 +1,39 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="VCard standard format manipulation library"
HOMEPAGE="https://gitlab.linphone.org/BC/public/belcard"
SRC_URI="https://gitlab.linphone.org/BC/public/${PN}/-/archive/${PV}/${P}.tar.gz"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="static-libs test tools"
RESTRICT="!test? ( test )"
RDEPEND="dev-cpp/belr
net-libs/bctoolbox[test?]"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
-DENABLE_STATIC="$(usex static-libs)"
-DENABLE_TOOLS="$(usex tools)"
-DENABLE_UNIT_TESTS="$(usex test)"
)
cmake_src_configure
}
src_test() {
"${S}"_build/tester/belcard_tester \
--resource-dir "${S}"/tester/ \
|| die "tests failed"
cmake_src_test
}

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>spiderx@spiderx.dp.ua</email>
<name>Vladimir Pavljuchenkov</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
Belcard is a C++ library to manipulate (parse)
the vCard standard format by Belledonne Communications
</longdescription>
<use>
<flag name="tools">Build tools</flag>
</use>
<upstream>
<remote-id type="github">BelledonneCommunications/belcard</remote-id>
</upstream>
</pkgmetadata>