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/geda/, sci-electronics/geda/files/
Date: Mon, 28 Dec 2020 14:16:11
Message-Id: 1609164942.0b12111fda0e3e00c201e5c52003259788f2ca15.soap@gentoo
1 commit: 0b12111fda0e3e00c201e5c52003259788f2ca15
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Mon Dec 28 14:15:42 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 14:15:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b12111f
7
8 sci-electronics/geda: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/707892
11 Package-Manager: Portage-3.0.9, Repoman-3.0.1
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 .../geda/files/geda-1.9.2-fno-common.patch | 97 ++++++++++++++++++++++
16 sci-electronics/geda/geda-1.9.2-r1.ebuild | 75 ++++++++---------
17 2 files changed, 132 insertions(+), 40 deletions(-)
18
19 diff --git a/sci-electronics/geda/files/geda-1.9.2-fno-common.patch b/sci-electronics/geda/files/geda-1.9.2-fno-common.patch
20 new file mode 100644
21 index 00000000000..c509b42904a
22 --- /dev/null
23 +++ b/sci-electronics/geda/files/geda-1.9.2-fno-common.patch
24 @@ -0,0 +1,97 @@
25 +--- a/gschem/include/globals.h
26 ++++ b/gschem/include/globals.h
27 +@@ -27,7 +27,7 @@
28 + extern GList *global_window_list;
29 +
30 + /* Manager for recently used files */
31 +-GtkRecentManager *recent_manager;
32 ++extern GtkRecentManager *recent_manager;
33 +
34 + /* colors */
35 + extern GdkColor white;
36 +--- a/gschem/src/globals.c
37 ++++ b/gschem/src/globals.c
38 +@@ -28,6 +28,8 @@
39 + /* window list */
40 + GList *global_window_list = NULL;
41 +
42 ++GtkRecentManager *recent_manager = NULL;
43 ++
44 + char *rc_filename = NULL;
45 + char *output_filename = NULL;
46 +
47 +--- a/gattrib/include/globals.h
48 ++++ b/gattrib/include/globals.h
49 +@@ -88,7 +88,7 @@
50 + * structs.h
51 + */
52 + /*------------------------------------------------------------------*/
53 +-TOPLEVEL *pr_current;
54 ++extern TOPLEVEL *pr_current;
55 +
56 + /*------------------------------------------------------------------*/
57 + /*!
58 +@@ -97,7 +97,7 @@ TOPLEVEL *pr_current;
59 + * callbacks. It is defined in structs.h
60 + */
61 + /*------------------------------------------------------------------*/
62 +-SHEET_DATA *sheet_head;
63 ++extern SHEET_DATA *sheet_head;
64 +
65 + /*------------------------------------------------------------------
66 + * GTKsheet includes: stuff for dealing with windows.
67 +@@ -106,18 +106,18 @@ SHEET_DATA *sheet_head;
68 + #define DEFAULT_SPACE 8
69 + #define NUM_SHEETS 3 /* Components, Nets, and Pins */
70 +
71 +-GtkWidget *window; /* Main window */
72 +-GtkWidget *notebook;
73 ++extern GtkWidget *window; /* Main window */
74 ++extern GtkWidget *notebook;
75 +
76 +-GtkSheet **sheets; /* These are the spreadsheet widgets themselves */
77 ++extern GtkSheet **sheets; /* These are the spreadsheet widgets themselves */
78 +
79 +-GtkWidget **scrolled_windows;
80 +-GtkWidget *entry;
81 +-GtkWidget *location;
82 +-GtkWidget *left_button;
83 +-GtkWidget *center_button;
84 +-GtkWidget *right_button;
85 +-GtkWidget *label;
86 ++extern GtkWidget **scrolled_windows;
87 ++extern GtkWidget *entry;
88 ++extern GtkWidget *location;
89 ++extern GtkWidget *left_button;
90 ++extern GtkWidget *center_button;
91 ++extern GtkWidget *right_button;
92 ++extern GtkWidget *label;
93 +
94 + /* command line switch settings */
95 + extern int verbose_mode;
96 +--- a/gattrib/src/globals.c
97 ++++ b/gattrib/src/globals.c
98 +@@ -34,6 +34,23 @@
99 + #include "../include/prototype.h" /* function prototypes */
100 + #include "../include/globals.h"
101 +
102 ++TOPLEVEL *pr_current;
103 ++
104 ++SHEET_DATA *sheet_head;
105 ++
106 ++GtkWidget *window;
107 ++GtkWidget *notebook;
108 ++
109 ++GtkSheet **sheets;
110 ++
111 ++GtkWidget **scrolled_windows;
112 ++GtkWidget *entry;
113 ++GtkWidget *location;
114 ++GtkWidget *left_button;
115 ++GtkWidget *center_button;
116 ++GtkWidget *right_button;
117 ++GtkWidget *label;
118 ++
119 + /* command line arguments */
120 + int verbose_mode=FALSE; //!< Reflects the value of the command line flag
121 + int quiet_mode=FALSE; //!< Reflects the value of the command line flag
122
123 diff --git a/sci-electronics/geda/geda-1.9.2-r1.ebuild b/sci-electronics/geda/geda-1.9.2-r1.ebuild
124 index b0b3ffbf999..c85d6f34977 100644
125 --- a/sci-electronics/geda/geda-1.9.2-r1.ebuild
126 +++ b/sci-electronics/geda/geda-1.9.2-r1.ebuild
127 @@ -1,46 +1,47 @@
128 # Copyright 1999-2020 Gentoo Authors
129 # Distributed under the terms of the GNU General Public License v2
130
131 -EAPI=6
132 -inherit autotools eutils xdg-utils gnome2-utils versionator
133 +EAPI=7
134 +
135 +inherit autotools xdg
136
137 MY_PN=${PN}-gaf
138 MY_P=${MY_PN}-${PV}
139
140 DESCRIPTION="GPL Electronic Design Automation (gEDA):gaf core package"
141 HOMEPAGE="http://wiki.geda-project.org/geda:gaf"
142 -SRC_URI="http://ftp.geda-project.org/${MY_PN}/unstable/v$(get_version_component_range 1-2)/${PV}/${MY_P}.tar.gz"
143 +SRC_URI="http://ftp.geda-project.org/${MY_PN}/unstable/v$(ver_cut 1-2)/${PV}/${MY_P}.tar.gz"
144
145 LICENSE="GPL-2"
146 SLOT="0"
147 KEYWORDS="amd64 ppc x86"
148 IUSE="debug doc examples nls stroke threads"
149
150 -CDEPEND="
151 +RDEPEND="
152 dev-libs/glib:2
153 + dev-scheme/guile
154 + sci-electronics/electronics-menu
155 + x11-libs/cairo
156 + x11-libs/gdk-pixbuf
157 x11-libs/gtk+:2
158 x11-libs/pango
159 - >=x11-libs/cairo-1.2.0
160 - x11-libs/gdk-pixbuf
161 - >=dev-scheme/guile-2.0.0
162 nls? ( virtual/libintl )
163 - stroke? ( >=dev-libs/libstroke-0.5.1 )"
164 + stroke? ( dev-libs/libstroke )"
165
166 -DEPEND="${CDEPEND}
167 - sys-apps/groff
168 +DEPEND="${RDEPEND}
169 dev-util/desktop-file-utils
170 - x11-misc/shared-mime-info
171 + x11-misc/shared-mime-info"
172 +BDEPEND="
173 + sys-apps/groff
174 virtual/pkgconfig
175 - nls? ( >=sys-devel/gettext-0.16 )"
176 -
177 -RDEPEND="${CDEPEND}
178 - sci-electronics/electronics-menu"
179 -
180 -S=${WORKDIR}/${MY_P}
181 + nls? ( sys-devel/gettext )"
182
183 -DOCS="AUTHORS NEWS README"
184 +S="${WORKDIR}/${MY_P}"
185
186 -PATCHES=( "${FILESDIR}"/${P}-guile-2.2.patch )
187 +PATCHES=(
188 + "${FILESDIR}"/${P}-guile-2.2.patch
189 + "${FILESDIR}"/${P}-fno-common.patch
190 +)
191
192 src_prepare() {
193 default
194 @@ -65,36 +66,30 @@ src_prepare() {
195 sed -i -e 's/sarlacc_schem_LDFLAGS =/sarlacc_schem_LDFLAGS = $(GIO_LIBS)/' \
196 contrib/sarlacc_schem/Makefile.am || die
197
198 + rm docs/wiki/media/geda/gsch2pcb-libs.tar.gz || die
199 +
200 eautoreconf
201 }
202
203 src_configure() {
204 - econf \
205 - $(use_enable threads threads posix) \
206 - $(use_with stroke libstroke) \
207 - $(use_enable nls) \
208 - $(use_enable debug assert) \
209 - --disable-doxygen \
210 - --disable-rpath \
211 + local myconf=(
212 + --disable-doxygen
213 + --disable-rpath
214 --disable-update-xdg-database
215 + $(use_enable debug assert)
216 + $(use_enable nls)
217 + $(use_enable threads threads posix)
218 + $(use_with stroke libstroke)
219 + )
220 +
221 + econf "${myconf[@]}"
222 }
223
224 src_test() {
225 emake -j1 check
226 }
227
228 -pkg_preinst() {
229 - gnome2_icon_savelist
230 -}
231 -
232 -pkg_postinst() {
233 - xdg_desktop_database_update
234 - xdg_mimeinfo_database_update
235 - gnome2_icon_cache_update
236 -}
237 -
238 -pkg_postrm() {
239 - xdg_desktop_database_update
240 - xdg_mimeinfo_database_update
241 - gnome2_icon_cache_update
242 +src_install() {
243 + default
244 + find "${ED}" -name '*.la' -delete || die
245 }