1 |
commit: b5b300aad5b4c95789c941d23b528de6f7bb89e7 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 21 20:46:40 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 21 20:52:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5b300aa |
7 |
|
8 |
www-client/netsurf: bump to 3.8 |
9 |
|
10 |
I had to drop gstreamer because it depends on a vulnerable version. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/636224 |
13 |
Closes: https://bugs.gentoo.org/662230 |
14 |
Closes: https://bugs.gentoo.org/629204 |
15 |
Closes: https://bugs.gentoo.org/641846 |
16 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
17 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
18 |
|
19 |
www-client/netsurf/Manifest | 2 + |
20 |
www-client/netsurf/files/netsurf-3.8-CFLAGS.patch | 79 ++++++++++ |
21 |
.../netsurf/files/netsurf-3.8-pdf-writer.patch | 86 +++++++++++ |
22 |
www-client/netsurf/netsurf-3.8.ebuild | 163 +++++++++++++++++++++ |
23 |
4 files changed, 330 insertions(+) |
24 |
|
25 |
diff --git a/www-client/netsurf/Manifest b/www-client/netsurf/Manifest |
26 |
index 4a7b2ef7309..370d0b8b4b7 100644 |
27 |
--- a/www-client/netsurf/Manifest |
28 |
+++ b/www-client/netsurf/Manifest |
29 |
@@ -1,3 +1,5 @@ |
30 |
DIST netsurf-3.6-src.tar.gz 4129091 BLAKE2B d6b08069e34a8fd4f2010c6b3efbde9d7b13e40d3f3fdceeee92eb9d2bbeb92fac6f0a1ca9ac263ebc1904ad04a42c97a6418da7e095d18eda3be952129ac718 SHA512 6141cd94b2b6c8e56f682599e4929690f6ca668d1f6ff20bad93e30cf3a3b27475146f2b3c9dbc9f1b2e44b729d74c346254959b7def1f8d194e1c6efac3078d |
31 |
+DIST netsurf-3.8-src.tar.gz 3945752 BLAKE2B 0f4592e53e95cfedb3c34a16ce9df9baeeaed93afb3bac3d68dab1e3d80e67c0498111c123285f6e828d063574e0e5f0cc3aa337ffab066f2283d06d248a308a SHA512 6f4dfdc546cce3b85d32da0dd816adc9a39410ed42bc28f263f4a1db64b35a889a1784a4116715190e756988dd263976933cfac75c9dcd81af01954487ddcaf6 |
32 |
DIST netsurf-buildsystem-1.5.tar.gz 38196 BLAKE2B 298ef39d45b98ae5ef57a22aed9f22bf96dfd6ad5475964c04451eaf28aca7f451b4906002c3e110ffcc951015169f02ffcd85f24e54b46c47b25e048115db1c SHA512 02d85e8f1d2101194a678f7ccf84051390953285a46951d7b327556f8df1a0c416620bd4c7a615e25de438d5d27cfffb69ec5d94eb8379a295dab4c85a96cae4 |
33 |
+DIST netsurf-buildsystem-1.7.tar.gz 38597 BLAKE2B d0981ef282ac0d93d81a1a6a6bee1fc2a0151c962be6ce2900a67843ba8ebc67e00508cded2a7375f6bbe0d45572690f127872936a282de80eb08655ac571603 SHA512 f6a46ac25f41e695ec13d7b2b564250c4cc44a40a688904eb17aa4b547c2df0102cc0effb7a23a2ffa6b9178ae5cf452b63980caf26e06e479168c85803f1e58 |
34 |
DIST netsurf-fb.modes-example.gz 4586 BLAKE2B 89c76fde1ddc79e46f22d9f628f8d75ec57be2a29d31383550137e3b502aa4d8c0a733b755731c916d4d544679a4253323bc343528c5e2c4f145c3318ac1d86d SHA512 753a707dc428212803dd64250bb723a498fdc1c328fdac4df38be533eab3af45f727cdc6b7ced3faaa0e82db182c4eab140b8e81b0d3cfe2152252b89e6d2981 |
35 |
|
36 |
diff --git a/www-client/netsurf/files/netsurf-3.8-CFLAGS.patch b/www-client/netsurf/files/netsurf-3.8-CFLAGS.patch |
37 |
new file mode 100644 |
38 |
index 00000000000..c52422dcb92 |
39 |
--- /dev/null |
40 |
+++ b/www-client/netsurf/files/netsurf-3.8-CFLAGS.patch |
41 |
@@ -0,0 +1,79 @@ |
42 |
+diff --git a/Makefile.defaults b/Makefile.defaults |
43 |
+index 51090109e..f1ec46f73 100644 |
44 |
+--- a/Makefile.defaults |
45 |
++++ b/Makefile.defaults |
46 |
+@@ -114,12 +114,6 @@ NETSURF_USE_SANITIZERS := NO |
47 |
+ # But recover after sanitizer failure |
48 |
+ NETSURF_RECOVER_SANITIZERS := YES |
49 |
+ |
50 |
+-# Initial CFLAGS. Optimisation level etc. tend to be target specific. |
51 |
+-CFLAGS := |
52 |
+- |
53 |
+-# Initial CXXFLAGS. Optimisation level etc. tend to be target specific. |
54 |
+-CXXFLAGS := |
55 |
+- |
56 |
+ # Default installation/execution prefix |
57 |
+ PREFIX ?= /usr/local |
58 |
+ |
59 |
+diff --git a/frontends/framebuffer/Makefile b/frontends/framebuffer/Makefile |
60 |
+index bdedd903b..35179138a 100644 |
61 |
+--- a/frontends/framebuffer/Makefile |
62 |
++++ b/frontends/framebuffer/Makefile |
63 |
+@@ -20,7 +20,7 @@ CFLAGS += '-DNETSURF_FB_FONT_MONOSPACE_BOLD="$(NETSURF_FB_FONT_MONOSPACE_BOLD)"' |
64 |
+ CFLAGS += '-DNETSURF_FB_FONT_CURSIVE="$(NETSURF_FB_FONT_CURSIVE)"' |
65 |
+ CFLAGS += '-DNETSURF_FB_FONT_FANTASY="$(NETSURF_FB_FONT_FANTASY)"' |
66 |
+ |
67 |
+-CFLAGS += -std=c99 -g -Dsmall \ |
68 |
++CFLAGS += -std=c99 -Dsmall \ |
69 |
+ -D_BSD_SOURCE \ |
70 |
+ -D_DEFAULT_SOURCE \ |
71 |
+ -D_XOPEN_SOURCE=600 \ |
72 |
+diff --git a/frontends/framebuffer/Makefile.defaults b/frontends/framebuffer/Makefile.defaults |
73 |
+index cc712e992..f132c97d6 100644 |
74 |
+--- a/frontends/framebuffer/Makefile.defaults |
75 |
++++ b/frontends/framebuffer/Makefile.defaults |
76 |
+@@ -3,7 +3,7 @@ |
77 |
+ # ---------------------------------------------------------------------------- |
78 |
+ |
79 |
+ # Optimisation levels |
80 |
+-CFLAGS += -O2 |
81 |
++CFLAGS += |
82 |
+ |
83 |
+ # Framebuffer default surface provider. |
84 |
+ # Valid values are: x, sdl, linux, vnc, able, |
85 |
+diff --git a/frontends/gtk/Makefile b/frontends/gtk/Makefile |
86 |
+index ec60ce70c..04af6df8f 100644 |
87 |
+--- a/frontends/gtk/Makefile |
88 |
++++ b/frontends/gtk/Makefile |
89 |
+@@ -33,7 +33,7 @@ GTKDEPFLAGS += -DGTK_DISABLE_DEPRECATED |
90 |
+ endif |
91 |
+ |
92 |
+ |
93 |
+-GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \ |
94 |
++GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk \ |
95 |
+ $(GTKDEPFLAGS) \ |
96 |
+ -D_BSD_SOURCE \ |
97 |
+ -D_DEFAULT_SOURCE \ |
98 |
+diff --git a/frontends/gtk/Makefile.defaults b/frontends/gtk/Makefile.defaults |
99 |
+index a98043eb9..bb5371230 100644 |
100 |
+--- a/frontends/gtk/Makefile.defaults |
101 |
++++ b/frontends/gtk/Makefile.defaults |
102 |
+@@ -39,4 +39,4 @@ NETSURF_FS_BACKING_STORE := YES |
103 |
+ NETSURF_GTK_MAJOR ?= 2 |
104 |
+ |
105 |
+ # Optimisation levels |
106 |
+-CFLAGS += -O2 |
107 |
++CFLAGS += |
108 |
+diff --git a/test/Makefile b/test/Makefile |
109 |
+index 4f9dd22c9..8bec9b88a 100644 |
110 |
+--- a/test/Makefile |
111 |
++++ b/test/Makefile |
112 |
+@@ -134,7 +134,7 @@ ifneq ($(CC_MAJOR),2) |
113 |
+ COMMON_WARNFLAGS += -Wno-unused-parameter |
114 |
+ endif |
115 |
+ |
116 |
+-BASE_TESTCFLAGS := -std=c99 -g \ |
117 |
++BASE_TESTCFLAGS := -std=c99 \ |
118 |
+ $(COMMON_WARNFLAGS) \ |
119 |
+ -D_DEFAULT_SOURCE \ |
120 |
+ -D_POSIX_C_SOURCE=200809L \ |
121 |
|
122 |
diff --git a/www-client/netsurf/files/netsurf-3.8-pdf-writer.patch b/www-client/netsurf/files/netsurf-3.8-pdf-writer.patch |
123 |
new file mode 100644 |
124 |
index 00000000000..e9c2420a33f |
125 |
--- /dev/null |
126 |
+++ b/www-client/netsurf/files/netsurf-3.8-pdf-writer.patch |
127 |
@@ -0,0 +1,86 @@ |
128 |
+diff --git a/desktop/font_haru.c b/desktop/font_haru.c |
129 |
+index 4ee9824f0..3304ba82a 100644 |
130 |
+--- a/desktop/font_haru.c |
131 |
++++ b/desktop/font_haru.c |
132 |
+@@ -37,7 +37,7 @@ |
133 |
+ #include <hpdf.h> |
134 |
+ |
135 |
+ #include "utils/nsoption.h" |
136 |
+-#include "desktop/save_pdf/font_haru.h" |
137 |
++#include "desktop/font_haru.h" |
138 |
+ #include "desktop/font.h" |
139 |
+ #include "utils/log.h" |
140 |
+ |
141 |
+diff --git a/desktop/save_pdf.c b/desktop/save_pdf.c |
142 |
+index 889190089..9e6265cfb 100644 |
143 |
+--- a/desktop/save_pdf.c |
144 |
++++ b/desktop/save_pdf.c |
145 |
+@@ -60,6 +60,8 @@ |
146 |
+ #include "utils/useragent.h" |
147 |
+ #include "content/hlcache.h" |
148 |
+ #include "utils/nsoption.h" |
149 |
++#include "desktop/gui_misc.h" |
150 |
++#include "desktop/gui_internal.h" |
151 |
+ #include "netsurf/bitmap.h" |
152 |
+ |
153 |
+ #include "netsurf/plotters.h" |
154 |
+@@ -455,11 +457,6 @@ HPDF_Image pdf_extract_image(struct bitmap *bitmap) |
155 |
+ |
156 |
+ switch(content_get_type(content)){ |
157 |
+ /*Handle "embeddable" types of images*/ |
158 |
+- case CONTENT_JPEG: |
159 |
+- image = HPDF_LoadJpegImageFromMem(pdf_doc, |
160 |
+- (const HPDF_BYTE *) source_data, |
161 |
+- source_size); |
162 |
+- break; |
163 |
+ |
164 |
+ /*Disabled until HARU PNG support will be more stable. |
165 |
+ |
166 |
+@@ -706,7 +703,7 @@ bool pdf_begin(struct print_settings *print_settings) |
167 |
+ |
168 |
+ |
169 |
+ #ifndef PDF_DEBUG |
170 |
+- if (option_enable_PDF_compression) |
171 |
++ if (nsoption_bool(enable_PDF_compression)) |
172 |
+ HPDF_SetCompressionMode(pdf_doc, HPDF_COMP_ALL); /*Compression on*/ |
173 |
+ #endif |
174 |
+ HPDF_SetInfoAttr(pdf_doc, HPDF_INFO_CREATOR, user_agent_string()); |
175 |
+@@ -780,7 +777,7 @@ void pdf_end(void) |
176 |
+ assert(settings->output != NULL); |
177 |
+ |
178 |
+ /*Encryption on*/ |
179 |
+- if (option_enable_PDF_password) |
180 |
++ if (nsoption_bool(enable_PDF_password)) |
181 |
+ guit->misc->pdf_password(&owner_pass, &user_pass, |
182 |
+ (void *)settings->output); |
183 |
+ else |
184 |
+@@ -795,7 +792,7 @@ nserror save_pdf(const char *path) |
185 |
+ { |
186 |
+ nserror res = NSERROR_OK; |
187 |
+ |
188 |
+- if (option_enable_PDF_password && owner_pass != NULL ) { |
189 |
++ if (nsoption_bool(enable_PDF_password) && owner_pass != NULL ) { |
190 |
+ HPDF_SetPassword(pdf_doc, owner_pass, user_pass); |
191 |
+ HPDF_SetEncryptionMode(pdf_doc, HPDF_ENCRYPT_R3, 16); |
192 |
+ free(owner_pass); |
193 |
+diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c |
194 |
+index 8c46fd884..748518fdc 100644 |
195 |
+--- a/frontends/gtk/scaffolding.c |
196 |
++++ b/frontends/gtk/scaffolding.c |
197 |
+@@ -853,14 +853,14 @@ MULTIHANDLER(pdf) |
198 |
+ |
199 |
+ free(url_name); |
200 |
+ |
201 |
+- strncpy(dirname, option_downloads_directory, PATH_MAX); |
202 |
++ strncpy(dirname, nsoption_charp(downloads_directory), PATH_MAX); |
203 |
+ strncat(dirname, "/", PATH_MAX - strlen(dirname)); |
204 |
+ dirname[PATH_MAX - 1] = '\0'; |
205 |
+ |
206 |
+ /* this way the scale used by PDF functions is synchronised with that |
207 |
+ * used by the all-purpose print interface |
208 |
+ */ |
209 |
+- haru_nsfont_set_scale((float)option_export_scale / 100); |
210 |
++ haru_nsfont_set_scale((float)nsoption_int(export_scale) / 100); |
211 |
+ |
212 |
+ save_dialog = gtk_file_chooser_dialog_new("Export to PDF", g->window, |
213 |
+ GTK_FILE_CHOOSER_ACTION_SAVE, |
214 |
|
215 |
diff --git a/www-client/netsurf/netsurf-3.8.ebuild b/www-client/netsurf/netsurf-3.8.ebuild |
216 |
new file mode 100644 |
217 |
index 00000000000..5722a925d81 |
218 |
--- /dev/null |
219 |
+++ b/www-client/netsurf/netsurf-3.8.ebuild |
220 |
@@ -0,0 +1,163 @@ |
221 |
+# Copyright 1999-2018 Gentoo Authors |
222 |
+# Distributed under the terms of the GNU General Public License v2 |
223 |
+ |
224 |
+EAPI=6 |
225 |
+ |
226 |
+NETSURF_COMPONENT_TYPE=binary |
227 |
+NETSURF_BUILDSYSTEM=buildsystem-1.7 |
228 |
+inherit netsurf |
229 |
+ |
230 |
+DESCRIPTION="a free, open source web browser" |
231 |
+HOMEPAGE="http://www.netsurf-browser.org/" |
232 |
+SRC_URI="http://download.netsurf-browser.org/netsurf/releases/source/${P}-src.tar.gz |
233 |
+ http://xmw.de/mirror/netsurf-fb.modes-example.gz |
234 |
+ ${NETSURF_BUILDSYSTEM_SRC_URI}" |
235 |
+ |
236 |
+LICENSE="GPL-2 MIT" |
237 |
+SLOT="0" |
238 |
+KEYWORDS="~amd64 ~arm ~ppc" |
239 |
+IUSE="+bmp +duktape fbcon truetype +gif gtk gtk2 gtk3 +javascript +jpeg +mng |
240 |
+ pdf-writer +png +psl +rosprite +svg +svgtiny +webp fbcon_frontend_able |
241 |
+ fbcon_frontend_linux fbcon_frontend_sdl fbcon_frontend_vnc fbcon_frontend_x" |
242 |
+ |
243 |
+REQUIRED_USE="|| ( fbcon gtk gtk2 gtk3 ) |
244 |
+ amd64? ( abi_x86_32? ( javascript? ( duktape ) ) ) |
245 |
+ fbcon? ( ^^ ( fbcon_frontend_able fbcon_frontend_linux fbcon_frontend_sdl |
246 |
+ fbcon_frontend_vnc fbcon_frontend_x ) ) |
247 |
+ duktape? ( javascript )" |
248 |
+ |
249 |
+RDEPEND=">=dev-libs/libnsutils-0.0.5[${MULTILIB_USEDEP}] |
250 |
+ >=dev-libs/libutf8proc-2.2[${MULTILIB_USEDEP}] |
251 |
+ dev-libs/libxml2:2[${MULTILIB_USEDEP}] |
252 |
+ net-misc/curl[${MULTILIB_USEDEP}] |
253 |
+ >=dev-libs/libcss-0.8[${MULTILIB_USEDEP}] |
254 |
+ >=net-libs/libhubbub-0.3[${MULTILIB_USEDEP}] |
255 |
+ >=net-libs/libdom-0.3[${MULTILIB_USEDEP}] |
256 |
+ bmp? ( >=media-libs/libnsbmp-0.1[${MULTILIB_USEDEP}] ) |
257 |
+ fbcon? ( >=dev-libs/libnsfb-0.2[${MULTILIB_USEDEP}] |
258 |
+ truetype? ( media-fonts/dejavu |
259 |
+ >=media-libs/freetype-2.5.0.1[${MULTILIB_USEDEP}] ) |
260 |
+ ) |
261 |
+ gif? ( >=media-libs/libnsgif-0.1[${MULTILIB_USEDEP}] ) |
262 |
+ gtk2? ( dev-libs/glib:2[${MULTILIB_USEDEP}] |
263 |
+ x11-libs/gtk+:2[${MULTILIB_USEDEP}] ) |
264 |
+ gtk3? ( dev-libs/glib:2[${MULTILIB_USEDEP}] |
265 |
+ x11-libs/gtk+:3[${MULTILIB_USEDEP}] ) |
266 |
+ gtk? ( dev-libs/glib:2[${MULTILIB_USEDEP}] |
267 |
+ x11-libs/gtk+:3[${MULTILIB_USEDEP}] ) |
268 |
+ javascript? ( >=dev-libs/nsgenbind-0.3[${MULTILIB_USEDEP}] |
269 |
+ !duktape? ( dev-lang/spidermonkey:0= ) ) |
270 |
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] ) |
271 |
+ mng? ( >=media-libs/libmng-1.0.10-r2[${MULTILIB_USEDEP}] ) |
272 |
+ pdf-writer? ( media-libs/libharu[${MULTILIB_USEDEP}] ) |
273 |
+ png? ( >=media-libs/libpng-1.2.51:0[${MULTILIB_USEDEP}] ) |
274 |
+ psl? ( media-libs/libnspsl[${MULTILIB_USEDEP}] ) |
275 |
+ rosprite? ( >=media-libs/librosprite-0.1.2-r1[${MULTILIB_USEDEP}] ) |
276 |
+ svg? ( svgtiny? ( >=media-libs/libsvgtiny-0.1.3-r1[${MULTILIB_USEDEP}] ) |
277 |
+ !svgtiny? ( gnome-base/librsvg:2[${MULTILIB_USEDEP}] ) ) |
278 |
+ webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )" |
279 |
+DEPEND="${RDEPEND} |
280 |
+ dev-libs/check[${MULTILIB_USEDEP}] |
281 |
+ dev-perl/HTML-Parser" |
282 |
+ |
283 |
+PATCHES=( |
284 |
+ "${FILESDIR}"/${PN}-3.8-CFLAGS.patch |
285 |
+ "${FILESDIR}"/${PN}-3.6-conditionally-include-image-headers.patch |
286 |
+ "${FILESDIR}"/${PN}-3.8-pdf-writer.patch |
287 |
+) |
288 |
+ |
289 |
+DOCS=( fb.modes README docs/using-framebuffer.md |
290 |
+ docs/ideas/{cache,css-engine,render-library}.txt ) |
291 |
+ |
292 |
+src_prepare() { |
293 |
+ # working around broken netsurf eclass |
294 |
+ default |
295 |
+ rm -r frontends/{amiga,atari,beos,monkey,riscos,windows} || die |
296 |
+ |
297 |
+ mv "${WORKDIR}"/netsurf-fb.modes-example fb.modes |
298 |
+ |
299 |
+ multilib_copy_sources |
300 |
+} |
301 |
+ |
302 |
+src_configure() { |
303 |
+ netsurf_src_configure |
304 |
+ |
305 |
+ netsurf_makeconf+=( |
306 |
+ NETSURF_USE_BMP=$(usex bmp YES NO) |
307 |
+ NETSURF_USE_GIF=$(usex gif YES NO) |
308 |
+ NETSURF_USE_JPEG=$(usex jpeg YES NO) |
309 |
+ NETSURF_USE_PNG=$(usex png YES NO) |
310 |
+ NETSURF_USE_NSPSL=$(usex psl YES NO) |
311 |
+ NETSURF_USE_MNG=$(usex mng YES NO) |
312 |
+ NETSURF_USE_WEBP=$(usex webp YES NO) |
313 |
+ NETSURF_USE_MOZJS=$(usex javascript $(usex duktape NO YES) NO) |
314 |
+ NETSURF_USE_JS=NO |
315 |
+ NETSURF_USE_DUKTAPE=$(usex javascript $(usex duktape YES NO) NO) |
316 |
+ NETSURF_USE_HARU_PDF=$(usex pdf-writer YES NO) |
317 |
+ NETSURF_USE_NSSVG=$(usex svg $(usex svgtiny YES NO) NO) |
318 |
+ NETSURF_USE_RSVG=$(usex svg $(usex svgtiny NO YES) NO) |
319 |
+ NETSURF_USE_ROSPRITE=$(usex rosprite YES NO) |
320 |
+ PKG_CONFIG=$(tc-getPKG_CONFIG) |
321 |
+ $(usex fbcon_frontend_able NETSURF_FB_FRONTEND=able "") |
322 |
+ $(usex fbcon_frontend_linux NETSURF_FB_FRONTEND=linux "") |
323 |
+ $(usex fbcon_frontend_sdl NETSURF_FB_FRONTEND=sdl "") |
324 |
+ $(usex fbcon_frontend_vnc NETSURF_FB_FRONTEND=vnc "") |
325 |
+ $(usex fbcon_frontend_x NETSURF_FB_FRONTEND=x "") |
326 |
+ NETSURF_FB_FONTLIB=$(usex truetype freetype internal) |
327 |
+ NETSURF_FB_FONTPATH=${EROOT}usr/share/fonts/dejavu |
328 |
+ TARGET=dummy |
329 |
+ NETSURF_USE_VIDEO=dummy |
330 |
+ ) |
331 |
+} |
332 |
+ |
333 |
+src_compile() { |
334 |
+ if use fbcon ; then |
335 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=framebuffer}" ) |
336 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) |
337 |
+ netsurf_src_compile |
338 |
+ fi |
339 |
+ if use gtk2 ; then |
340 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk}" ) |
341 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) |
342 |
+ netsurf_src_compile |
343 |
+ fi |
344 |
+ if use gtk3 || use gtk ; then |
345 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk3}" ) |
346 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) |
347 |
+ netsurf_src_compile |
348 |
+ fi |
349 |
+} |
350 |
+ |
351 |
+src_install() { |
352 |
+ sed -e '1iexit;' \ |
353 |
+ -i "${WORKDIR}"/*/utils/git-testament.pl || die |
354 |
+ |
355 |
+ if use fbcon ; then |
356 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=framebuffer}" ) |
357 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) |
358 |
+ netsurf_src_install |
359 |
+ elog "framebuffer binary has been installed as netsurf-fb" |
360 |
+ make_desktop_entry "${EROOT}"/usr/bin/netsurf-fb NetSurf-framebuffer netsurf "Network;WebBrowser" |
361 |
+ elog "In order to setup the framebuffer console, netsurf needs an /etc/fb.modes" |
362 |
+ elog "You can use an example from /usr/share/doc/${PF}/fb.modes.* (bug 427092)." |
363 |
+ elog "Please make /dev/input/mice readable to the account using netsurf-fb." |
364 |
+ elog "Either use chmod a+r /dev/input/mice (security!!!) or use an group." |
365 |
+ fi |
366 |
+ if use gtk2 ; then |
367 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk}" ) |
368 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) |
369 |
+ netsurf_src_install |
370 |
+ elog "netsurf gtk2 version has been installed as netsurf-gtk" |
371 |
+ make_desktop_entry "${EROOT}"/usr/bin/netsurf-gtk NetSurf-gtk netsurf "Network;WebBrowser" |
372 |
+ fi |
373 |
+ if use gtk3 || use gtk ; then |
374 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk3}" ) |
375 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) |
376 |
+ netsurf_src_install |
377 |
+ elog "netsurf gtk3 version has been installed as netsurf-gtk3" |
378 |
+ make_desktop_entry "${EROOT}"/usr/bin/netsurf-gtk3 NetSurf-gtk3 netsurf "Network;WebBrowser" |
379 |
+ fi |
380 |
+ |
381 |
+ insinto /usr/share/pixmaps |
382 |
+ doins frontends/gtk/res/netsurf.xpm |
383 |
+} |