mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
Merge pull request #1208 from thican/nanopb_pb_release_symbol
dev-libs/nanopb: Provides pb_release symbole
This commit is contained in:
commit
39d4f39e60
2 changed files with 16 additions and 4 deletions
7
dev-libs/nanopb/metadata.xml
Normal file
7
dev-libs/nanopb/metadata.xml
Normal 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>
|
||||
|
|
@ -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
|
||||
Loading…
Reference in a new issue