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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Feb 20 12:07:48 2012 UTC (7 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Fix insecure file permissions (bug #404983).

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

1 # Copyright 1999-2011 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.4.1.ebuild,v 1.7 2011/08/09 18:51:08 jer Exp $
4
5 EAPI="2"
6
7 inherit eutils savedconfig toolchain-funcs
8
9 DESCRIPTION="a simple web browser based on WebKit/GTK+"
10 HOMEPAGE="http://surf.suckless.org/"
11 SRC_URI="http://dl.suckless.org/${PN}/${P}.tar.gz"
12
13 LICENSE="as-is"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 DEPEND="
19 dev-libs/glib
20 net-libs/libsoup
21 net-libs/webkit-gtk:2
22 x11-libs/gtk+:2
23 x11-libs/libX11
24 "
25 RDEPEND="
26 !sci-chemistry/surf
27 !savedconfig? ( net-misc/wget x11-terms/xterm )
28 x11-apps/xprop
29 x11-misc/dmenu
30 ${DEPEND}
31 "
32
33 pkg_setup() {
34 elog "net-misc/wget and x11-terms/xterm will be installed by default to"
35 elog "support the default download command, which can be changed through"
36 elog "the savedconfig mechanism. If you enable USE=savedconfig, you will"
37 elog "need to satisfy requirements for the alternative download command"
38 elog "yourself."
39 }
40
41 src_prepare() {
42 sed -i \
43 -e 's|{|(|g;s|}|)|g' \
44 -e 's|\t@|\t|g;s|echo|@&|g' \
45 -e 's|^LIBS.*|LIBS = $(GTKLIB) -lgthread-2.0|g' \
46 -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
47 -e 's|^CC.*|CC ?= gcc|g' \
48 -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall $(INCS) $(CPPFLAGS)|g' \
49 config.mk Makefile || die "sed failed"
50 restore_config config.h
51 }
52
53 src_compile() {
54 emake CC=$(tc-getCC) || die "emake compile failed"
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
59 save_config config.h
60 }

  ViewVC Help
Powered by ViewVC 1.1.20