diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-17 12:27:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-17 12:27:31 +0000 |
commit | bcf596975a1c2450e077c80c84017c54198f216c (patch) | |
tree | 65f19d38ef25fd66020bd9d2f1f1ffa0391aba6c /sci-electronics/pcb | |
parent | 2e0bf408961ec1023d3db1fc5d687c233661ac26 (diff) |
gentoo auto-resync : 17:03:2023 - 12:27:30
Diffstat (limited to 'sci-electronics/pcb')
-rw-r--r-- | sci-electronics/pcb/Manifest | 2 | ||||
-rw-r--r-- | sci-electronics/pcb/pcb-4.3.0.ebuild | 113 |
2 files changed, 115 insertions, 0 deletions
diff --git a/sci-electronics/pcb/Manifest b/sci-electronics/pcb/Manifest index 4746efa6ff52..43b94c4e81eb 100644 --- a/sci-electronics/pcb/Manifest +++ b/sci-electronics/pcb/Manifest @@ -1,4 +1,6 @@ AUX pcb-4.2.2-fix-autotools.patch 1182 BLAKE2B 627b48ae5ec4cf50a060c95ca13758000837e808aa1eb84ac9ab205d8b438cbe50f428b1c7100e6aad043eaefaa0a32e8797e08a05bfc9345d005199b05f3cf3 SHA512 9c3c1fc4d7e71920e0f06bdc4961ea3cecb7aa27f726f9851e2a69d1aea17a761eca71362a444815956df10338c7b985440d1f4c50a6531597687080ac8bd600 DIST pcb-4.2.2.tar.gz 5182807 BLAKE2B e2a9ab7fdeb402d9d07717fbc2ad4b31594aada95693c2a7046c73364a43591ee1a537f0cbda67bf46e39d53c61a454f146963fe14a4661fe2ffbc11c2eab99f SHA512 c76fc053fbb0a8a9b7aef494a37d3587efaa2023affd32c3cce895632a7e68fbb85f8862cff8349c7d281365379c07a5471c9467c5977a7aa053a83fc6499c55 +DIST pcb-4.3.0.tar.gz 5383782 BLAKE2B 745db23f9a578b4e785ccaca2f5acccbe83fcd94bfaf34f594fd7fe3ec68d0fe4183f2d705f0a3fb32b1f07b6a4af657ab27cda7b70d652072365828e0a07289 SHA512 eaee631c7c2d0a8047e95634ac1a3892fa38d621d7fd3c8aafaaa05692cf6e6a92ea5733bf512631f9f8c2ff5b6dbeeda7f304cd35cfb771d339976842d64039 EBUILD pcb-4.2.2.ebuild 2746 BLAKE2B 422854e39687a961c085c8a28855ba96a6d454783e3c9a942b7ab32f0a532dd8ab78eef568e08f5bbe348439fc06b47636be22afe617b069efd9dbd2ce8f5e69 SHA512 ee86e3cebd9d79ace3d1364ecd001abbb7b9de754f1a7edb75c81c31ab43d1bd6f887b8fda0fc264cf4b4ae59d21e645d295344b083420d1fa8b55c636f0e4d5 +EBUILD pcb-4.3.0.ebuild 2792 BLAKE2B 998bfd6f106818a6e22ae3ca11693c902c10ffed1b6ae9cc6c7c4130c2b65c2c4619b78ba6512455d797c3b0ce5291125151b7d00542ded524b9cd0c243c47f8 SHA512 09b129fee0db36f57679657289ceb8335d843ff4d39daca147fb0706342d8aa282cda3662f574a6fc2daad5f0d4eaa9166f9fb3679317da94ed1682638170f95 MISC metadata.xml 1000 BLAKE2B 16e10d1b03baceb85537eeb0cdf890229bc82c2029c056df362a6bbcab51e65028b49e125f80cd2b7f092f30b8ec900412a29d95d0e31638164d4de29e5c6571 SHA512 06db16a34c69ebb45c8dbe3896b0f1f717a3ec263880ca4a9e9b3af81bda82b94201d4f329c85559761d15b8ab744a178a16a437c8e5e2439f0d1e2b2378f767 diff --git a/sci-electronics/pcb/pcb-4.3.0.ebuild b/sci-electronics/pcb/pcb-4.3.0.ebuild new file mode 100644 index 000000000000..80f27c1fb2ba --- /dev/null +++ b/sci-electronics/pcb/pcb-4.3.0.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs virtualx xdg + +DESCRIPTION="GPL Electronic Design Automation: Printed Circuit Board editor" +HOMEPAGE="http://pcb.geda-project.org/" +SRC_URI="mirror://sourceforge/pcb/pcb/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="dbus doc gcode gif gsvit gui jpeg m4lib-png nelma png test tk toporouter" +# toporouter-output USE flag removed, there seems to be no result +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/glib:2 + sci-electronics/electronics-menu + gif? ( media-libs/gd ) + gsvit? ( media-libs/gd[png] ) + gui? ( + x11-libs/gtk+:2 + x11-libs/pango + dbus? ( sys-apps/dbus ) + ) + jpeg? ( media-libs/gd[jpeg] ) + nelma? ( media-libs/gd[png] ) + gcode? ( media-libs/gd[png] ) + virtual/libintl + png? ( media-libs/gd[png] ) + m4lib-png? ( media-libs/gd[png] ) + tk? ( >=dev-lang/tk-8:0 )" +#toporouter-output? ( x11-libs/cairo ) + +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/intltool-0.35 + virtual/pkgconfig + sys-devel/gettext + test? ( + sci-electronics/gerbv + virtual/imagemagick-tools + )" + +PATCHES=( "${FILESDIR}"/${PN}-4.2.2-fix-autotools.patch ) + +src_prepare() { + default + eautoreconf + + # tests are unconditional, even in the known presence of missing/disabled + # features, so we have to remove feature tests ourselves. + if ! use gcode; then + sed -i '/^hid_gcode/d' tests/tests.list || die + fi + if ! use gsvit; then + sed -i '/^hid_gsvit/d' tests/tests.list || die + fi + if ! use nelma; then + sed -i '/^hid_nelma/d' tests/tests.list || die + fi + if ! use png; then + sed -i '/^hid_png/d' tests/tests.list || die + fi + if ! use gif; then + sed -i '/^hid_png10[[:digit:]]/d' tests/tests.list || die + fi + if ! use jpeg; then + sed -i '/^hid_png20[[:digit:]]/d' tests/tests.list || die + fi +} + +src_configure() { + local exporters=( bom gerber ps ipcd356 ) + if use png || use jpeg || use gif; then + exporters+=( png ) + fi + use gcode && exporters+=( gcode ) + use gsvit && exporters+=( gsvit ) + use nelma && exporters+=( nelma ) + use tk || export WISH="${EPREFIX}/bin/true" + + # toporouter-output USE flag removed, seems to do nothing + # opengl disabled unconditionally, due to requiring EOL gtkglext + econf \ + --disable-gl \ + --disable-rpath \ + --disable-toporouter-output \ + --disable-update-mime-database \ + --disable-update-desktop-database \ + --disable-xrender \ + --enable-nls \ + $(use_enable doc) \ + $(use_enable gif) \ + $(use_enable jpeg) \ + $(use_enable png) \ + $(use_enable m4lib-png) \ + $(use_enable toporouter) \ + $(use_enable gui dbus $(usex dbus yes no)) \ + --with-gui=$(usex gui gtk batch) \ + --with-exporters="${exporters[*]}" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_test() { + virtx emake check +} |