repo/gentoo:master commit in: sci-electronics/kicad-footprints/

"Yixun Lan" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786281824.cb0af3291c9cf4280d100db4c775047bd9be2119.dlan@gentoo>
commit:     cb0af3291c9cf4280d100db4c775047bd9be2119
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Thu Jul 23 09:16:53 2026 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sun Aug  9 13:23:44 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0af329

sci-electronics/kicad-footprints: add 10.0.5

Part-of: https://codeberg.org/gentoo/gentoo/pulls/1511
Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 sci-electronics/kicad-footprints/Manifest          |  1 +
 .../kicad-footprints-10.0.5.ebuild                 | 53 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/sci-electronics/kicad-footprints/Manifest b/sci-electronics/kicad-footprints/Manifest
index ed15c6a2710a..be0101afd481 100644
--- a/sci-electronics/kicad-footprints/Manifest
+++ b/sci-electronics/kicad-footprints/Manifest
@@ -1,5 +1,6 @@
 DIST kicad-footprints-10.0.0.tar.bz2 7820279 BLAKE2B 3b985b506223ea02b2e172d29d77dab7fc4040a514ba607de25bc6782f9e3c10a15ce4875119b3a54fd85b58ed1998441bcf1bf0e39bd6ff8139147843ea3120 SHA512 af85666b87a51d9cea1780730db2351b429fc45b3be7eb8e54a9bc8af72b8266c14bbb27fa245af1a30cec5a37b295072dd2e1e34e38619003d74719ca3d6cd1
 DIST kicad-footprints-10.0.2.tar.bz2 7807689 BLAKE2B 85ac08a1d72a5e895b442d1df37a2b808326c0462ed57567bd239635da1b1f23aaa396314d21237251e799f133dcaa9d0dbc596fc36536d4fe27d9a304dc0fbf SHA512 5416bbe9dbec68d012ed113b1d1edb54795984843fc7ba85c6f543918f3eab9ef8506b5339fff69fe6c9ceb91da1660eab9092ea45b72444f4bbc64cd709e051
 DIST kicad-footprints-10.0.3.tar.bz2 7808461 BLAKE2B 47b0ee67ad02155947e7c084b4e7c593d8da0c07b2ad534a7d33ffcef8432fa73dd4435bff0a78037630244e2a0bf9a1f8fb6acefca4c12dc75019064125cb79 SHA512 98df039784190fe546b38a340cf11580616b81a98292c86c193b9b76a04dca2c8f3888be595440e8d61a83603dbcdbf682edb7967267771081f2cd7b57ab14e8
+DIST kicad-footprints-10.0.5.tar.bz2 7793111 BLAKE2B fc3d75a52335e2073996064dc3c1a9bc5455e0e19a3c726498ed660ba1b9f2326b47710677286b1356748e09e48097fddad648f002f339639f5fa3d3fa46708c SHA512 2c7f471bebca01003b08ffce6a6ebc2a0b30b70785f8173b94664ba8a0f15ad318a630776f29d3736b31ac2e1fa6b679aba87ebc0cd7087dd1fe224441f4aab5
 DIST kicad-footprints-9.0.5.tar.bz2 7865207 BLAKE2B 4d0b47c044d5b0d59cbd2379f08164f23c74031139b9f1d27cf0695fd04af16e9af9fa98dfb7d52fc714e826ce906f95a119e6840bd6bc113fd6a971e2328529 SHA512 7e6ca31f2bb4a20c26333f2b79af3bda1bdd3cbc7778aa3ae2c0d3b916699b70c0e98aeb9c0a7c28683d70e4fd589994daeceb90dc29924db47dd6cd0d45bb0e
 DIST kicad-footprints-9.0.9.tar.bz2 7738364 BLAKE2B d1c7d85baf6b430076d564f92089eab9ee958e16442c5e93976d3bc8a9f627077d05b990c131908f07b58059d474b25c300e794d7234e24f567773132e211434 SHA512 d708c4c6f53de8dcf296f3809c508374a3a2f87f756a7b60a49954f4071e84e4ddec1cb83ad8cacb245ba753555ce015083f32572df8bc2b789a928cab6d6554

diff --git a/sci-electronics/kicad-footprints/kicad-footprints-10.0.5.ebuild b/sci-electronics/kicad-footprints/kicad-footprints-10.0.5.ebuild
new file mode 100644
index 000000000000..22e61079a350
--- /dev/null
+++ b/sci-electronics/kicad-footprints/kicad-footprints-10.0.5.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Electronic Schematic and PCB design tools footprint libraries"
+HOMEPAGE="https://gitlab.com/kicad/libraries/kicad-footprints"
+
+if [[ ${PV} == 9999 ]]; then
+	EGIT_REPO_URI="https://gitlab.com/kicad/libraries/kicad-footprints.git"
+	inherit git-r3
+else
+	SRC_URI="https://gitlab.com/kicad/libraries/${PN}/-/archive/${PV}/${P}.tar.bz2"
+
+	KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+fi
+
+LICENSE="CC-BY-SA-4.0"
+SLOT="0"
+IUSE="stpz"
+
+RDEPEND=">=sci-electronics/kicad-8.0.0
+	stpz? ( ~sci-electronics/kicad-packages3d-${PV}[stpz] )"
+
+if [[ ${PV} == 9999 ]] ; then
+#	 x11-misc-util/macros only required on live ebuilds
+	BDEPEND+=" >=x11-misc/util-macros-1.18"
+fi
+
+src_install() {
+	cmake_src_install
+
+	if use stpz; then
+		# Bug 935664. Match only quoted model paths to avoid
+		# touching unrelated text.
+		einfo "Rewriting .kicad_mod model refs from .step to .stpz ..."
+		find "${ED}" -type f -name '*.kicad_mod' -print0 \
+			| xargs -0 sed -i 's|\.step"|.stpz"|g' \
+			|| die "model ref rewrite failed"
+	fi
+}
+
+pkg_postinst() {
+	if use stpz; then
+		elog "Footprint .kicad_mod model refs rewritten to .stpz."
+		elog "Projects edited on this system depend on the matching"
+		elog "kicad-packages3d[stpz] install. Other distros ship"
+		elog "uncompressed .step models; disable USE=stpz if you"
+		elog "share projects with users on those systems."
+	fi
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.