From: "Vincent Ahluwalia" <vincentahluwalia@protonmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/nanopb/
Date: Sat, 15 Feb 2025 14:30:12 +0000 (UTC) [thread overview]
Message-ID: <1739629793.87f40806549c3ef088ca17ff444ba2b82d5f7e0b.vincentahluwalia@gentoo> (raw)
commit: 87f40806549c3ef088ca17ff444ba2b82d5f7e0b
Author: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
AuthorDate: Sat Feb 15 13:06:05 2025 +0000
Commit: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
CommitDate: Sat Feb 15 14:29:53 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=87f40806
dev-libs/nanopb: new package, add 0.4.9.1, 9999
Signed-off-by: Vincent Ahluwalia <vincentahluwalia <AT> protonmail.com>
dev-libs/nanopb/Manifest | 1 +
dev-libs/nanopb/metadata.xml | 14 ++++++++++
dev-libs/nanopb/nanopb-0.4.9.1.ebuild | 52 +++++++++++++++++++++++++++++++++++
dev-libs/nanopb/nanopb-9999.ebuild | 52 +++++++++++++++++++++++++++++++++++
4 files changed, 119 insertions(+)
diff --git a/dev-libs/nanopb/Manifest b/dev-libs/nanopb/Manifest
new file mode 100644
index 000000000..856e955ff
--- /dev/null
+++ b/dev-libs/nanopb/Manifest
@@ -0,0 +1 @@
+DIST nanopb-0.4.9.1.tar.gz 1186352 BLAKE2B 430b50b433bd9a9e464afb6353740397b7f1187a861f4b1fcfa7188f3537ab94735f9d7fc74cea9df65e3537a539c825b83acee45491a3485d4d7ea13b1f33ad SHA512 1580c94d558f707c88d8d2ddf4aa3bf4ef244ddc07b13e02de7124da8d156fb30a6999bb3c54ff0497abb033e498fb85ea671774f2fb817f55fa64937f537c77
diff --git a/dev-libs/nanopb/metadata.xml b/dev-libs/nanopb/metadata.xml
new file mode 100644
index 000000000..ff431d793
--- /dev/null
+++ b/dev-libs/nanopb/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vincentahluwalia@protonmail.com</email>
+ <name>Vincent Ahluwalia</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nanopb/nanopb</remote-id>
+ </upstream>
+ <use>
+ <flag name="pb-malloc">Enable dynamic allocation support in the decoder</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-libs/nanopb/nanopb-0.4.9.1.ebuild b/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
new file mode 100644
index 000000000..034b4ba11
--- /dev/null
+++ b/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} python3_13t )
+
+inherit cmake flag-o-matic python-single-r1
+
+DESCRIPTION="plain-C Protocol Buffers for embedded/memory-constrained systems"
+HOMEPAGE="https://jpa.kapsi.fi/nanopb/ https://github.com/nanopb/nanopb"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/nanopb/nanopb"
+else
+ SRC_URI="https://github.com/nanopb/nanopb/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="ZLIB"
+SLOT="0"
+IUSE="+pb-malloc test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ dev-libs/protobuf
+ ${PYTHON_DEPS}
+"
+
+DEPEND="
+ test? ( dev-build/scons )
+ ${RDEPEND}
+"
+
+src_configure() {
+ use pb-malloc && append-cppflags "-DPB_ENABLE_MALLOC"
+ if is-flagq "-flto" ; then
+ append-cflags "-fno-use-linker-plugin -fwhole-program"
+ fi
+ cmake_src_configure
+}
+
+src_test() {
+ cd "${S}"/tests
+ scons
+}
+
+src_install() {
+ cmake_src_install
+ python_optimize
+}
diff --git a/dev-libs/nanopb/nanopb-9999.ebuild b/dev-libs/nanopb/nanopb-9999.ebuild
new file mode 100644
index 000000000..034b4ba11
--- /dev/null
+++ b/dev-libs/nanopb/nanopb-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} python3_13t )
+
+inherit cmake flag-o-matic python-single-r1
+
+DESCRIPTION="plain-C Protocol Buffers for embedded/memory-constrained systems"
+HOMEPAGE="https://jpa.kapsi.fi/nanopb/ https://github.com/nanopb/nanopb"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/nanopb/nanopb"
+else
+ SRC_URI="https://github.com/nanopb/nanopb/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="ZLIB"
+SLOT="0"
+IUSE="+pb-malloc test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ dev-libs/protobuf
+ ${PYTHON_DEPS}
+"
+
+DEPEND="
+ test? ( dev-build/scons )
+ ${RDEPEND}
+"
+
+src_configure() {
+ use pb-malloc && append-cppflags "-DPB_ENABLE_MALLOC"
+ if is-flagq "-flto" ; then
+ append-cflags "-fno-use-linker-plugin -fwhole-program"
+ fi
+ cmake_src_configure
+}
+
+src_test() {
+ cd "${S}"/tests
+ scons
+}
+
+src_install() {
+ cmake_src_install
+ python_optimize
+}
next reply other threads:[~2025-02-15 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-15 14:30 Vincent Ahluwalia [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-15 14:30 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/nanopb/ Vincent Ahluwalia
2025-03-08 21:49 Vincent Ahluwalia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1739629793.87f40806549c3ef088ca17ff444ba2b82d5f7e0b.vincentahluwalia@gentoo \
--to=vincentahluwalia@protonmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox