Skip to content

Instantly share code, notes, and snippets.

@posativ
Created September 16, 2014 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save posativ/30668ee3472c6d0649e8 to your computer and use it in GitHub Desktop.
Save posativ/30668ee3472c6d0649e8 to your computer and use it in GitHub Desktop.
qutebrowser on Gentoo
Add qt-overlay (git://git.overlays.gentoo.org/proj/qt.git)
and emerge:
* dev-qt/qtwebkit:5
* dev-qt/qtwidgets:5
* dev-lang/python:3.4
* dev-python/virtualenv (~1.11.6)
* dev-python/sip (**4.9999)
My USEs for qtcore/qtwebkit 5:
dev-qt/qtcore:5 icu
dev-qt/qtwebkit:5 widgets printsupport multimedia gstreamer
Also make sure you have `python3_4` in your PYTHON_TARGETS
(/etc/portage/make.conf) and rebuild your system (emerge -uDNav @world).
I prefer the installation in a dedicated virtual environment:
$ virtualenv --python=python3.4 --system-site-packages ~/.pyenv/qutebrowser
$ cd ~/.pyenv/qutebrowser
$ source bin/activate
There's still no PyQt5 packaged for Gentoo so we manually install it into the
virtual environment:
$ wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.3.2/PyQt-gpl-5.3.2.tar.gz
$ tar xfz PyQt-gpl-5.3.2.tar.gz
$ cd PyQt-gpl-5.3.2/
$ python configure.py --qmake=/usr/lib64/qt5/bin/qmake --confirm-license
$ make
$ make install
Lastly we install qutebrowser:
$ git clone git://the-compiler.org/qutebrowser/
$ cd qutebrowser/
$ python setup.py develop
To run qutebrowser, you can run `qutebrowser` inside the virtualenv. Or symlink
it to a directory in your PATH, e.g.:
$ ln -s ~/.pyenv/qutebrowser/bin/qutebrowser /usr/local/bin/
Your mileage may vary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment