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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jun 9 05:47:08 2010 UTC (9 years, 4 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.2_rc67/cvs/Linux i686)

1 # Copyright 1999-2010 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.ebuild,v 1.2 2010/06/01 01:02:43 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="~x86"
16 IUSE=""
17
18 DEPEND=">=net-libs/webkit-gtk-1.1.14"
19 RDEPEND="
20 !media-gfx/surf
21 !savedconfig? ( net-misc/wget x11-terms/xterm )
22 ${DEPEND}
23 "
24
25 pkg_setup() {
26 elog "net-misc/wget and x11-terms/xterm will be installed by default to"
27 elog "support the default download command, which can be changed through"
28 elog "the savedconfig mechanism. If you enable USE=savedconfig, you will"
29 elog "need to satisfy requirements for the alternative download command"
30 elog "yourself."
31 }
32
33 src_prepare() {
34 sed -i \
35 -e 's|{|(|g;s|}|)|g' \
36 -e 's|\t@|\t|g;s|echo|@&|g' \
37 -e 's|^LIBS.*|LIBS = $(GTKLIB) -lgthread-2.0|g' \
38 -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
39 -e 's|^CC.*|CC ?= gcc|g' \
40 -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall $(INCS) $(CPPFLAGS)|g' \
41 config.mk Makefile || die "sed failed"
42 restore_config config.h
43 }
44
45 src_compile() {
46 emake CC=$(tc-getCC) || die "emake compile failed"
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
51 save_config config.h
52 }

  ViewVC Help
Powered by ViewVC 1.1.20