* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/nanopb/
@ 2025-02-15 14:30 Vincent Ahluwalia
0 siblings, 0 replies; 3+ messages in thread
From: Vincent Ahluwalia @ 2025-02-15 14:30 UTC (permalink / raw
To: gentoo-commits
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
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/nanopb/
@ 2025-02-15 14:30 Vincent Ahluwalia
0 siblings, 0 replies; 3+ messages in thread
From: Vincent Ahluwalia @ 2025-02-15 14:30 UTC (permalink / raw
To: gentoo-commits
commit: f0ec86fe3314fc63a3f9575b3691da497cf9d4f6
Author: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
AuthorDate: Sat Feb 15 13:07:15 2025 +0000
Commit: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
CommitDate: Sat Feb 15 14:29:58 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f0ec86fe
dev-libs/nanopb: remove trailing space metadata.xml
Signed-off-by: Vincent Ahluwalia <vincentahluwalia <AT> protonmail.com>
dev-libs/nanopb/metadata.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-libs/nanopb/metadata.xml b/dev-libs/nanopb/metadata.xml
index ff431d793..9d8599adb 100644
--- a/dev-libs/nanopb/metadata.xml
+++ b/dev-libs/nanopb/metadata.xml
@@ -9,6 +9,6 @@
<remote-id type="github">nanopb/nanopb</remote-id>
</upstream>
<use>
- <flag name="pb-malloc">Enable dynamic allocation support in the decoder</flag>
+ <flag name="pb-malloc">Enable dynamic allocation support in the decoder</flag>
</use>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/nanopb/
@ 2025-03-08 21:49 Vincent Ahluwalia
0 siblings, 0 replies; 3+ messages in thread
From: Vincent Ahluwalia @ 2025-03-08 21:49 UTC (permalink / raw
To: gentoo-commits
commit: 14da9d0b7e9dc297ced68c43f3e8d460a05a7a71
Author: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
AuthorDate: Sat Mar 8 21:47:34 2025 +0000
Commit: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
CommitDate: Sat Mar 8 21:49:19 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=14da9d0b
dev-libs/nanopb: Fix .a files being installed without USE=static-libs
Signed-off-by: Vincent Ahluwalia <vincentahluwalia <AT> protonmail.com>
Closes: https://bugs.gentoo.org/950636
dev-libs/nanopb/nanopb-0.4.9.1.ebuild | 6 +++++-
dev-libs/nanopb/nanopb-9999.ebuild | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dev-libs/nanopb/nanopb-0.4.9.1.ebuild b/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
index c1122da2e..b6b86cc20 100644
--- a/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
+++ b/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
@@ -19,7 +19,7 @@ fi
LICENSE="ZLIB"
SLOT="0"
-IUSE="+pb-malloc test"
+IUSE="+pb-malloc static-libs test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@@ -38,6 +38,10 @@ src_configure() {
if is-flagq "-flto" ; then
append-cflags "-fno-use-linker-plugin -fwhole-program"
fi
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=$(usex !static-libs)
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ )
cmake_src_configure
}
diff --git a/dev-libs/nanopb/nanopb-9999.ebuild b/dev-libs/nanopb/nanopb-9999.ebuild
index c1122da2e..2b92abfa4 100644
--- a/dev-libs/nanopb/nanopb-9999.ebuild
+++ b/dev-libs/nanopb/nanopb-9999.ebuild
@@ -19,7 +19,7 @@ fi
LICENSE="ZLIB"
SLOT="0"
-IUSE="+pb-malloc test"
+IUSE="+pb-malloc static-libs test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@@ -38,6 +38,10 @@ src_configure() {
if is-flagq "-flto" ; then
append-cflags "-fno-use-linker-plugin -fwhole-program"
fi
+ local mycmakeargs=(
+ DBUILD_SHARED_LIBS=$(usex !static-libs)
+ DBUILD_STATIC_LIBS=$(usex static-libs)
+ )
cmake_src_configure
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-08 21:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 21:49 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/nanopb/ Vincent Ahluwalia
-- strict thread matches above, loose matches on Subject: below --
2025-02-15 14:30 Vincent Ahluwalia
2025-02-15 14:30 Vincent Ahluwalia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox