/[gentoo-x86]/www-client/surf/surf-0.5.ebuild
Gentoo

Contents of /www-client/surf/surf-0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Apr 8 11:57:06 2013 UTC (6 years, 6 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/surf/surf-0.5.ebuild,v 1.4 2012/12/09 23:25:38 jer Exp $
4
5 EAPI=4
6 inherit savedconfig toolchain-funcs
7
8 DESCRIPTION="a simple web browser based on WebKit/GTK+"
9 HOMEPAGE="http://surf.suckless.org/"
10 SRC_URI="http://dl.suckless.org/${PN}/${P}.tar.gz"
11
12 LICENSE="MIT"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
16
17 DEPEND="
18 dev-libs/glib
19 net-libs/libsoup
20 net-libs/webkit-gtk:2
21 x11-libs/gtk+:2
22 x11-libs/libX11
23 "
24 RDEPEND="
25 !sci-chemistry/surf
26 !savedconfig? ( net-misc/wget x11-terms/xterm )
27 x11-apps/xprop
28 x11-misc/dmenu
29 ${DEPEND}
30 "
31
32 pkg_setup() {
33 elog "net-misc/wget and x11-terms/xterm will be installed by default to"
34 elog "support the default download command, which can be changed through"
35 elog "the savedconfig mechanism. If you enable USE=savedconfig, you will"
36 elog "need to satisfy requirements for the alternative download command"
37 elog "yourself."
38 }
39
40 src_prepare() {
41 sed -i \
42 -e 's|{|(|g;s|}|)|g' \
43 -e 's|\t@|\t|g;s|echo|@&|g' \
44 -e 's|^LIBS.*|LIBS = $(GTKLIB) -lgthread-2.0|g' \
45 -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
46 -e 's|^CC.*|CC ?= gcc|g' \
47 -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall $(INCS) $(CPPFLAGS)|g' \
48 config.mk Makefile || die "sed failed"
49 restore_config config.h
50 tc-export CC
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" PREFIX="/usr" install
55 save_config config.h
56 }
57
58 pkg_postinst() {
59 ewarn "Please correct the permissions of your \$HOME/.surf/ directory"
60 ewarn "and its contents to no longer be world readable (see bug #404983)"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20