summaryrefslogtreecommitdiff
path: root/www-client
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2016-03-03 02:00:35 +0100
committerMichael Weber <xmw@gentoo.org>2016-03-03 02:03:02 +0100
commit99838f9d1060c1ca2a25c1d7a0475431590fe5d6 (patch)
treed525bac91b290d32b52776bc29c2a94222465a35 /www-client
parenteac11e64f4703e7010088e4bda2f9d944ed585cb (diff)
downloadgentoo-99838f9d1060c1ca2a25c1d7a0475431590fe5d6.tar.gz
gentoo-99838f9d1060c1ca2a25c1d7a0475431590fe5d6.tar.xz
www-client/netsurf: Enable duktape javascript engine.
Package-Manager: portage-2.2.27
Diffstat (limited to 'www-client')
-rw-r--r--www-client/netsurf/metadata.xml1
-rw-r--r--www-client/netsurf/netsurf-3.4.ebuild19
2 files changed, 11 insertions, 9 deletions
diff --git a/www-client/netsurf/metadata.xml b/www-client/netsurf/metadata.xml
index 3affdffeee7..7d16da32734 100644
--- a/www-client/netsurf/metadata.xml
+++ b/www-client/netsurf/metadata.xml
@@ -19,6 +19,7 @@
<flag name="rosprite">RISC OS Sprite bitmap image support (media-libs/librosprite)</flag>
<flag name="svgtiny">SVG image support via media-libs/svgatiny instead of gnome-base/librsvg</flag>
<flag name="webp">WebP image support (media-libs/libwebp)</flag>
+ <flag name="duktape">Use duktape.org javascript engine</flag>
</use>
<longdescription lang="en">
NetSurf is a free, open source web browser. It is written in C, has its own layout and rendering engine entirely written from scratch. It is small and capable of handling many of the web standards in use today.
diff --git a/www-client/netsurf/netsurf-3.4.ebuild b/www-client/netsurf/netsurf-3.4.ebuild
index 38e97d6fad1..5eda2d97b7c 100644
--- a/www-client/netsurf/netsurf-3.4.ebuild
+++ b/www-client/netsurf/netsurf-3.4.ebuild
@@ -17,14 +17,15 @@ SRC_URI="http://download.netsurf-browser.org/netsurf/releases/source/${P}-src.ta
LICENSE="GPL-2 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm"
-IUSE="+bmp fbcon truetype +gif gstreamer gtk javascript +jpeg +mng pdf-writer
- +png +rosprite +svg +svgtiny +webp fbcon_frontend_able fbcon_frontend_linux
- fbcon_frontend_sdl fbcon_frontend_vnc fbcon_frontend_x"
+IUSE="+bmp +duktape fbcon truetype +gif gstreamer gtk +javascript +jpeg +mng
+ pdf-writer +png +rosprite +svg +svgtiny +webp fbcon_frontend_able
+ fbcon_frontend_linux fbcon_frontend_sdl fbcon_frontend_vnc fbcon_frontend_x"
REQUIRED_USE="|| ( fbcon gtk )
- amd64? ( abi_x86_32? ( !javascript ) )
+ amd64? ( abi_x86_32? ( javascript? ( duktape ) ) )
fbcon? ( ^^ ( fbcon_frontend_able fbcon_frontend_linux fbcon_frontend_sdl
- fbcon_frontend_vnc fbcon_frontend_x ) )"
+ fbcon_frontend_vnc fbcon_frontend_x ) )
+ duktape? ( javascript )"
RDEPEND=">=dev-libs/libnsutils-0.0.2[${MULTILIB_USEDEP}]
>=dev-libs/libutf8proc-1.1.6-r1[${MULTILIB_USEDEP}]
@@ -43,8 +44,8 @@ RDEPEND=">=dev-libs/libnsutils-0.0.2[${MULTILIB_USEDEP}]
gnome-base/libglade:2.0[${MULTILIB_USEDEP}]
>=x11-libs/gtk+-2.24.23:2[${MULTILIB_USEDEP}] )
gstreamer? ( media-libs/gstreamer:0.10[${MULTILIB_USEDEP}] )
- javascript? ( >=dev-libs/nsgenbind-0.1.2-r1[${MULTILIB_USEDEP}]
- dev-lang/spidermonkey:0= )
+ javascript? ( >=dev-libs/nsgenbind-0.3[${MULTILIB_USEDEP}]
+ !duktape? ( dev-lang/spidermonkey:0= ) )
jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
mng? ( >=media-libs/libmng-1.0.10-r2[${MULTILIB_USEDEP}] )
pdf-writer? ( media-libs/libharu[${MULTILIB_USEDEP}] )
@@ -87,9 +88,9 @@ src_configure() {
NETSURF_USE_MNG=$(usex mng YES NO)
NETSURF_USE_WEBP=$(usex webp YES NO)
NETSURF_USE_VIDEO=$(usex gstreamer YES NO)
- NETSURF_USE_MOZJS=$(usex javascript YES NO)
+ NETSURF_USE_MOZJS=$(usex javascript $(usex duktape NO YES) NO)
NETSURF_USE_JS=NO
- NETSURF_USE_DUKTAPE=NO
+ NETSURF_USE_DUKTAPE=$(usex javascript $(usex duktape YES NO) NO)
NETSURF_USE_HARU_PDF=$(usex pdf-writer YES NO)
NETSURF_USE_NSSVG=$(usex svg $(usex svgtiny YES NO) NO)
NETSURF_USE_RSVG=$(usex svg $(usex svgtiny NO YES) NO)