Kicad update

This commit is contained in:
Torsten Kurbad 2023-11-21 23:08:59 +01:00
parent 16aaeb7b5e
commit f5ee2c36dd
22 changed files with 479 additions and 17 deletions

View File

@ -1,3 +1,3 @@
DIST kicad-doc-6.0.1.tar.gz 78035248 BLAKE2B 25ff6eb1318d2c55ace2df3b1d553ce9220b035f8de034e583a98eb601c1032856b0efc8b81e0a142483722015878d64e25b05df5a53e5d53df56967dfc23021 SHA512 1027a4f46a855ab34c9e4fb53df1a495d8cb1d27f98263fb574ef25135b0d20ba3a875e2711fcb73836c27f5c0e193aea2dec3e9fa313434785eb0553ca214b8 DIST kicad-doc-7.0.9.tar.bz2 107422748 BLAKE2B 735a0789c610e710bfebbb13477f32074a3e75a68a361c2907d09242ba0d28a4cd8c43173b462ff2d364080f26147cedba52b2b476aab56410038f3636e55a1e SHA512 7056cba04b71423d30d8b3592d26d2dc325c82dcdd55cd406151ee0b5c5e62921cc2bcd44ece75a0b764b4e3965b38f077f9f7e656c5e39bccc97a883075cd8d
EBUILD kicad-doc-6.0.1.ebuild 2043 BLAKE2B 40b1af5d17b368497a74c83b55834e97783d7caa1bfc7702795bbf531afb8914b57ebdec5b27d086419df29b2a9fcc28bf7d3143031907b54360baf3b9915664 SHA512 3773c5a2a2cd3b1d1654c3ce018be0f5a12c06821352c4c5d06c26d3268ae2c802f86ce22791084907d3cf83180f062a18d3c5cfb9fd097c89628f89d20f7901 EBUILD kicad-doc-7.0.9.ebuild 1811 BLAKE2B dd463832069201a6775846383f74bc0f3e04426307267153960e6d6248e862d53c0d87c93fc70672c1aefa3030f20997009fb8c5cd7d076a31960e75c1ed5e3f SHA512 b800a6f5befc4d0f293767ac85e56c11b136023f45186a13285d3629b100df55232d4d83188d02dc5af5fac55c9265b68bfad75d68ba94b1621dfb6d952321ba
MISC metadata.xml 852 BLAKE2B 9b21d1f5ae47786e87fdf3703b2e65645cbc4746b861f023f8ca94a9d32dd8c50594eec0e316538943abe7f93a261b3fb2e96f1ac56bccbc316e2f9ef06cfb77 SHA512 aed642bd4c57be8cdae2dc31c81db0915b30032b72dbce3ea157163e2713bd3fe6812aa96c3ee3894f84cfa9126577fb69c2da35525eee2124728c004b436fad MISC metadata.xml 861 BLAKE2B d1cfbf0b3a558b876cc446ffb27ac09d0bac29328d370b064f950117692a0582adc48cac4c8d887ac4151aae72c8cbeef20b521da166a77c7a787951da812f8c SHA512 3d12ebc29679fc7b7d2a75d5d33a053dfb21c96213aa98dd8350f4eb364a4149e35b0f18ca6d9e59f86e57df0abb59e182c7f8fdfda38e4bce8a5308009c85fa

View File

@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@ -14,16 +14,13 @@ if [[ ${PV} == 9999 ]]; then
# x11-misc-util/macros only required on live ebuilds # x11-misc-util/macros only required on live ebuilds
LIVE_DEPEND=">=x11-misc/util-macros-1.18" LIVE_DEPEND=">=x11-misc/util-macros-1.18"
else else
MY_PV="${PV/_rc/-rc}" SRC_URI="https://gitlab.com/kicad/services/${PN}/-/archive/${PV}/${P}.tar.bz2"
MY_P="${PN}-${MY_PV}" KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
SRC_URI="https://gitlab.com/kicad/services/${PN}/-/archive/${MY_PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
KEYWORDS="~amd64 ~arm64 ~x86"
fi fi
LICENSE="|| ( GPL-3+ CC-BY-3.0 ) GPL-2" LICENSE="|| ( GPL-3+ CC-BY-3.0 ) GPL-2"
SLOT="0" SLOT="0"
# TODO: Change default back to +df once asciidoctor-pdf is packaged? # TODO: Change default back to +pdf once asciidoctor-pdf is packaged?
IUSE="+html pdf" IUSE="+html pdf"
LANG_USE=" l10n_ca l10n_de l10n_en l10n_es l10n_fr l10n_id l10n_it l10n_ja l10n_pl l10n_ru l10n_zh" LANG_USE=" l10n_ca l10n_de l10n_en l10n_es l10n_fr l10n_id l10n_it l10n_ja l10n_pl l10n_ru l10n_zh"
@ -34,7 +31,7 @@ unset LANG_USE
# TODO: need asciidoctor-pdf for pdf # TODO: need asciidoctor-pdf for pdf
# bug #697450 # bug #697450
BDEPEND=" BDEPEND="
>=app-text/asciidoc-8.6.9 >=dev-ruby/asciidoctor-2.0.12
>=app-text/dblatex-0.3.10 >=app-text/dblatex-0.3.10
>=app-text/po4a-0.45 >=app-text/po4a-0.45
>=sys-devel/gettext-0.18 >=sys-devel/gettext-0.18
@ -53,13 +50,10 @@ BDEPEND="
src_configure() { src_configure() {
local mycmakeargs=( local mycmakeargs=(
# May not always work? -DPDF_GENERATOR="DBLATEX"
# https://gitlab.com/kicad/services/kicad-doc/-/issues/808
-DADOC_TOOLCHAIN="ASCIIDOC"
# Note: need EAPI 8 usev here, not pre-EAPI 8 behaviour
-DBUILD_FORMATS="$(usev html);$(usev pdf)" -DBUILD_FORMATS="$(usev html);$(usev pdf)"
-DSINGLE_LANGUAGE="${L10N}" -DSINGLE_LANGUAGE="${L10N}"
-DKICAD_DOC_PATH="${EPREFIX}"/usr/share/doc/${PF}/help -DKICAD_DOC_PATH="${EPREFIX}"/usr/share/doc/${P}/help
) )
cmake_src_configure cmake_src_configure
} }

View File

@ -19,6 +19,6 @@
diagrams and printed circuit board artwork. diagrams and printed circuit board artwork.
</longdescription> </longdescription>
<upstream> <upstream>
<remote-id type="github">KiCad/kicad-doc</remote-id> <remote-id type="gitlab">kicad/services/kicad-doc</remote-id>
</upstream> </upstream>
</pkgmetadata> </pkgmetadata>

View File

@ -0,0 +1,3 @@
DIST kicad-footprints-7.0.9.tar.bz2 24450969 BLAKE2B 56b00cbf682835f03495638231f1683b822f01fd7afe5c5a6e559f0f1a25a5fac20b8860661882b4779a8ccea443e28b4c3419e1039c6082f0134c4901c92848 SHA512 93438748934e630c012d28c46a7001d6139a458dd35d0e56dc77523a3e39249b14fc9e39700512a0d9a97b4e236fcbf0410e7f8506371522c883dee826b628a7
EBUILD kicad-footprints-7.0.9.ebuild 735 BLAKE2B 9e9d0baf11b94f0d40fe503e471f3c78c5073e716cebfbddbaf0fc4e4d94384baed813316bafca6438190acc378b211f1ac5f796c964dc655a35163cec9f1e85 SHA512 35982599de717abcbb5a70007b1d3073c18dc217ede180bf6331f04386eb378af5751ab3d934da353ac27d77b824b20bb918226155da9d3d3b599b309b28bbe6
MISC metadata.xml 776 BLAKE2B 30982b2c0cea33ecaaa4284235bd37fdf622f34a3f85ec0a5d2ede84669afef43c07e25af0e60048ea0167cbb8ff38af8ec0a4b0462b0f2efe418e7efde77278 SHA512 b4ccbef5457263dec344709e4ba4a900da9abe252983fd67798a5b1ab9bc1c9d24f6178bbb493db1eac617ff64bb5d31f29df570891751a52a86a6beb55d6d56

View File

@ -0,0 +1,30 @@
# Copyright 1999-2023 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=""
DEPEND=""
RDEPEND=">=sci-electronics/kicad-7.0.0"
if [[ ${PV} == 9999 ]] ; then
# x11-misc-util/macros only required on live ebuilds
BDEPEND+=" >=x11-misc/util-macros-1.18"
fi

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>zoltan@sinustrom.info</email>
<name>Zoltan Puskas</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription>
The KiCad footprint libraries are the individual .pretty directories.
Each .pretty directory contains multiple .kicad_mod footprint files.
These footprints are best used in combination with the official symbol
libs and 3d model libs.
</longdescription>
<upstream>
<remote-id type="gitlab">kicad/libraries/kicad-footprints</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,2 @@
EBUILD kicad-meta-7.0.9.ebuild 582 BLAKE2B 2495daf1863ee585888764d8c3cd30f8dc7be809a8c5d2b64bb7c4bfbfc9add3c9a2f566b30670fdcb70e28ecbef2a95d3f0a00f180049ea358b4b241ea17579 SHA512 65b397c9a72abf809154ba5f5d815f32858bff67f58149b43eca8794112080e4bc886c1d1f83538ee5e19d08d144be9fc83d53eb0520aef3cd2c3ac1b0ca6447
MISC metadata.xml 625 BLAKE2B b85af17cbbc843d7d841344c73f0812457bf6ef209c44397bfcf5404175dc20a2525fb4b9501ca61ab686c7afb365bc7165b632ec71b907bcfbe7e651df54e0d SHA512 fdf916963a769a8b0f0d0f3ecf737c3e19a928ac3335d042fe9f57b700a9738f1e834a1f42a97efd9171fd3d218ac9f33337b30583516654efb03bc6902869c6

View File

@ -0,0 +1,28 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Electronic Schematic and PCB design tools (meta package)"
HOMEPAGE="http://www.kicad.org"
SRC_URI=""
LICENSE="metapackage"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
IUSE="doc minimal"
RDEPEND="
>=sci-electronics/kicad-${PV}
>=sci-electronics/kicad-symbols-${PV}
>=sci-electronics/kicad-footprints-${PV}
doc? (
>=app-doc/kicad-doc-${PV}
)
!minimal? (
>=sci-electronics/kicad-packages3d-${PV}
>=sci-electronics/kicad-templates-${PV}
)
"

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>zoltan@sinustrom.info</email>
<name>Zoltan Puskas</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">KiCad/kicad</remote-id>
<remote-id type="launchpad">kicad</remote-id>
</upstream>
<use>
<flag name="minimal">Do not install extra data like 3D packages and templates.</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,3 @@
DIST kicad-packages3d-7.0.9.tar.bz2 773284884 BLAKE2B 94bedfbe74a22968013eb4bac9c38d27472a40a7b1db0aabb942a3faee44752ccbbca4973de19097ac034816e5f89624d2644addc3bb631b6a885f275ecabb27 SHA512 88b789f838132ededcea7171cdf49871fbd3e91ef076a3330bfa6f05639c5486caba5a99adf68b5bdc8a946aefd8c4e9cca266e233c5350dbaca0d5e446eec2a
EBUILD kicad-packages3d-7.0.9.ebuild 842 BLAKE2B c77b6ce82a2f793a318fd81484566e965cdd9cf95adde3b88dc612e78e43e6baa286a2fd1ffb65e8556028780c3e89f93186003fba18b1f7a65e3ec0f499d8a2 SHA512 31df462a42e518312f0f8235ed2b90c7bab7537e3ac4b4c9281b5d941ab455a1f67a1169fc64d0ea484701d88a10174891868e1da4087b7fe77c27851fde578a
MISC metadata.xml 805 BLAKE2B 79006b824550a461a0dfa08cda2457737df8044e463fbe46197052e87373d023f39fb92547a4aa9eb3d3eed76e34c1df45c3eacb0639584a2c5dbf618744b50d SHA512 4df24c4f374c33338e946b3422167bc2694ecbfc28e9e22e0c6ddd3ba5654d28091323fa4b76908cb39b0bb11069899bb67d6739be36454389d9959a74059223

View File

@ -0,0 +1,32 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit check-reqs cmake
DESCRIPTION="Electronic Schematic and PCB design tools 3D package libraries"
HOMEPAGE="https://gitlab.com/kicad/libraries/kicad-packages3D"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.com/kicad/libraries/kicad-packages3D.git"
inherit git-r3
else
SRC_URI="https://gitlab.com/kicad/libraries/kicad-packages3D/-/archive/${PV}/kicad-packages3D-${PV}.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/${PN/3d/3D}-${PV}"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
fi
IUSE=""
LICENSE="CC-BY-SA-4.0"
SLOT="0"
RDEPEND=">=sci-electronics/kicad-7.0.0"
if [[ ${PV} == 9999 ]] ; then
# x11-misc-util/macros only required on live ebuilds
BDEPEND=">=x11-misc/util-macros-1.18"
fi
CHECKREQS_DISK_BUILD="11G"

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>zoltan@sinustrom.info</email>
<name>Zoltan Puskas</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription>
The KiCad 3D model libraries are the individual .3dshapes directories.
These 3d models are best used in combination with the official footprint
libs. Each directory directory contains multiple 3D model files, with
the following supported file formats: WRL, STEP.
</longdescription>
<upstream>
<remote-id type="gitlab">kicad/libraries/kicad-packages3D</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,3 @@
DIST kicad-symbols-7.0.9.tar.bz2 3054537 BLAKE2B 690b9236f203ec2fde66c7e3170043f9081a187a1e844b660b527a295fe5398b2497327ebd17eef9ab1639493dc6f75c6a4aa57946937d09623b0cb3c0330de2 SHA512 dee2a97e3dea00ad1e586c58ca68c081534e2334edd7f45f5a8deb3193835dfe7c9ac1e180cb0ecab8152cd6c3afc9973da8cf6559667b90f3a5f629bc19f790
EBUILD kicad-symbols-7.0.9.ebuild 726 BLAKE2B 3bf852a25ec618f3cf20b762286a091930f1edb3af20ba5b4cd113aef39874e5278a05e995159ade3db3cf7fbc2091c1647d4b0e0684b26d5a5c6ce468df498e SHA512 fbe3cf50e9d2607f7f84eb7412069282efda60bf62184f44b9982ccd0d76318b9ca34a4c51485a8e7eb6a59a05cdd2a3bd511d291a8d0d2f610aa442c83209b5
MISC metadata.xml 734 BLAKE2B 3ced3601f6bb8bd6289b8bd2b7d18745643bf151bee1393c12653e722a8bb4f0edcfac97a7ad3b76072af665c7463f71f0f442c653fc9e177cbe520e5c2dc623 SHA512 00b5f7f898380c773481889350fc42bba3211096914dcd73c1a8ee112ea12890aa88dde96ea819689d2a87367da6962b2d402c29c4b0449012df43a9d55af0bb

View File

@ -0,0 +1,30 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Electronic Schematic and PCB design tools symbol libraries"
HOMEPAGE="https://gitlab.com/kicad/libraries/kicad-symbols"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.com/kicad/libraries/kicad-symbols.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=""
DEPEND=""
RDEPEND=">=sci-electronics/kicad-7.0.0"
if [[ ${PV} == 9999 ]] ; then
# x11-misc-util/macros only required on live ebuilds
BDEPEND+=" >=x11-misc/util-macros-1.18"
fi

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>zoltan@sinustrom.info</email>
<name>Zoltan Puskas</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription>
The KiCad symbol libraries are the individual .lib files, with the
corresponding .dcm files containing symbol metadata. These symbols are
best used in combination with the official footprint libs.
</longdescription>
<upstream>
<remote-id type="gitlab">kicad/libraries/kicad-symbols</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,3 @@
DIST kicad-templates-7.0.9.tar.bz2 1247499 BLAKE2B 64ca21331088c35a03dab8016af102f2fdcd20c51b0debb07842eead5b9e7c80d70c9d446e47dd23d0535557e5fa81655b811fa7fca5df6c7518af8043f6e548 SHA512 5e43c124e5faef5d7691c8fc7f6c2f875e9be0a4555bd8df49553affc9bb50583a3460394c766a507203c244b2ee7b2633fa4c922db8ce3763fe6e5aa9db32a2
EBUILD kicad-templates-7.0.9.ebuild 563 BLAKE2B 0f0bb850662bc5173d58c090e62bc59b1cf1b695fea6c99f8d3112dea524c61f37f7021cf9d03e33936ca2a1cbcbce26d769baa6b69160faef09f004e4eb626a SHA512 43cc520b754ea277a54f25a5ff21b53b32a2974a643a957a763878e09b4b04dfd94e710ebd431846c5581f3cf1e5d098e15f3cd458d2702141ef15760bc53db4
MISC metadata.xml 555 BLAKE2B 3da578d0a134622513076db9ee939f467173c38b96ca157f95485a799b6f57a6ee07cbb84a0402e8f68be4a44fe8db9b214e2730878449ee44caaf284e0dc2d8 SHA512 274899879d1075fc5e421d7181934e9359ba93c73fe4beb67ab4c28456931b21ff321b36ce1c2e56d37ad8387b75dfc8cffbd0235fadb52ef9c5a4a0cecaa051

View File

@ -0,0 +1,22 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Electronic Schematic and PCB design tools project templates"
HOMEPAGE="https://github.com/kicad/kicad-templates"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.com/kicad/libraries/${PN}.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"
RDEPEND=">=sci-electronics/kicad-7.0.0"

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>zoltan@sinustrom.info</email>
<name>Zoltan Puskas</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="gitlab">kicad/libraries/kicad-templates</remote-id>
<remote-id type="github">kicad/kicad-templates</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,4 @@
AUX kicad-7.0.0-werror.patch 682 BLAKE2B 268cf848679ffb5b5aa2389a6392986f908c64861fb6908a864ae41d788f8ac10a21d30b7a20b98409cad7f57191958f9d95d448be7c8070806c585c03d7ce8a SHA512 c30b9a080cc74687b44fb5e547d746c4e3298096e9ffa1bf5a7a2b477efb8d05db8adad7255d6b92eb2c00f739e4fcd79b9c198b3122265d26edc1db5cb4ee5e
DIST kicad-7.0.9.tar.bz2 43964032 BLAKE2B 78f7ad1409a60e9d577c97b57745e5aaa4c104ff8b7beeee6bcd4bedac2aa05b1fb4362ccb8a9ec01a322d420214a44bda30b0695a4bf02ea001f733c8671c7d SHA512 373f744d1295a04862cb9997541c3180ef3f11cd313b4bf8ff31024fe2dca1cbb5b0b15bc72f645a50fd78a0f9c4c840c8ed826e3df8b107d0d172c4c9020f2d
EBUILD kicad-7.0.9.ebuild 4176 BLAKE2B d0fb5c9a2c445fe056dd46ca9c11de274c44a6169cca3b0bb115c218b122b6bf43b49f9c05ad7565a1058b7a47b64bf23c9150f7caef7c724a6b6be3873874bf SHA512 12526591febb7c328252ab32b2b3520540db0fa0fc7bd1bd42d2476eb2c0e12d9fe2420fdca9d350c464deaded48c8798f926b882cc862068ac2a774b6b4e6c6
MISC metadata.xml 765 BLAKE2B ca4295c6a975ed0161e0e19d6faffa585001c65bb1b6c53659d63c22e10aa1856840752182e3f9108b11b582105691f6d03f3a63ee52fd5ea875b6ba3049e379 SHA512 4af8f8ba855e6c5dfc6e4f34ba1efb0705fb92dffb9fcc6196457a43ebca11da4b1fa752a6bba02ce3bbb7bfbbeeb5a5f8cedfb055378d67f622014ba3240768

View File

@ -0,0 +1,21 @@
From 04fc6081bd3d6575d00589f71150ab796778a9c9 Mon Sep 17 00:00:00 2001
From: Matthew Smith <matthew@gentoo.org>
Date: Mon, 20 Feb 2023 17:53:50 +0000
Subject: [PATCH] build: Remove Werror flag from clipper2
Bug: https://bugs.gentoo.org/895014
--- a/thirdparty/clipper2/CMakeLists.txt
+++ b/thirdparty/clipper2/CMakeLists.txt
@@ -27,7 +27,7 @@ target_compile_definitions(clipper2 PUBLIC USINGZ)
if (MSVC)
target_compile_options(clipper2 PRIVATE /W4 /WX)
else()
- target_compile_options(clipper2 PRIVATE -Wall -Wextra -Wpedantic -Werror)
+ target_compile_options(clipper2 PRIVATE -Wall -Wextra -Wpedantic)
target_link_libraries(clipper2 PUBLIC -lm)
endif()
--
2.39.2

View File

@ -0,0 +1,167 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
WX_GTK_VER="3.2-gtk3"
inherit check-reqs cmake optfeature python-single-r1 toolchain-funcs wxwidgets xdg-utils
DESCRIPTION="Electronic Schematic and PCB design tools"
HOMEPAGE="https://www.kicad.org"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.com/kicad/code/kicad.git"
inherit git-r3
else
MY_PV="${PV/_rc/-rc}"
MY_P="${PN}-${MY_PV}"
SRC_URI="https://gitlab.com/kicad/code/${PN}/-/archive/${MY_PV}/${MY_P}.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/${PN}-${MY_PV}"
if [[ ${PV} != *_rc* ]] ; then
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
fi
fi
# BSD for bundled pybind
LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD"
SLOT="0"
IUSE="doc examples nls openmp"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# Contains bundled pybind but it's patched for wx
# See https://gitlab.com/kicad/code/kicad/-/commit/74e4370a9b146b21883d6a2d1df46c7a10bd0424
# Depend on opencascade:0 to get unslotted variant (so we know path to it), bug #833301
# Depend wxGTK version needs to be limited due to switch from EGL to GLX, bug #911120
COMMON_DEPEND="
dev-db/unixODBC
dev-libs/boost:=[context,nls]
media-libs/freeglut
media-libs/glew:0=
>=media-libs/glm-0.9.9.1
media-libs/mesa[X(+)]
net-misc/curl
>=sci-libs/opencascade-7.3.0:0=
>=x11-libs/cairo-1.8.8:=
>=x11-libs/pixman-0.30
>sci-electronics/ngspice-27[shared]
sys-libs/zlib
>=x11-libs/wxGTK-3.2.2.1-r3:${WX_GTK_VER}[X,opengl]
$(python_gen_cond_dep '
dev-libs/boost:=[context,nls,python,${PYTHON_USEDEP}]
~dev-python/wxpython-4.2.0:*[${PYTHON_USEDEP}]
')
${PYTHON_DEPS}
nls? (
sys-devel/gettext
)
"
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}
sci-electronics/electronics-menu
"
BDEPEND=">=dev-lang/swig-4.0
doc? ( app-doc/doxygen )"
if [[ ${PV} == 9999 ]] ; then
# x11-misc-util/macros only required on live ebuilds
BDEPEND+=" >=x11-misc/util-macros-1.18"
fi
CHECKREQS_DISK_BUILD="1500M"
PATCHES=(
"${FILESDIR}"/${PN}-7.0.0-werror.patch
)
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
python-single-r1_pkg_setup
setup-wxwidgets
check-reqs_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999 ]]; then
git-r3_src_unpack
else
default_src_unpack
fi
}
src_configure() {
xdg_environment_reset
local mycmakeargs=(
-DKICAD_DOCS="${EPREFIX}/usr/share/doc/${PN}-doc-${PV}"
-DKICAD_SCRIPTING_WXPYTHON=ON
-DKICAD_USE_EGL=OFF
-DKICAD_BUILD_I18N="$(usex nls)"
-DKICAD_I18N_UNIX_STRICT_PATH="$(usex nls)"
-DPYTHON_DEST="$(python_get_sitedir)"
-DPYTHON_EXECUTABLE="${PYTHON}"
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DPYTHON_LIBRARY="$(python_get_library_path)"
-DKICAD_INSTALL_DEMOS="$(usex examples)"
-DCMAKE_SKIP_RPATH="ON"
-DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade
-DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
if use doc; then
cmake_src_compile doxygen-docs
fi
}
src_test() {
# Test cannot find library in Portage's sandbox. Let's create a link so test can run.
ln -s "${BUILD_DIR}/eeschema/_eeschema.kiface" "${BUILD_DIR}/qa/eeschema/_eeschema.kiface" || die
# LD_LIBRARY_PATH is there to help it pick up the just-built libraries
LD_LIBRARY_PATH="${BUILD_DIR}/3d-viewer/3d_cache/sg:${LD_LIBRARY_PATH}" cmake_src_test
}
src_install() {
cmake_src_install
python_optimize
dodoc doxygen/eagle-plugin-notes.txt
if use doc ; then
cd doxygen || die
dodoc -r out/html/.
fi
}
pkg_postinst() {
optfeature "Component symbols library" sci-electronics/kicad-symbols
optfeature "Component footprints library" sci-electronics/kicad-footprints
optfeature "3D models of components " sci-electronics/kicad-packages3d
optfeature "Project templates" sci-electronics/kicad-templates
optfeature "Extended documentation" app-doc/kicad-doc
optfeature "Creating 3D models of components" media-gfx/wings
xdg_desktop_database_update
xdg_mimeinfo_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
xdg_icon_cache_update
}

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>zoltan@sinustrom.info</email>
<name>Zoltan Puskas</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="ngspice">Enable circuit simulation</flag>
</use>
<longdescription>
Kicad is an open source (GPL) software for the creation of electronic
schematic diagrams and printed circuit board artwork.
</longdescription>
<upstream>
<remote-id type="gitlab">kicad/code/kicad</remote-id>
<remote-id type="launchpad">kicad</remote-id>
</upstream>
</pkgmetadata>