1 |
commit: a060c466975c554fa26dec940b473e67b72bed62 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 2 19:27:06 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 2 19:27:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a060c466 |
7 |
|
8 |
sci-electronics/geda: drop xorn completely |
9 |
|
10 |
This is an optional CLI utility that is stuck on python2 |
11 |
|
12 |
Closes: https://bugs.gentoo.org/834496 |
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
15 |
|
16 |
.../geda/files/geda-1.10.2-drop-xorn.patch | 60 ++++++++++++++++++++++ |
17 |
.../{geda-1.10.2.ebuild => geda-1.10.2-r1.ebuild} | 17 +++--- |
18 |
2 files changed, 68 insertions(+), 9 deletions(-) |
19 |
|
20 |
diff --git a/sci-electronics/geda/files/geda-1.10.2-drop-xorn.patch b/sci-electronics/geda/files/geda-1.10.2-drop-xorn.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..f1532677bd53 |
23 |
--- /dev/null |
24 |
+++ b/sci-electronics/geda/files/geda-1.10.2-drop-xorn.patch |
25 |
@@ -0,0 +1,60 @@ |
26 |
+diff --git a/Makefile.am b/Makefile.am |
27 |
+index 161083c..d54eded 100644 |
28 |
+--- a/Makefile.am |
29 |
++++ b/Makefile.am |
30 |
+@@ -2,7 +2,7 @@ if ENABLE_GATTRIB |
31 |
+ GATTRIB_DIR=gattrib |
32 |
+ endif |
33 |
+ SUBDIRS = libgeda libgedacairo gaf gschem ${GATTRIB_DIR} \ |
34 |
+- gsymcheck gnetlist-legacy utils symbols docs examples contrib xorn |
35 |
++ gsymcheck gnetlist-legacy utils symbols docs examples contrib |
36 |
+ |
37 |
+ ACLOCAL_AMFLAGS = -I m4 |
38 |
+ |
39 |
+diff --git a/Makefile.in b/Makefile.in |
40 |
+index 31778d8..59789e6 100644 |
41 |
+--- a/Makefile.in |
42 |
++++ b/Makefile.in |
43 |
+@@ -180,7 +180,7 @@ ETAGS = etags |
44 |
+ CTAGS = ctags |
45 |
+ CSCOPE = cscope |
46 |
+ DIST_SUBDIRS = libgeda libgedacairo gaf gschem gattrib gsymcheck \ |
47 |
+- gnetlist-legacy utils symbols docs examples contrib xorn |
48 |
++ gnetlist-legacy utils symbols docs examples contrib |
49 |
+ am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
50 |
+ $(top_srcdir)/build-tools/ar-lib \ |
51 |
+ $(top_srcdir)/build-tools/compile \ |
52 |
+@@ -454,7 +454,7 @@ top_builddir = @top_builddir@ |
53 |
+ top_srcdir = @top_srcdir@ |
54 |
+ @ENABLE_GATTRIB_TRUE@GATTRIB_DIR = gattrib |
55 |
+ SUBDIRS = libgeda libgedacairo gaf gschem ${GATTRIB_DIR} \ |
56 |
+- gsymcheck gnetlist-legacy utils symbols docs examples contrib xorn |
57 |
++ gsymcheck gnetlist-legacy utils symbols docs examples contrib |
58 |
+ |
59 |
+ ACLOCAL_AMFLAGS = -I m4 |
60 |
+ |
61 |
+diff --git a/autogen.sh b/autogen.sh |
62 |
+index 7b82f04..4d81174 100755 |
63 |
+--- a/autogen.sh |
64 |
++++ b/autogen.sh |
65 |
+@@ -225,4 +225,4 @@ fi |
66 |
+ run_tool "$AUTOHEADER" && |
67 |
+ run_tool "$AUTOMAKE" -Wall --copy --add-missing --gnu && |
68 |
+ run_tool "$AUTOCONF" && |
69 |
+- (cd xorn && autoreconf -if)) |
70 |
++ ) |
71 |
+ |
72 |
+ ##################################################################### |
73 |
+diff --git a/configure.ac b/configure.ac |
74 |
+index 1f19064..257ee20 100644 |
75 |
+--- a/configure.ac |
76 |
++++ b/configure.ac |
77 |
+@@ -197,8 +197,6 @@ AX_LIBGEDACAIRO([1:3:0]) |
78 |
+ export GEDADATADIR |
79 |
+ export GEDARCDIR |
80 |
+ |
81 |
+-AC_CONFIG_SUBDIRS([xorn]) |
82 |
+- |
83 |
+ ##################################################################### |
84 |
+ # Generate output |
85 |
+ ##################################################################### |
86 |
|
87 |
diff --git a/sci-electronics/geda/geda-1.10.2.ebuild b/sci-electronics/geda/geda-1.10.2-r1.ebuild |
88 |
similarity index 87% |
89 |
rename from sci-electronics/geda/geda-1.10.2.ebuild |
90 |
rename to sci-electronics/geda/geda-1.10.2-r1.ebuild |
91 |
index 535b6ce530a8..b573743f9c9e 100644 |
92 |
--- a/sci-electronics/geda/geda-1.10.2.ebuild |
93 |
+++ b/sci-electronics/geda/geda-1.10.2-r1.ebuild |
94 |
@@ -3,10 +3,9 @@ |
95 |
|
96 |
EAPI=8 |
97 |
|
98 |
-PYTHON_COMPAT=( python3_{8..10} ) |
99 |
DOCS_BUILDER="doxygen" |
100 |
DOCS_DEPEND="media-gfx/graphviz" |
101 |
-inherit autotools docs python-single-r1 xdg |
102 |
+inherit autotools docs xdg |
103 |
|
104 |
MY_PN=${PN}-gaf |
105 |
MY_P=${MY_PN}-${PV} |
106 |
@@ -19,12 +18,9 @@ S="${WORKDIR}/${MY_P}" |
107 |
LICENSE="GPL-2" |
108 |
SLOT="0" |
109 |
KEYWORDS="~amd64 ~ppc ~x86" |
110 |
-IUSE="debug examples fam nls stroke threads" |
111 |
+IUSE="debug examples fam nls" |
112 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
113 |
|
114 |
-# The Xorn python bindings aren't quite working |
115 |
-RESTRICT="test" |
116 |
- |
117 |
RDEPEND="${PYTHON_DEPS} |
118 |
dev-libs/glib:2 |
119 |
dev-scheme/guile |
120 |
@@ -34,7 +30,6 @@ RDEPEND="${PYTHON_DEPS} |
121 |
x11-libs/gtk+:2 |
122 |
x11-libs/pango |
123 |
nls? ( virtual/libintl ) |
124 |
- stroke? ( dev-libs/libstroke ) |
125 |
fam? ( app-admin/gamin ) |
126 |
" |
127 |
|
128 |
@@ -47,8 +42,14 @@ BDEPEND=" |
129 |
nls? ( sys-devel/gettext ) |
130 |
" |
131 |
|
132 |
+# Xorn requires python2 |
133 |
+PATCHES=( |
134 |
+ "${FILESDIR}/${P}-drop-xorn.patch" |
135 |
+) |
136 |
+ |
137 |
src_prepare() { |
138 |
default |
139 |
+ rm -r xorn || die |
140 |
|
141 |
if ! use doc ; then |
142 |
sed -i -e '/^SUBDIRS = /s/docs//' Makefile.in || die |
143 |
@@ -85,8 +86,6 @@ src_configure() { |
144 |
$(use_enable doc doxygen) |
145 |
$(use_enable debug assert) |
146 |
$(use_enable nls) |
147 |
- $(use_enable threads threads posix) |
148 |
- $(use_with stroke libstroke) |
149 |
$(use_with fam libfam) |
150 |
) |