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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Feb 20 18:21:44 2010 UTC (9 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Apply upstream download path patch thanks to John Brendler (bug #306059).
(Portage version: 2.2_rc63/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.3.ebuild,v 1.3 2010/02/20 18:12:19 jer Exp $
4
5 EAPI="2"
6
7 inherit 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="${DEPEND}"
20
21 src_prepare() {
22 sed -i \
23 -e 's|{|(|g;s|}|)|g' \
24 -e 's|\t@|\t|g;s|echo|@&|g' \
25 -e 's|^LIBS.*|LIBS = $(GTKLIB) -lgthread-2.0|g' \
26 -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
27 -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall $(INCS) $(CPPFLAGS)|g' \
28 config.mk Makefile || die "sed failed"
29 restore_config config.h
30 }
31
32 src_compile() {
33 emake CC=$(tc-getCC) || die "emake compile failed"
34 }
35
36 src_install() {
37 emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
38 save_config config.h
39 }

  ViewVC Help
Powered by ViewVC 1.1.20