mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
sci-electronics/kicad-footprints: add 10.0.3
Signed-off-by: Huang Rui <vowstar@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/46259 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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-9.0.5.tar.bz2 7865207 BLAKE2B 4d0b47c044d5b0d59cbd2379f08164f23c74031139b9f1d27cf0695fd04af16e9af9fa98dfb7d52fc714e826ce906f95a119e6840bd6bc113fd6a971e2328529 SHA512 7e6ca31f2bb4a20c26333f2b79af3bda1bdd3cbc7778aa3ae2c0d3b916699b70c0e98aeb9c0a7c28683d70e4fd589994daeceb90dc29924db47dd6cd0d45bb0e
|
||||
DIST kicad-footprints-9.0.6.tar.bz2 7873080 BLAKE2B 3feb4d9730e2e63aee37fcc88b9880ad3718bd80020bc5292232b6050c0d5e4af566c14894e39495aa52adc3fada335736c9a0d1d952485111b0a495870ad5d2 SHA512 506072cbd197f578328bf9315c46a39a09af5cd2e3c22d38827e2317f065a4e60aa478ccef6a740fabb8958cd08b495cd5a2b9acb82f9a7979a6b12e0aec5736
|
||||
DIST kicad-footprints-9.0.8.tar.bz2 7738615 BLAKE2B 89d8897670e24cd86c88ed9680b62fa5efd56273052f8e991da3924efacf58d85d80c58dc1095e68203a5dfeea48ec2c08e53e338ae01c3b14a26f49409673a0 SHA512 3f4f785519441d50ae5e53035544dac86d7d3603abffed448e447b4c39243f600383e8e81ec14ef74d2b6934bd5df1e284acf54ea6a793a8d0cc538306761132
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user