Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/pcb/, sci-electronics/pcb/files/
Date: Sun, 26 Jan 2020 18:52:47
Message-Id: 1580064742.79502186a9cd671ceec44878a59f2a05fc81031b.soap@gentoo
1 commit: 79502186a9cd671ceec44878a59f2a05fc81031b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 26 18:52:22 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 26 18:52:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79502186
7
8 sci-electronics/pcb: Bump to version 4.2.2
9
10 * EAPI 7
11 * Disable opengl unconditionally (due to EOL x11-libs/gtkglext)
12 * Remove USE="static-libs"
13 * Remove USE="motif"
14 * Remove USE="xrender"
15
16 Bug: https://bugs.gentoo.org/706526
17 Package-Manager: Portage-2.3.85, Repoman-2.3.20
18 Signed-off-by: David Seifert <soap <AT> gentoo.org>
19
20 sci-electronics/pcb/Manifest | 1 +
21 .../pcb/files/pcb-4.2.2-fix-autotools.patch | 36 +++++++
22 sci-electronics/pcb/metadata.xml | 1 +
23 sci-electronics/pcb/pcb-4.2.2.ebuild | 109 +++++++++++++++++++++
24 4 files changed, 147 insertions(+)
25
26 diff --git a/sci-electronics/pcb/Manifest b/sci-electronics/pcb/Manifest
27 index de8e433f91d..9bc9f5fd982 100644
28 --- a/sci-electronics/pcb/Manifest
29 +++ b/sci-electronics/pcb/Manifest
30 @@ -1,2 +1,3 @@
31 DIST pcb-20140316.tar.gz 4210077 BLAKE2B a0a676bc0eaedd269644d7f7e6d6d443c4ca1a66aba4db18a0aea33edef2dbd84d7a027a25c310bce9d309c46b63ac4f1b807587f5064ce81aadaea2f675521b SHA512 5b9a2704b4d3c95f03afad0fe8fb5414b2aa9d680e40bf77ad9b46a9d4e14ba740858092794a9ff6788f31ac19063b126d8ceed6316c0d9eaaaa574e6678c071
32 DIST pcb-4.0.2.tar.gz 4762521 BLAKE2B 3bae7983c84a79edc882b822b91e94adc00ec4e9b329719a0a15599bb12a6771318844ffbd6163b3c646be8410af1964d59b523fffaebd690af2cce9b4f0f98e SHA512 8bca9bdbdd640174e82e9cf1a457f9ef3f9b7c3f1d957a21c3bb07e50134b83504d85f312e429bed90bfc58f786b4319ffb69c5637ed4fd69a0312e11c6ad30b
33 +DIST pcb-4.2.2.tar.gz 5182807 BLAKE2B e2a9ab7fdeb402d9d07717fbc2ad4b31594aada95693c2a7046c73364a43591ee1a537f0cbda67bf46e39d53c61a454f146963fe14a4661fe2ffbc11c2eab99f SHA512 c76fc053fbb0a8a9b7aef494a37d3587efaa2023affd32c3cce895632a7e68fbb85f8862cff8349c7d281365379c07a5471c9467c5977a7aa053a83fc6499c55
34
35 diff --git a/sci-electronics/pcb/files/pcb-4.2.2-fix-autotools.patch b/sci-electronics/pcb/files/pcb-4.2.2-fix-autotools.patch
36 new file mode 100644
37 index 00000000000..22a4563d2db
38 --- /dev/null
39 +++ b/sci-electronics/pcb/files/pcb-4.2.2-fix-autotools.patch
40 @@ -0,0 +1,36 @@
41 +1. avoid rebuilding documentation
42 +2. avoid non-portable syntax
43 +
44 +--- a/configure.ac
45 ++++ b/configure.ac
46 +@@ -7,6 +7,9 @@
47 + AC_GNU_SOURCE
48 + AC_CONFIG_HEADERS([config.h])
49 +
50 ++# avoid rebuilding documentation
51 ++AM_MAINTAINER_MODE
52 ++
53 + ##########################################################################
54 + #
55 + # Try to figure out if we are building from git sources.
56 +@@ -1285,11 +1288,6 @@
57 + if test -d $srcdir/doc; then
58 + AC_CONFIG_FILES(doc/Makefile)
59 + fi
60 +-if test -d $srcdir/doc/gs; then
61 +- AC_CONFIG_FILES(doc/gs/Makefile)
62 +- AC_CONFIG_FILES(doc/gs/gafrc)
63 +- AC_CONFIG_FILES(doc/gs/gschemrc)
64 +-fi
65 + if test -d $srcdir/example; then
66 + AC_CONFIG_FILES(example/Makefile)
67 + AC_CONFIG_FILES(example/libraries/Makefile)
68 +--- a/Makefile.am
69 ++++ b/Makefile.am
70 +@@ -15,5 +15,5 @@
71 + MAINTAINERCLEANFILES= $(INTLTOOL_FILES)
72 +
73 + ACLOCAL_AMFLAGS = -I m4
74 +-DISTCHECK_CONFIGURE_FLAGS := ${DISTCHECK_CONFIGURE_FLAGS} --disable-update-mime-database --disable-update-desktop-database GTK_UPDATE_ICON_THEME_BIN=true --with-gui=batch
75 ++DISTCHECK_CONFIGURE_FLAGS = ${DISTCHECK_CONFIGURE_FLAGS} --disable-update-mime-database --disable-update-desktop-database GTK_UPDATE_ICON_THEME_BIN=true --with-gui=batch
76 +
77
78 diff --git a/sci-electronics/pcb/metadata.xml b/sci-electronics/pcb/metadata.xml
79 index 358405f57a2..2ab5e9e2afd 100644
80 --- a/sci-electronics/pcb/metadata.xml
81 +++ b/sci-electronics/pcb/metadata.xml
82 @@ -15,6 +15,7 @@
83 <flag name="nelma">NELMA file export</flag>
84 <flag name="png">PNG graphics export</flag>
85 <flag name="gcode">gcode file export</flag>
86 + <flag name="gsvit">GSvit file export</flag>
87 <flag name="tk">Build tcl/tk graphical QFP footprint generator</flag>
88 <flag name="xrender">Translucent PCB display for Motif/Lesstif GUI</flag>
89 <flag name="m4lib-png">Enable creating png previews for the m4 library</flag>
90
91 diff --git a/sci-electronics/pcb/pcb-4.2.2.ebuild b/sci-electronics/pcb/pcb-4.2.2.ebuild
92 new file mode 100644
93 index 00000000000..d7c8ac609fe
94 --- /dev/null
95 +++ b/sci-electronics/pcb/pcb-4.2.2.ebuild
96 @@ -0,0 +1,109 @@
97 +# Copyright 1999-2020 Gentoo Authors
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=7
101 +
102 +inherit autotools toolchain-funcs xdg
103 +
104 +DESCRIPTION="GPL Electronic Design Automation: Printed Circuit Board editor"
105 +HOMEPAGE="http://pcb.geda-project.org/"
106 +SRC_URI="mirror://sourceforge/pcb/pcb/${P}/${P}.tar.gz"
107 +
108 +LICENSE="GPL-2"
109 +SLOT="0"
110 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-macos"
111 +IUSE="dbus doc gcode gif gsvit gui jpeg m4lib-png nelma png test tk toporouter"
112 +# toporouter-output USE flag removed, there seems to be no result
113 +RESTRICT="!test? ( test )"
114 +
115 +RDEPEND="
116 + dev-libs/glib:2
117 + sci-electronics/electronics-menu
118 + gif? ( media-libs/gd )
119 + gsvit? ( media-libs/gd[png] )
120 + gui? (
121 + x11-libs/gtk+:2
122 + x11-libs/pango
123 + dbus? ( sys-apps/dbus )
124 + )
125 + jpeg? ( media-libs/gd[jpeg] )
126 + nelma? ( media-libs/gd[png] )
127 + gcode? ( media-libs/gd[png] )
128 + virtual/libintl
129 + png? ( media-libs/gd[png] )
130 + m4lib-png? ( media-libs/gd[png] )
131 + tk? ( >=dev-lang/tk-8:0 )"
132 +#toporouter-output? ( x11-libs/cairo )
133 +
134 +DEPEND="${RDEPEND}"
135 +BDEPEND="
136 + >=dev-util/intltool-0.35
137 + virtual/pkgconfig
138 + sys-devel/gettext
139 + test? (
140 + sci-electronics/gerbv
141 + virtual/imagemagick-tools
142 + )"
143 +
144 +PATCHES=( "${FILESDIR}"/${PN}-4.2.2-fix-autotools.patch )
145 +
146 +src_prepare() {
147 + default
148 + eautoreconf
149 +
150 + # tests are unconditional, even in the known presence of missing/disabled
151 + # features, so we have to remove feature tests ourselves.
152 + if ! use gcode; then
153 + sed -i '/^hid_gcode/d' tests/tests.list || die
154 + fi
155 + if ! use gsvit; then
156 + sed -i '/^hid_gsvit/d' tests/tests.list || die
157 + fi
158 + if ! use nelma; then
159 + sed -i '/^hid_nelma/d' tests/tests.list || die
160 + fi
161 + if ! use png; then
162 + sed -i '/^hid_png/d' tests/tests.list || die
163 + fi
164 + if ! use gif; then
165 + sed -i '/^hid_png10[[:digit:]]/d' tests/tests.list || die
166 + fi
167 + if ! use jpeg; then
168 + sed -i '/^hid_png20[[:digit:]]/d' tests/tests.list || die
169 + fi
170 +}
171 +
172 +src_configure() {
173 + local exporters=( bom gerber ps ipcd356 )
174 + if use png || use jpeg || use gif; then
175 + exporters+=( png )
176 + fi
177 + use gcode && exporters+=( gcode )
178 + use gsvit && exporters+=( gsvit )
179 + use nelma && exporters+=( nelma )
180 + use tk || export WISH="${EPREFIX}/bin/true"
181 +
182 + # toporouter-output USE flag removed, seems to do nothing
183 + # opengl disabled unconditionally, due to requiring EOL gtkglext
184 + econf \
185 + --disable-gl \
186 + --disable-rpath \
187 + --disable-toporouter-output \
188 + --disable-update-mime-database \
189 + --disable-update-desktop-database \
190 + --disable-xrender \
191 + --enable-nls \
192 + $(use_enable doc) \
193 + $(use_enable gif) \
194 + $(use_enable jpeg) \
195 + $(use_enable png) \
196 + $(use_enable m4lib-png) \
197 + $(use_enable toporouter) \
198 + $(use_enable gui dbus $(usex dbus yes no)) \
199 + --with-gui=$(usex gui gtk batch) \
200 + --with-exporters="${exporters[*]}"
201 +}
202 +
203 +src_compile() {
204 + emake AR="$(tc-getAR)"
205 +}