/[gentoo-x86]/www-client/uzbl/uzbl-9999.ebuild
Gentoo

Contents of /www-client/uzbl/uzbl-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.29 - (show annotations) (download)
Sun Jul 6 12:18:50 2014 UTC (19 months ago) by swift
Branch: MAIN
CVS Tags: HEAD
Changes since 1.28: +62 -38 lines
Fix bug #513466 (incl. #506006, #456310, #486012, #453208) thanks to Kéwan "tharvik" Marconnet

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI='5'
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit python-single-r1
10
11 if [[ ${PV} == *9999* ]]; then
12 inherit git-2
13 EGIT_REPO_URI=${EGIT_REPO_URI:-'git://github.com/Dieterbe/uzbl.git'}
14 KEYWORDS=''
15 SRC_URI=''
16 IUSE='experimental'
17 use experimental &&
18 EGIT_BRANCH='next'
19 else
20 inherit vcs-snapshot
21 KEYWORDS='~amd64 ~x86 ~amd64-linux ~x86-linux'
22 SRC_URI="http://github.com/Dieterbe/${PN}/tarball/${PV} -> ${P}.tar.gz"
23 fi
24
25 DESCRIPTION='Web interface tools which adhere to the unix philosophy.'
26 HOMEPAGE='http://www.uzbl.org'
27
28 LICENSE='LGPL-2.1 MPL-1.1'
29 SLOT='0'
30 IUSE+=' gtk3 +browser helpers +tabbed vim-syntax'
31
32 REQUIRED_USE='tabbed? ( browser )'
33
34 COMMON_DEPEND='
35 dev-libs/glib:2
36 >=dev-libs/icu-4.0.1
37 >=net-libs/libsoup-2.24:2.4
38 !gtk3? (
39 >=net-libs/webkit-gtk-1.1.15:2
40 >=x11-libs/gtk+-2.14:2
41 )
42 gtk3? (
43 net-libs/webkit-gtk:3
44 x11-libs/gtk+:3
45 )
46 '
47
48 DEPEND="
49 virtual/pkgconfig
50 ${COMMON_DEPEND}
51 "
52
53 RDEPEND="
54 ${COMMON_DEPEND}
55 x11-misc/xdg-utils
56 browser? (
57 x11-misc/xclip
58 )
59 helpers? (
60 dev-python/pygtk
61 dev-python/pygobject:2
62 gnome-extra/zenity
63 net-misc/socat
64 x11-libs/pango
65 x11-misc/dmenu
66 x11-misc/xclip
67 )
68 tabbed? (
69 dev-python/pygtk
70 )
71 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
72 "
73 # TODO document what requires the above helpers
74
75 PREFIX="${EPREFIX}/usr"
76
77 pkg_setup() {
78 python-single-r1_pkg_setup
79 if ! use helpers; then
80 elog "uzbl's extra scripts use various optional applications:"
81 elog
82 elog ' dev-python/pygtk'
83 elog ' dev-python/pygobject:2'
84 elog ' gnome-extra/zenity'
85 elog ' net-misc/socat'
86 elog ' x11-libs/pango'
87 elog ' x11-misc/dmenu'
88 elog ' x11-misc/xclip'
89 elog
90 elog 'Make sure you emerge the ones you need manually.'
91 elog 'You may also activate the *helpers* USE flag to'
92 elog 'install all of them automatically.'
93 else
94 einfo 'You have enabled the *helpers* USE flag that installs'
95 einfo "various optional applications used by uzbl's extra scripts."
96 fi
97 }
98
99 src_prepare() {
100 # remove -ggdb
101 sed -i 's/-ggdb //g' Makefile ||
102 die '-ggdb removal sed failed'
103
104 # make gtk3 configurable
105 sed -r 's:^(USE_GTK3) = (.*):\1?=\2:' -i Makefile ||
106 die 'Makefile sed for gtk3 failed'
107
108 # specify python version
109 python_fix_shebang bin/uzbl-tabbed ||
110 die 'Fix shebang failed'
111
112 # fix sandbox
113 if [ ${PV} == 9999 ] && ! use experimental
114 then
115 sed -i 's/prefix=$(PREFIX)/prefix=$(DESTDIR)\/$(PREFIX)/' Makefile ||
116 die 'Makefile sed for sandbox failed'
117 fi
118
119 # fix QA of uzbl.desktop
120 if [ ${PV} == 9999 ] && use experimental
121 then
122 sed -i 's/Categories=Application;Network;/Categories=Network;/' \
123 uzbl.desktop.in || die 'QA compliance of uzbl.desktop.in failed'
124 fi
125 }
126
127 src_compile() {
128 [[ ${PV} == 9999 ]] && gtk_var='ENABLE_GTK3' || gtk_var='USE_GTK3'
129 emake PREFIX="${PREFIX}" ${gtk_var}=$(use gtk3 && echo 1 || echo 0)
130 }
131
132 src_install() {
133 local targets='install-uzbl-core'
134 use browser && targets="${targets} install-uzbl-browser"
135 use browser && use tabbed && targets="${targets} install-uzbl-tabbed"
136
137 # -j1 : upstream bug #351
138 emake -j1 DESTDIR="${D}" PREFIX="${PREFIX}" \
139 DOCDIR="${ED}/usr/share/doc/${PF}" ${targets}
140
141 if use vim-syntax; then
142 insinto /usr/share/vim/vimfiles/ftdetect
143 doins "${S}"/extras/vim/ftdetect/uzbl.vim
144
145 insinto /usr/share/vim/vimfiles/syntax
146 doins "${S}"/extras/vim/syntax/uzbl.vim
147 fi
148 }

  ViewVC Help
Powered by ViewVC 1.1.20