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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Aug 20 17:12:46 2012 UTC (9 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Version bump. Use vcs-snapshot eclass to unpack release tarballs.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20