Merge pull request #1208 from thican/nanopb_pb_release_symbol

dev-libs/nanopb: Provides pb_release symbole
This commit is contained in:
Zero_Chaos 2022-08-08 21:49:21 -04:00 committed by GitHub
commit 39d4f39e60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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