Override live ebuild for uzbl
This commit is contained in:
parent
b8a0baaac7
commit
b3c1073972
1
www-client/uzbl/Manifest
Normal file
1
www-client/uzbl/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
EBUILD uzbl-9999.ebuild 2598 SHA256 b64d911427b9250ea158a97f527f377e05f0f09ae2bce17ef8000b13e20851cc SHA512 83ab370e68b699d9455b737d7a8f3985ad94efe626326114fb969185065d8a8e3aa1f3c202b7090a47a9961cdf6afd543d8679bc754d495590abe6a17c11ee78 WHIRLPOOL ffd5adf9979aedb8bf6446992f1843ea3fe7df5c6cc866a218aa328975ce1ea700c8d88ba8e37f3c3d67cabd44f1037f2e8e99df9767c63fc2cd362163441458
|
116
www-client/uzbl/uzbl-9999.ebuild
Normal file
116
www-client/uzbl/uzbl-9999.ebuild
Normal file
|
@ -0,0 +1,116 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/www-client/uzbl/uzbl-9999.ebuild,v 1.29 2014/07/06 12:18:50 swift Exp $
|
||||
|
||||
EAPI='5'
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
inherit git-2
|
||||
EGIT_REPO_URI=${EGIT_REPO_URI:-'git://github.com/Dieterbe/uzbl.git'}
|
||||
KEYWORDS=''
|
||||
SRC_URI=''
|
||||
EGIT_BRANCH='next'
|
||||
|
||||
DESCRIPTION='Web interface tools which adhere to the unix philosophy.'
|
||||
HOMEPAGE='http://www.uzbl.org'
|
||||
|
||||
LICENSE='LGPL-2.1 MPL-1.1'
|
||||
SLOT='0'
|
||||
IUSE+=' +browser helpers +tabbed vim-syntax'
|
||||
|
||||
REQUIRED_USE='tabbed? ( browser )'
|
||||
|
||||
COMMON_DEPEND='
|
||||
dev-libs/glib:2
|
||||
>=dev-libs/icu-4.0.1
|
||||
>=net-libs/libsoup-2.24:2.4
|
||||
|
||||
net-libs/webkit-gtk:3
|
||||
x11-libs/gtk+:3
|
||||
'
|
||||
|
||||
DEPEND="
|
||||
virtual/pkgconfig
|
||||
${COMMON_DEPEND}
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
x11-misc/xdg-utils
|
||||
browser? (
|
||||
x11-misc/xclip
|
||||
)
|
||||
helpers? (
|
||||
dev-python/pygtk
|
||||
dev-python/pygobject:2
|
||||
gnome-extra/zenity
|
||||
net-misc/socat
|
||||
x11-libs/pango
|
||||
x11-misc/dmenu
|
||||
x11-misc/xclip
|
||||
)
|
||||
tabbed? (
|
||||
dev-python/pygtk
|
||||
)
|
||||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
|
||||
"
|
||||
# TODO document what requires the above helpers
|
||||
|
||||
PREFIX="${EPREFIX}/usr"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
if ! use helpers; then
|
||||
elog "uzbl's extra scripts use various optional applications:"
|
||||
elog
|
||||
elog ' dev-python/pygtk'
|
||||
elog ' dev-python/pygobject:2'
|
||||
elog ' gnome-extra/zenity'
|
||||
elog ' net-misc/socat'
|
||||
elog ' x11-libs/pango'
|
||||
elog ' x11-misc/dmenu'
|
||||
elog ' x11-misc/xclip'
|
||||
elog
|
||||
elog 'Make sure you emerge the ones you need manually.'
|
||||
elog 'You may also activate the *helpers* USE flag to'
|
||||
elog 'install all of them automatically.'
|
||||
else
|
||||
einfo 'You have enabled the *helpers* USE flag that installs'
|
||||
einfo "various optional applications used by uzbl's extra scripts."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# remove -ggdb
|
||||
sed -i 's/-ggdb //g' Makefile ||
|
||||
die '-ggdb removal sed failed'
|
||||
|
||||
# specify python version
|
||||
python_fix_shebang bin/uzbl-tabbed ||
|
||||
die 'Fix shebang failed'
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake PREFIX="${PREFIX}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local targets='install-uzbl-core'
|
||||
use browser && targets="${targets} install-uzbl-browser"
|
||||
use browser && use tabbed && targets="${targets} install-uzbl-tabbed"
|
||||
|
||||
# -j1 : upstream bug #351
|
||||
emake -j1 DESTDIR="${D}" PREFIX="${PREFIX}" \
|
||||
DOCDIR="${ED}/usr/share/doc/${PF}" ${targets}
|
||||
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${S}"/extras/vim/ftdetect/uzbl.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins "${S}"/extras/vim/syntax/uzbl.vim
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue