PhantomJS has been @deprecated.
PhantomJS is a very awesome headless webkit.
It should be noted that Gentoo is a bit out of date on PhantomJS, as of this writing 1.4 in Gentoo vs 1.7 stable.
~ # echo "=www-client/phantomjs-1.9.1 ~amd64" > /etc/portage/package.use
~ # USE="-cups -gstreamer -qt3support" emerge -av phantomjs
Dependecy Tree
Calculating dependencies ... done! [ebuild N ] app-admin/eselect-qtgraphicssystem-1.1.1 2 kB [ebuild N ] x11-proto/xproto-7.0.23-r1 USE="-doc" 284 kB [ebuild N ] x11-proto/xextproto-7.2.1 USE="-doc" 224 kB [ebuild N ] x11-proto/inputproto-2.2 175 kB [ebuild N ] x11-libs/xtrans-1.2.7 USE="-doc" 169 kB [ebuild N ] x11-proto/videoproto-2.3.1 99 kB [ebuild N ] x11-proto/renderproto-0.11.1 104 kB [ebuild N ] x11-proto/randrproto-1.3.2 121 kB [ebuild N ] x11-proto/kbproto-1.0.6 251 kB [ebuild N ] x11-proto/xf86bigfontproto-1.2.0 49 kB [ebuild N ] x11-proto/xcb-proto-1.7.1 104 kB [ebuild N ] dev-libs/libpthread-stubs-0.3 USE="-static-libs" 199 kB [ebuild N ] x11-libs/libICE-1.0.8 USE="-doc ipv6 -static-libs" 358 kB [ebuild N ] x11-proto/fixesproto-5.0 99 kB [ebuild N ] x11-libs/libXau-1.0.7 USE="-static-libs" 269 kB [ebuild N ] x11-libs/libXdmcp-1.1.1 USE="-doc -static-libs" 304 kB [ebuild N ] x11-libs/libSM-1.2.1 USE="-doc ipv6 -static-libs uuid" 327 kB [ebuild N ] x11-libs/libxcb-1.8.1 USE="-doc (-selinux) -static-libs" 368 kB [ebuild N ] x11-libs/libX11-1.5.0 USE="-doc ipv6 -static-libs {-test}" 2,268 kB [ebuild N ] x11-libs/libXrender-0.9.7 USE="-static-libs" 275 kB [ebuild N ] x11-libs/libXext-1.3.1 USE="-doc -static-libs" 364 kB [ebuild N ] x11-libs/libXfixes-5.0 USE="-static-libs" 248 kB [ebuild N ] x11-libs/libXv-1.0.7 USE="-static-libs" 279 kB [ebuild N ] x11-libs/libXrandr-1.3.2 USE="-static-libs" 268 kB [ebuild N ] x11-libs/libXcursor-1.1.13 USE="-static-libs" 296 kB [ebuild N ] x11-libs/libXi-1.6.1 USE="-doc -static-libs" 418 kB [ebuild N ] x11-libs/qt-core-4.8.2:4 USE="(-aqua) (-c++0x) -debug exceptions glib iconv -icu -optimized-qmake -pch (-qpa) qt3support ssl" 233,505 kB [ebuild N ] x11-libs/qt-script-4.8.2:4 USE="(-aqua) (-c++0x) -debug exceptions iconv (-jit) -pch (-qpa)" 0 kB [ebuild N ] x11-libs/qt-gui-4.8.2:4 USE="accessibility (-aqua) (-c++0x) -cups -dbus -debug -egl exceptions -gif glib -gtkstyle -mng -nas -nis -pch (-qpa) qt3support -tiff -trace -xinerama xv" 0 kB [ebuild N ] x11-libs/qt-sql-4.8.2:4 USE="(-aqua) (-c++0x) -debug exceptions -firebird -freetds -mysql -oci8 -odbc -pch -postgres (-qpa) qt3support sqlite" 0 kB [ebuild N ] x11-libs/qt-qt3support-4.8.2:4 USE="accessibility (-aqua) (-c++0x) -debug exceptions -pch (-qpa)" 0 kB [ebuild N ] x11-libs/qt-xmlpatterns-4.8.2:4 USE="(-aqua) (-c++0x) -debug -pch (-qpa)" 0 kB [ebuild N ] x11-libs/qt-webkit-4.8.2:4 USE="(-aqua) -debug exceptions -gstreamer -icu jit -pch (-qpa)" 0 kB [ebuild N ~] www-client/phantomjs-1.9.1 USE="examples -python" 487 kB