dev-libs/nanopb: Provides pb_release symbole

Signed-off-by: Thibaud CANALE <thican@thican.net>
This commit is contained in:
Thibaud CANALE 2022-08-09 01:52:44 +02:00
parent 640a2e2fef
commit aede3f3586
No known key found for this signature in database
GPG key ID: 52F5127650733A18
2 changed files with 16 additions and 4 deletions

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
<flag name="pb-malloc">Enable dynamic allocation support in the decoder.</flag>
</use>
</pkgmetadata>

View file

@ -3,16 +3,16 @@
EAPI=8
inherit cmake
inherit cmake flag-o-matic
DESCRIPTION="plain-C Protocol Buffers for embedded/memory-constrained systems"
HOMEPAGE="http://koti.kapsi.fi/jpa/nanopb/"
SRC_URI="http://koti.kapsi.fi/~jpa/nanopb/download/${P}.tar.gz"
HOMEPAGE="https://jpa.kapsi.fi/nanopb/ https://github.com/nanopb/nanopb"
SRC_URI="https://github.com/nanopb/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="doc examples"
IUSE="doc examples pb-malloc"
RDEPEND="
dev-libs/protobuf
@ -24,6 +24,11 @@ DEPEND="
S="${WORKDIR}/${PN}"
src_configure() {
use pb-malloc && append-cppflags "-DPB_ENABLE_MALLOC"
cmake_src_configure
}
src_test() {
cd "${S}"/tests
scons