1 |
commit: f585ddb8d75eaaccd5b242aad425acd8cb266b24 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 23 05:19:35 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 23 05:21:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f585ddb8 |
7 |
|
8 |
x11-libs/wxGTK: Add a 3.0.2.0-r4 straight to stable on arm that removes USE=webkit,gstreamer |
9 |
|
10 |
Unfortunately arm is delayed with stabling 3.0.3, so I'm forced to introduce |
11 |
a rebuild without USE=webkit of 3.0.2.0-r3 as r4 to stable arm users meanwhile, |
12 |
to get rid of security vulnerable webkit-gtk slots. |
13 |
As USE=gstreamer is only needed by packages that do not have any arm keywords, |
14 |
also remove USE=gstreamer from this version, as it also uses security vulnerable |
15 |
ancient versions of gstreamer (also fixed in 3.0.3 bump that's delayed for arm |
16 |
stable), and we can just remove it now together with webkit, instead of hitting |
17 |
the problem again when gstreamer:0.10 is all ready for security cleanup (and |
18 |
having to do yet another revbump for this separately later) - if arm is still |
19 |
delayed by then. |
20 |
|
21 |
Bug: https://bugs.gentoo.org/643956 |
22 |
Bug: https://bugs.gentoo.org/629208 |
23 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
24 |
|
25 |
x11-libs/wxGTK/wxGTK-3.0.2.0-r4.ebuild | 161 +++++++++++++++++++++++++++++++++ |
26 |
1 file changed, 161 insertions(+) |
27 |
|
28 |
diff --git a/x11-libs/wxGTK/wxGTK-3.0.2.0-r4.ebuild b/x11-libs/wxGTK/wxGTK-3.0.2.0-r4.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..e9f06730d38 |
31 |
--- /dev/null |
32 |
+++ b/x11-libs/wxGTK/wxGTK-3.0.2.0-r4.ebuild |
33 |
@@ -0,0 +1,161 @@ |
34 |
+# Copyright 1999-2018 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="5" |
38 |
+ |
39 |
+inherit autotools eutils multilib-minimal |
40 |
+ |
41 |
+DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit" |
42 |
+HOMEPAGE="https://wxwidgets.org/" |
43 |
+ |
44 |
+# we use the wxPython tarballs because they include the full wxGTK sources and |
45 |
+# docs, and are released more frequently than wxGTK. |
46 |
+SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2 |
47 |
+ doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 )" |
48 |
+ |
49 |
+KEYWORDS="arm" |
50 |
+IUSE="+X aqua doc debug libnotify opengl sdl tiff" |
51 |
+ |
52 |
+SLOT="3.0" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-libs/expat[${MULTILIB_USEDEP}] |
56 |
+ sdl? ( media-libs/libsdl[${MULTILIB_USEDEP}] ) |
57 |
+ X? ( |
58 |
+ >=dev-libs/glib-2.22:2[${MULTILIB_USEDEP}] |
59 |
+ media-libs/libpng:0=[${MULTILIB_USEDEP}] |
60 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
61 |
+ virtual/jpeg:0=[${MULTILIB_USEDEP}] |
62 |
+ >=x11-libs/gtk+-2.18:2[${MULTILIB_USEDEP}] |
63 |
+ x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] |
64 |
+ x11-libs/libSM[${MULTILIB_USEDEP}] |
65 |
+ x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
66 |
+ x11-libs/pango[${MULTILIB_USEDEP}] |
67 |
+ libnotify? ( x11-libs/libnotify[${MULTILIB_USEDEP}] ) |
68 |
+ opengl? ( virtual/opengl[${MULTILIB_USEDEP}] ) |
69 |
+ tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] ) |
70 |
+ ) |
71 |
+ aqua? ( |
72 |
+ x11-libs/gtk+:2[aqua=,${MULTILIB_USEDEP}] |
73 |
+ virtual/jpeg:0=[${MULTILIB_USEDEP}] |
74 |
+ tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] ) |
75 |
+ )" |
76 |
+ |
77 |
+DEPEND="${RDEPEND} |
78 |
+ virtual/pkgconfig[${MULTILIB_USEDEP}] |
79 |
+ opengl? ( virtual/glu[${MULTILIB_USEDEP}] ) |
80 |
+ X? ( |
81 |
+ x11-proto/xproto[${MULTILIB_USEDEP}] |
82 |
+ x11-proto/xineramaproto[${MULTILIB_USEDEP}] |
83 |
+ x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] |
84 |
+ )" |
85 |
+ |
86 |
+PDEPEND=">=app-eselect/eselect-wxwidgets-20131230" |
87 |
+ |
88 |
+LICENSE="wxWinLL-3 |
89 |
+ GPL-2 |
90 |
+ doc? ( wxWinFDL-3 )" |
91 |
+ |
92 |
+S="${WORKDIR}/wxPython-src-${PV}" |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch |
96 |
+ epatch "${FILESDIR}"/${P}-webview-fixes.patch |
97 |
+ epatch "${FILESDIR}"/${P}-gcc6.patch |
98 |
+ epatch_user |
99 |
+ |
100 |
+ for f in $(find "${S}" -name configure.in); do |
101 |
+ mv "${f}" "${f/in/ac}" || die |
102 |
+ done |
103 |
+ AT_M4DIR="${S}/build/aclocal" eautoreconf |
104 |
+ |
105 |
+ # https://bugs.gentoo.org/536004 |
106 |
+ sed \ |
107 |
+ -e 's:3\.0\.1:3.0.2:g' \ |
108 |
+ -e 's:^wx_release_number=1$:wx_release_number=2:' \ |
109 |
+ -i "${S}"/configure || die |
110 |
+ |
111 |
+} |
112 |
+ |
113 |
+multilib_src_configure() { |
114 |
+ local myconf |
115 |
+ |
116 |
+ # X independent options |
117 |
+ myconf=" |
118 |
+ --with-zlib=sys |
119 |
+ --with-expat=sys |
120 |
+ --enable-compat28 |
121 |
+ $(use_with sdl)" |
122 |
+ |
123 |
+ # debug in >=2.9 |
124 |
+ # there is no longer separate debug libraries (gtk2ud) |
125 |
+ # wxDEBUG_LEVEL=1 is the default and we will leave it enabled |
126 |
+ # wxDEBUG_LEVEL=2 enables assertions that have expensive runtime costs. |
127 |
+ # apps can disable these features by building w/ -NDEBUG or wxDEBUG_LEVEL_0. |
128 |
+ # http://docs.wxwidgets.org/3.0/overview_debugging.html |
129 |
+ # https://groups.google.com/group/wx-dev/browse_thread/thread/c3c7e78d63d7777f/05dee25410052d9c |
130 |
+ use debug \ |
131 |
+ && myconf="${myconf} --enable-debug=max" |
132 |
+ |
133 |
+ # wxGTK options |
134 |
+ # --enable-graphics_ctx - needed for webkit, editra |
135 |
+ # --without-gnomevfs - bug #203389 |
136 |
+ use X && \ |
137 |
+ myconf="${myconf} |
138 |
+ --enable-graphics_ctx |
139 |
+ --with-gtkprint |
140 |
+ --enable-gui |
141 |
+ --with-libpng=sys |
142 |
+ --with-libxpm=sys |
143 |
+ --with-libjpeg=sys |
144 |
+ --without-gnomevfs |
145 |
+ --disable-webview |
146 |
+ --disable-mediactrl |
147 |
+ $(use_with libnotify) |
148 |
+ $(use_with opengl) |
149 |
+ $(use_with tiff libtiff sys)" |
150 |
+ |
151 |
+ use aqua && \ |
152 |
+ myconf="${myconf} |
153 |
+ --enable-graphics_ctx |
154 |
+ --enable-gui |
155 |
+ --with-libpng=sys |
156 |
+ --with-libxpm=sys |
157 |
+ --with-libjpeg=sys |
158 |
+ --with-mac |
159 |
+ --with-opengl" |
160 |
+ # cocoa toolkit seems to be broken |
161 |
+ |
162 |
+ # wxBase options |
163 |
+ if use !X && use !aqua ; then |
164 |
+ myconf="${myconf} |
165 |
+ --disable-gui" |
166 |
+ fi |
167 |
+ |
168 |
+ ECONF_SOURCE="${S}" econf ${myconf} |
169 |
+} |
170 |
+ |
171 |
+multilib_src_install_all() { |
172 |
+ cd "${S}"/docs || die |
173 |
+ dodoc changes.txt readme.txt |
174 |
+ newdoc base/readme.txt base_readme.txt |
175 |
+ newdoc gtk/readme.txt gtk_readme.txt |
176 |
+ |
177 |
+ if use doc; then |
178 |
+ dodoc -r "${S}"/docs/doxygen/out/html |
179 |
+ fi |
180 |
+ |
181 |
+ # Stray windows locale file, causes collisions |
182 |
+ local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo" |
183 |
+ [[ -e ${wxmsw} ]] && rm "${wxmsw}" |
184 |
+} |
185 |
+ |
186 |
+pkg_postinst() { |
187 |
+ has_version app-eselect/eselect-wxwidgets \ |
188 |
+ && eselect wxwidgets update |
189 |
+} |
190 |
+ |
191 |
+pkg_postrm() { |
192 |
+ has_version app-eselect/eselect-wxwidgets \ |
193 |
+ && eselect wxwidgets update |
194 |
+} |