1 |
commit: f82babb8c1793c61fcb41f56bdb05fc0f3b329da |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 24 01:14:59 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 24 01:16:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f82babb8 |
7 |
|
8 |
www-client/netsurf: Version bump (bug 602526, thanks Philipp Ammann), add support for GTK3, fix librosprite RDEPEND (bug 604128, thanks Another Mortal). |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
www-client/netsurf/Manifest | 1 + |
13 |
www-client/netsurf/files/netsurf-3.6-CFLAGS.patch | 67 +++++++++ |
14 |
...f-3.6-conditionally-include-image-headers.patch | 31 +++++ |
15 |
.../netsurf/files/netsurf-3.6-pdf-writer.patch | 80 +++++++++++ |
16 |
www-client/netsurf/metadata.xml | 4 + |
17 |
www-client/netsurf/netsurf-3.6.ebuild | 153 +++++++++++++++++++++ |
18 |
6 files changed, 336 insertions(+) |
19 |
|
20 |
diff --git a/www-client/netsurf/Manifest b/www-client/netsurf/Manifest |
21 |
index b5fe305..a2c77ca 100644 |
22 |
--- a/www-client/netsurf/Manifest |
23 |
+++ b/www-client/netsurf/Manifest |
24 |
@@ -1,4 +1,5 @@ |
25 |
DIST netsurf-3.4-src.tar.gz 4133201 SHA256 1648f437994fc18090237430f30d645ff06bab0768ae973575f9391d07613bf6 SHA512 d9f95ff88d572a36e906bdb25dddbb51aa683a2105ca9eff53ea61c154a34a888420811f8a2b58a1b5a10f77d8aa914e3201b937934243527edb8a897f7bd60e WHIRLPOOL 1c8e3d6ac8a1ecd7bfa2554d56bd6e6cbd6c025112110f596a1db551d3b18029ee2761ddb288cdbc0cd517a90a54081d9d8aca3399339160addb2aedce14a55b |
26 |
DIST netsurf-3.5-src.tar.gz 4094532 SHA256 98f3a66d3ae24ab34becdab2ea690f8f20c0f49f86723f133ede6df57e451dcc SHA512 0bbb64d7dfbe105a0c9ace6f17655feef1b63ed8ae1ceaca647d0fce828cef27f4871949351694b5836f0bbc0b2614a3671235a1682b0810b9194cd89a68659a WHIRLPOOL 2c0d7cc6096607105da5049e46ea9c08ba3b20fdf1992853a2a85c78e0937bfb8d5b9a5f55751ea18f46d68e64bd13d24f7a13d7d7d52a63796df62e217a7c3c |
27 |
+DIST netsurf-3.6-src.tar.gz 4129091 SHA256 59ae4b50eff9e2a00a0a9742ef546c7de17223139c485af9644f195340979a9c SHA512 6141cd94b2b6c8e56f682599e4929690f6ca668d1f6ff20bad93e30cf3a3b27475146f2b3c9dbc9f1b2e44b729d74c346254959b7def1f8d194e1c6efac3078d WHIRLPOOL 20776d928a60a8da5d1871d2ce1e15af7853a07e3ec995135019bbf579f1b0dde0918f960fe2c51546c6a08b218f9e4143fae5777f52203f831f877382b94740 |
28 |
DIST netsurf-buildsystem-1.5.tar.gz 38196 SHA256 dbc6afc639f6987b704e6ff4427668787ee7efba77e1bbf76b614699b5daaf71 SHA512 02d85e8f1d2101194a678f7ccf84051390953285a46951d7b327556f8df1a0c416620bd4c7a615e25de438d5d27cfffb69ec5d94eb8379a295dab4c85a96cae4 WHIRLPOOL 7b7d595a2e399b361e71769e509a129af42da5ce823f1b55183efb53898ac2ae731593eb13e1ecc2271ea26ee0948ac35bf99fea280eb72a2bb00164b4b29f09 |
29 |
DIST netsurf-fb.modes-example.gz 4586 SHA256 df1514790be120f27bd23dfdca71c24112679d45d3cbd3916f9231ec5e2596bb SHA512 753a707dc428212803dd64250bb723a498fdc1c328fdac4df38be533eab3af45f727cdc6b7ced3faaa0e82db182c4eab140b8e81b0d3cfe2152252b89e6d2981 WHIRLPOOL 5a91c32a712b746c993d2fa1d47625f16241e845d556b8113ab957eda7385ac5bdde5f78b0de2dad4df544c7d7c13d8145ebb9d81272af9a3759ad4e307c3767 |
30 |
|
31 |
diff --git a/www-client/netsurf/files/netsurf-3.6-CFLAGS.patch b/www-client/netsurf/files/netsurf-3.6-CFLAGS.patch |
32 |
new file mode 100644 |
33 |
index 00000000..8004aa4 |
34 |
--- /dev/null |
35 |
+++ b/www-client/netsurf/files/netsurf-3.6-CFLAGS.patch |
36 |
@@ -0,0 +1,67 @@ |
37 |
+--- netsurf-3.6/Makefile.defaults |
38 |
++++ netsurf-3.6/Makefile.defaults |
39 |
+@@ -96,12 +96,6 @@ |
40 |
+ # Valid options: YES, NO |
41 |
+ NETSURF_FS_BACKING_STORE := NO |
42 |
+ |
43 |
+-# Initial CFLAGS. Optimisation level etc. tend to be target specific. |
44 |
+-CFLAGS := |
45 |
+- |
46 |
+-# Initial CXXFLAGS. Optimisation level etc. tend to be target specific. |
47 |
+-CXXFLAGS := |
48 |
+- |
49 |
+ # Default installation/execution prefix |
50 |
+ PREFIX ?= /usr/local |
51 |
+ |
52 |
+--- netsurf-3.6/frontends/framebuffer/Makefile |
53 |
++++ netsurf-3.6/frontends/framebuffer/Makefile |
54 |
+@@ -20,7 +20,7 @@ |
55 |
+ CFLAGS += '-DNETSURF_FB_FONT_CURSIVE="$(NETSURF_FB_FONT_CURSIVE)"' |
56 |
+ CFLAGS += '-DNETSURF_FB_FONT_FANTASY="$(NETSURF_FB_FONT_FANTASY)"' |
57 |
+ |
58 |
+-CFLAGS += -std=c99 -g -Dsmall \ |
59 |
++CFLAGS += -std=c99 -Dsmall \ |
60 |
+ -D_BSD_SOURCE \ |
61 |
+ -D_DEFAULT_SOURCE \ |
62 |
+ -D_XOPEN_SOURCE=600 \ |
63 |
+--- netsurf-3.6/frontends/framebuffer/Makefile.defaults |
64 |
++++ netsurf-3.6/frontends/framebuffer/Makefile.defaults |
65 |
+@@ -3,7 +3,7 @@ |
66 |
+ # ---------------------------------------------------------------------------- |
67 |
+ |
68 |
+ # Optimisation levels |
69 |
+-CFLAGS += -O2 |
70 |
++CFLAGS += |
71 |
+ |
72 |
+ # Framebuffer default surface provider. |
73 |
+ # Valid values are: x, sdl, linux, vnc, able, |
74 |
+--- netsurf-3.6/frontends/gtk/Makefile |
75 |
++++ netsurf-3.6/frontends/gtk/Makefile |
76 |
+@@ -33,7 +33,7 @@ |
77 |
+ endif |
78 |
+ |
79 |
+ |
80 |
+-GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \ |
81 |
++GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk \ |
82 |
+ $(GTKDEPFLAGS) \ |
83 |
+ -D_BSD_SOURCE \ |
84 |
+ -D_DEFAULT_SOURCE \ |
85 |
+--- netsurf-3.6/frontends/gtk/Makefile.defaults |
86 |
++++ netsurf-3.6/frontends/gtk/Makefile.defaults |
87 |
+@@ -39,4 +39,4 @@ |
88 |
+ NETSURF_GTK_MAJOR ?= 2 |
89 |
+ |
90 |
+ # Optimisation levels |
91 |
+-CFLAGS += -O2 |
92 |
++CFLAGS += |
93 |
+--- netsurf-3.6/test/Makefile |
94 |
++++ netsurf-3.6/test/Makefile |
95 |
+@@ -105,7 +105,7 @@ |
96 |
+ COMMON_WARNFLAGS += -Wno-unused-parameter |
97 |
+ endif |
98 |
+ |
99 |
+-TESTCFLAGS := -std=c99 -g \ |
100 |
++TESTCFLAGS := -std=c99 \ |
101 |
+ $(COMMON_WARNFLAGS) \ |
102 |
+ -D_BSD_SOURCE \ |
103 |
+ -D_POSIX_C_SOURCE=200809L \ |
104 |
|
105 |
diff --git a/www-client/netsurf/files/netsurf-3.6-conditionally-include-image-headers.patch b/www-client/netsurf/files/netsurf-3.6-conditionally-include-image-headers.patch |
106 |
new file mode 100644 |
107 |
index 00000000..0675446 |
108 |
--- /dev/null |
109 |
+++ b/www-client/netsurf/files/netsurf-3.6-conditionally-include-image-headers.patch |
110 |
@@ -0,0 +1,31 @@ |
111 |
+--- netsurf-3.6/content/handlers/image/image.c |
112 |
++++ netsurf-3.6/content/handlers/image/image.c |
113 |
+@@ -27,14 +27,28 @@ |
114 |
+ #include "netsurf/content.h" |
115 |
+ #include "desktop/gui_internal.h" |
116 |
+ |
117 |
++#ifdef WITH_BMP |
118 |
+ #include "image/bmp.h" |
119 |
++#endif |
120 |
++#ifdef WITH_GIF |
121 |
+ #include "image/gif.h" |
122 |
++#endif |
123 |
+ #include "image/ico.h" |
124 |
++#ifdef WITH_JPEG |
125 |
+ #include "image/jpeg.h" |
126 |
++#endif |
127 |
++#ifdef WITH_NSSPRITE |
128 |
+ #include "image/nssprite.h" |
129 |
++#endif |
130 |
++#ifdef WITH_PNG |
131 |
+ #include "image/png.h" |
132 |
++#endif |
133 |
++#ifdef WITH_RSVG |
134 |
+ #include "image/rsvg.h" |
135 |
++#endif |
136 |
++#ifdef WITH_NS_SVG |
137 |
+ #include "image/svg.h" |
138 |
++#endif |
139 |
+ #include "image/image.h" |
140 |
+ |
141 |
+ /** |
142 |
|
143 |
diff --git a/www-client/netsurf/files/netsurf-3.6-pdf-writer.patch b/www-client/netsurf/files/netsurf-3.6-pdf-writer.patch |
144 |
new file mode 100644 |
145 |
index 00000000..5824adc |
146 |
--- /dev/null |
147 |
+++ b/www-client/netsurf/files/netsurf-3.6-pdf-writer.patch |
148 |
@@ -0,0 +1,80 @@ |
149 |
+--- netsurf-3.6/desktop/font_haru.c |
150 |
++++ netsurf-3.6/desktop/font_haru.c |
151 |
+@@ -37,7 +37,7 @@ |
152 |
+ #include <hpdf.h> |
153 |
+ |
154 |
+ #include "utils/nsoption.h" |
155 |
+-#include "desktop/save_pdf/font_haru.h" |
156 |
++#include "desktop/font_haru.h" |
157 |
+ #include "desktop/font.h" |
158 |
+ #include "utils/log.h" |
159 |
+ |
160 |
+--- netsurf-3.6/desktop/save_pdf.c |
161 |
++++ netsurf-3.6/desktop/save_pdf.c |
162 |
+@@ -60,6 +60,8 @@ |
163 |
+ #include "utils/useragent.h" |
164 |
+ #include "content/hlcache.h" |
165 |
+ #include "utils/nsoption.h" |
166 |
++#include "desktop/gui_misc.h" |
167 |
++#include "desktop/gui_internal.h" |
168 |
+ #include "netsurf/bitmap.h" |
169 |
+ |
170 |
+ #include "netsurf/plotters.h" |
171 |
+@@ -450,11 +452,6 @@ |
172 |
+ |
173 |
+ switch(content_get_type(content)){ |
174 |
+ /*Handle "embeddable" types of images*/ |
175 |
+- case CONTENT_JPEG: |
176 |
+- image = HPDF_LoadJpegImageFromMem(pdf_doc, |
177 |
+- (const HPDF_BYTE *) source_data, |
178 |
+- source_size); |
179 |
+- break; |
180 |
+ |
181 |
+ /*Disabled until HARU PNG support will be more stable. |
182 |
+ |
183 |
+@@ -700,7 +697,7 @@ |
184 |
+ |
185 |
+ |
186 |
+ #ifndef PDF_DEBUG |
187 |
+- if (option_enable_PDF_compression) |
188 |
++ if (nsoption_bool(enable_PDF_compression)) |
189 |
+ HPDF_SetCompressionMode(pdf_doc, HPDF_COMP_ALL); /*Compression on*/ |
190 |
+ #endif |
191 |
+ HPDF_SetInfoAttr(pdf_doc, HPDF_INFO_CREATOR, user_agent_string()); |
192 |
+@@ -774,7 +771,7 @@ |
193 |
+ assert(settings->output != NULL); |
194 |
+ |
195 |
+ /*Encryption on*/ |
196 |
+- if (option_enable_PDF_password) |
197 |
++ if (nsoption_bool(enable_PDF_password)) |
198 |
+ guit->misc->pdf_password(&owner_pass, &user_pass, |
199 |
+ (void *)settings->output); |
200 |
+ else |
201 |
+@@ -789,7 +786,7 @@ |
202 |
+ { |
203 |
+ nserror res = NSERROR_OK; |
204 |
+ |
205 |
+- if (option_enable_PDF_password && owner_pass != NULL ) { |
206 |
++ if (nsoption_bool(enable_PDF_password) && owner_pass != NULL ) { |
207 |
+ HPDF_SetPassword(pdf_doc, owner_pass, user_pass); |
208 |
+ HPDF_SetEncryptionMode(pdf_doc, HPDF_ENCRYPT_R3, 16); |
209 |
+ free(owner_pass); |
210 |
+--- netsurf-3.6/frontends/gtk/scaffolding.c |
211 |
++++ netsurf-3.6/frontends/gtk/scaffolding.c |
212 |
+@@ -731,14 +731,14 @@ |
213 |
+ |
214 |
+ free(url_name); |
215 |
+ |
216 |
+- strncpy(dirname, option_downloads_directory, PATH_MAX); |
217 |
++ strncpy(dirname, nsoption_charp(downloads_directory), PATH_MAX); |
218 |
+ strncat(dirname, "/", PATH_MAX - strlen(dirname)); |
219 |
+ dirname[PATH_MAX - 1] = '\0'; |
220 |
+ |
221 |
+ /* this way the scale used by PDF functions is synchronized with that |
222 |
+ * used by the all-purpose print interface |
223 |
+ */ |
224 |
+- haru_nsfont_set_scale((float)option_export_scale / 100); |
225 |
++ haru_nsfont_set_scale((float)nsoption_int(export_scale) / 100); |
226 |
+ |
227 |
+ save_dialog = gtk_file_chooser_dialog_new("Export to PDF", g->window, |
228 |
+ GTK_FILE_CHOOSER_ACTION_SAVE, |
229 |
|
230 |
diff --git a/www-client/netsurf/metadata.xml b/www-client/netsurf/metadata.xml |
231 |
index 7d16da3..e53232c 100644 |
232 |
--- a/www-client/netsurf/metadata.xml |
233 |
+++ b/www-client/netsurf/metadata.xml |
234 |
@@ -19,6 +19,10 @@ |
235 |
<flag name="rosprite">RISC OS Sprite bitmap image support (media-libs/librosprite)</flag> |
236 |
<flag name="svgtiny">SVG image support via media-libs/svgatiny instead of gnome-base/librsvg</flag> |
237 |
<flag name="webp">WebP image support (media-libs/libwebp)</flag> |
238 |
+ <flag name="psl">Use public suffix list via media-libs/libnspsl</flag> |
239 |
+ <flag name="gtk">Build GTK GUI, defaults to GTK3</flag> |
240 |
+ <flag name="gtk2">Build GTK2 GUI</flag> |
241 |
+ <flag name="gtk3">Build GTK3 GUI</flag> |
242 |
<flag name="duktape">Use duktape.org javascript engine</flag> |
243 |
</use> |
244 |
<longdescription lang="en"> |
245 |
|
246 |
diff --git a/www-client/netsurf/netsurf-3.6.ebuild b/www-client/netsurf/netsurf-3.6.ebuild |
247 |
new file mode 100644 |
248 |
index 00000000..1d709ec |
249 |
--- /dev/null |
250 |
+++ b/www-client/netsurf/netsurf-3.6.ebuild |
251 |
@@ -0,0 +1,153 @@ |
252 |
+# Copyright 1999-2017 Gentoo Foundation |
253 |
+# Distributed under the terms of the GNU General Public License v2 |
254 |
+# $Id$ |
255 |
+ |
256 |
+EAPI=5 |
257 |
+ |
258 |
+NETSURF_COMPONENT_TYPE=binary |
259 |
+NETSURF_BUILDSYSTEM=buildsystem-1.5 |
260 |
+inherit netsurf |
261 |
+ |
262 |
+DESCRIPTION="a free, open source web browser" |
263 |
+HOMEPAGE="http://www.netsurf-browser.org/" |
264 |
+SRC_URI="http://download.netsurf-browser.org/netsurf/releases/source/${P}-src.tar.gz |
265 |
+ http://xmw.de/mirror/netsurf-fb.modes-example.gz |
266 |
+ ${NETSURF_BUILDSYSTEM_SRC_URI}" |
267 |
+ |
268 |
+LICENSE="GPL-2 MIT" |
269 |
+SLOT="0" |
270 |
+KEYWORDS="~amd64 ~arm ~ppc" |
271 |
+IUSE="+bmp +duktape fbcon truetype +gif gstreamer gtk gtk2 gtk3 +javascript +jpeg +mng |
272 |
+ pdf-writer +png +psl +rosprite +svg +svgtiny +webp fbcon_frontend_able |
273 |
+ fbcon_frontend_linux fbcon_frontend_sdl fbcon_frontend_vnc fbcon_frontend_x" |
274 |
+ |
275 |
+REQUIRED_USE="|| ( fbcon gtk gtk2 gtk3 ) |
276 |
+ amd64? ( abi_x86_32? ( javascript? ( duktape ) ) ) |
277 |
+ fbcon? ( ^^ ( fbcon_frontend_able fbcon_frontend_linux fbcon_frontend_sdl |
278 |
+ fbcon_frontend_vnc fbcon_frontend_x ) ) |
279 |
+ duktape? ( javascript )" |
280 |
+ |
281 |
+RDEPEND=">=dev-libs/libnsutils-0.0.2[${MULTILIB_USEDEP}] |
282 |
+ >=dev-libs/libutf8proc-1.1.6-r1[${MULTILIB_USEDEP}] |
283 |
+ dev-libs/libxml2:2[${MULTILIB_USEDEP}] |
284 |
+ net-misc/curl[${MULTILIB_USEDEP}] |
285 |
+ >=dev-libs/libcss-0.6.0[${MULTILIB_USEDEP}] |
286 |
+ >=net-libs/libhubbub-0.3.1-r1[${MULTILIB_USEDEP}] |
287 |
+ >=net-libs/libdom-0.3.0[${MULTILIB_USEDEP}] |
288 |
+ bmp? ( >=media-libs/libnsbmp-0.1.2-r1[${MULTILIB_USEDEP}] ) |
289 |
+ fbcon? ( >=dev-libs/libnsfb-0.1.3-r1[${MULTILIB_USEDEP}] |
290 |
+ truetype? ( media-fonts/dejavu |
291 |
+ >=media-libs/freetype-2.5.0.1[${MULTILIB_USEDEP}] ) |
292 |
+ ) |
293 |
+ gif? ( >=media-libs/libnsgif-0.1.2-r1[${MULTILIB_USEDEP}] ) |
294 |
+ gtk2? ( dev-libs/glib:2[${MULTILIB_USEDEP}] |
295 |
+ x11-libs/gtk+:2[${MULTILIB_USEDEP}] ) |
296 |
+ gtk3? ( dev-libs/glib:2[${MULTILIB_USEDEP}] |
297 |
+ x11-libs/gtk+:3[${MULTILIB_USEDEP}] ) |
298 |
+ gtk? ( dev-libs/glib:2[${MULTILIB_USEDEP}] |
299 |
+ x11-libs/gtk+:3[${MULTILIB_USEDEP}] ) |
300 |
+ gstreamer? ( media-libs/gstreamer:0.10[${MULTILIB_USEDEP}] ) |
301 |
+ javascript? ( >=dev-libs/nsgenbind-0.3[${MULTILIB_USEDEP}] |
302 |
+ !duktape? ( dev-lang/spidermonkey:0= ) ) |
303 |
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] ) |
304 |
+ mng? ( >=media-libs/libmng-1.0.10-r2[${MULTILIB_USEDEP}] ) |
305 |
+ pdf-writer? ( media-libs/libharu[${MULTILIB_USEDEP}] ) |
306 |
+ png? ( >=media-libs/libpng-1.2.51:0[${MULTILIB_USEDEP}] ) |
307 |
+ rosprite? ( >=media-libs/librosprite-0.1.2-r1[${MULTILIB_USEDEP}] ) |
308 |
+ svg? ( svgtiny? ( >=media-libs/libsvgtiny-0.1.3-r1[${MULTILIB_USEDEP}] ) |
309 |
+ !svgtiny? ( gnome-base/librsvg:2[${MULTILIB_USEDEP}] ) ) |
310 |
+ webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )" |
311 |
+DEPEND="${RDEPEND} |
312 |
+ dev-libs/check[${MULTILIB_USEDEP}] |
313 |
+ dev-perl/HTML-Parser" |
314 |
+ |
315 |
+PATCHES=( "${FILESDIR}"/${PN}-3.6-CFLAGS.patch |
316 |
+ "${FILESDIR}"/${PN}-3.6-conditionally-include-image-headers.patch |
317 |
+ "${FILESDIR}"/${PN}-3.6-pdf-writer.patch ) |
318 |
+DOCS=( fb.modes README Docs/USING-Framebuffer |
319 |
+ Docs/ideas/{cache,css-engine,render-library}.txt ) |
320 |
+ |
321 |
+src_prepare() { |
322 |
+ rm -r frontends/{amiga,atari,beos,cocoa,monkey,riscos,windows} || die |
323 |
+ |
324 |
+ mv "${WORKDIR}"/netsurf-fb.modes-example fb.modes |
325 |
+ |
326 |
+ netsurf_src_prepare |
327 |
+} |
328 |
+ |
329 |
+src_configure() { |
330 |
+ netsurf_src_configure |
331 |
+ |
332 |
+ netsurf_makeconf+=( |
333 |
+ NETSURF_USE_BMP=$(usex bmp YES NO) |
334 |
+ NETSURF_USE_GIF=$(usex gif YES NO) |
335 |
+ NETSURF_USE_JPEG=$(usex jpeg YES NO) |
336 |
+ NETSURF_USE_PNG=$(usex png YES NO) |
337 |
+ NETSURF_USE_NSPSL=$(usex psl YES NO) |
338 |
+ NETSURF_USE_MNG=$(usex mng YES NO) |
339 |
+ NETSURF_USE_WEBP=$(usex webp YES NO) |
340 |
+ NETSURF_USE_VIDEO=$(usex gstreamer YES NO) |
341 |
+ NETSURF_USE_MOZJS=$(usex javascript $(usex duktape NO YES) NO) |
342 |
+ NETSURF_USE_JS=NO |
343 |
+ NETSURF_USE_DUKTAPE=$(usex javascript $(usex duktape YES NO) NO) |
344 |
+ NETSURF_USE_HARU_PDF=$(usex pdf-writer YES NO) |
345 |
+ NETSURF_USE_NSSVG=$(usex svg $(usex svgtiny YES NO) NO) |
346 |
+ NETSURF_USE_RSVG=$(usex svg $(usex svgtiny NO YES) NO) |
347 |
+ NETSURF_USE_ROSPRITE=$(usex rosprite YES NO) |
348 |
+ PKG_CONFIG=$(tc-getPKG_CONFIG) |
349 |
+ $(usex fbcon_frontend_able NETSURF_FB_FRONTEND=able "") |
350 |
+ $(usex fbcon_frontend_linux NETSURF_FB_FRONTEND=linux "") |
351 |
+ $(usex fbcon_frontend_sdl NETSURF_FB_FRONTEND=sdl "") |
352 |
+ $(usex fbcon_frontend_vnc NETSURF_FB_FRONTEND=vnc "") |
353 |
+ $(usex fbcon_frontend_x NETSURF_FB_FRONTEND=x "") |
354 |
+ NETSURF_FB_FONTLIB=$(usex truetype freetype internal) |
355 |
+ NETSURF_FB_FONTPATH=${EROOT}usr/share/fonts/dejavu |
356 |
+ TARGET=dummy |
357 |
+ ) |
358 |
+} |
359 |
+ |
360 |
+src_compile() { |
361 |
+ if use fbcon ; then |
362 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=framebuffer}" ) |
363 |
+ netsurf_src_compile |
364 |
+ fi |
365 |
+ if use gtk2 ; then |
366 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk}" ) |
367 |
+ netsurf_src_compile |
368 |
+ fi |
369 |
+ if use gtk3 || use gtk ; then |
370 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk3}" ) |
371 |
+ netsurf_src_compile |
372 |
+ fi |
373 |
+} |
374 |
+ |
375 |
+src_install() { |
376 |
+ sed -e '1iexit;' \ |
377 |
+ -i "${WORKDIR}"/*/utils/git-testament.pl || die |
378 |
+ |
379 |
+ if use fbcon ; then |
380 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=framebuffer}" ) |
381 |
+ netsurf_src_install |
382 |
+ elog "framebuffer binary has been installed as netsurf-fb" |
383 |
+ make_desktop_entry "${EROOT}"usr/bin/netsurf-fb NetSurf-framebuffer netsurf "Network;WebBrowser" |
384 |
+ elog "In order to setup the framebuffer console, netsurf needs an /etc/fb.modes" |
385 |
+ elog "You can use an example from /usr/share/doc/${PF}/fb.modes.* (bug 427092)." |
386 |
+ elog "Please make /dev/input/mice readable to the account using netsurf-fb." |
387 |
+ elog "Either use chmod a+r /dev/input/mice (security!!!) or use an group." |
388 |
+ fi |
389 |
+ if use gtk2 ; then |
390 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk}" ) |
391 |
+ netsurf_src_install |
392 |
+ elog "netsurf gtk2 version has been installed as netsurf-gtk" |
393 |
+ make_desktop_entry "${EROOT}"usr/bin/netsurf-gtk NetSurf-gtk netsurf "Network;WebBrowser" |
394 |
+ fi |
395 |
+ if use gtk3 || use gtk ; then |
396 |
+ netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk3}" ) |
397 |
+ netsurf_src_install |
398 |
+ elog "netsurf gtk3 version has been installed as netsurf-gtk3" |
399 |
+ make_desktop_entry "${EROOT}"usr/bin/netsurf-gtk3 NetSurf-gtk3 netsurf "Network;WebBrowser" |
400 |
+ fi |
401 |
+ |
402 |
+ insinto /usr/share/pixmaps |
403 |
+ doins frontends/gtk/res/netsurf.xpm |
404 |
+} |