dev-cpp/belr: 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:25 +02:00
parent 87be57f9db
commit 9eb3d3cd99
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
3 changed files with 62 additions and 0 deletions

1
dev-cpp/belr/Manifest Normal file
View File

@ -0,0 +1 @@
DIST belr-5.1.3.tar.gz 67828 BLAKE2B 0627a4780089dd37671a0dc51bbd86b5ce86f66ea792c63fe5806e4f3992b63d89b0b387df703e5165ca23da9254c8f85cb072fbb2ca07da3ce768e369bd289a SHA512 8e729c3a78891a92ca7bf026c3439b8aef0468dba45e7efbadc3ce04541d147b672fc494b7a4555345efca74cbbbd3aa79f6e219510c7646cf96c2814d336173

View File

@ -0,0 +1,37 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Language recognition library by Belledonne Communications"
HOMEPAGE="https://gitlab.linphone.org/BC/public/belr"
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" # fails: need environment
RDEPEND="net-libs/bctoolbox[test?]"
DEPEND="${RDEPEND}"
BDEPEND="virtual/libudev
virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
-DENABLE_STATIC="$(usex static-libs)"
-DENABLE_TESTS="$(usex test)"
-DENABLE_TOOLS="$(usex tools)"
)
cmake_src_configure
}
src_test() {
"${S}"_build/tester/belr_tester || die "tests failed"
cmake_src_test
}

24
dev-cpp/belr/metadata.xml Normal file
View File

@ -0,0 +1,24 @@
<?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">
Belr is Belledonne Communications' language recognition library,
written in C++11. It parses text inputs formatted according to
a language defined by an ABNF grammar, such as the protocols
standardized at IETF.
</longdescription>
<use>
<flag name="tools">Build tools</flag>
</use>
<upstream>
<remote-id type="github">BelledonneCommunications/belr</remote-id>
</upstream>
</pkgmetadata>