[hackers] [gentoo] Added surf ebuild. Had to disable source() to compile. || "Doki Pen

From: <hg_AT_suckless.org>
Date: Wed, 4 Nov 2009 19:45:27 +0000 (UTC)

changeset: 1:3e0d83d25bf1
user: "Doki Pen <doki_pen_AT_doki-pen.org>"
date: Wed Nov 04 14:30:51 2009 -0500
files: www-client/surf/Manifest www-client/surf/files/config.local.mk www-client/surf/files/local-mk.patch www-client/surf/files/noop_source.patch www-client/surf/surf-9999.ebuild
description:
Added surf ebuild. Had to disable source() to compile.

diff -r 9774b0dfc1c7 -r 3e0d83d25bf1 www-client/surf/Manifest
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www-client/surf/Manifest Wed Nov 04 14:30:51 2009 -0500
@@ -0,0 +1,4 @@
+AUX config.local.mk 171 RMD160 74f9fb98af7dc978c75f8f3780a5482f939946f6 SHA1 234eebf6afff1bbc6487c36bc34aaa42202911ca SHA256 6ecfea5302330e61be4a5e18c7bce4fe7f3e5ee2b1332ccc20c56d05b05e359d
+AUX local-mk.patch 275 RMD160 dacf78da4f3605d0621f7d465ebb0a28ea09306b SHA1 734d9e3c49a7dc555ea1b4ce6767628d7f230893 SHA256 5a613391196326e1a3ade71cbd9643c4ebd327dca2ec53319b4fc008d7281e41
+AUX noop_source.patch 375 RMD160 d104a629aa1781e5a008537d59d177ab595bf7ff SHA1 14dd1e59c61097e80bebf0a235bca35b9a68fa28 SHA256 3e43cad45d96b5d737bcd410d92377a8da4ad34be812573646fb7b88dab8f89a
+EBUILD surf-9999.ebuild 757 RMD160 d0bea703c4d0dc74b42ee49c7fdbe7e5e54cf309 SHA1 0c6f0d5b57d76dbdbe63117c8d40b4baeeaf8f92 SHA256 87cb2ace41ebcfe3dd72ba183ae4af5bfd7557c15aa8f39155f8d2eeecced2d5
diff -r 9774b0dfc1c7 -r 3e0d83d25bf1 www-client/surf/files/config.local.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www-client/surf/files/config.local.mk Wed Nov 04 14:30:51 2009 -0500
@@ -0,0 +1,6 @@
+# Customize below to fit your system
+
+# Paths
+PREFIX = /usr
+# BIN = $(PREFIX)/bin MAN = $(PREFIX)/share/man ETC = /etc LIBDIR = $(PREFIX)/lib INCLUDE = $(PREFIX)/include
+
diff -r 9774b0dfc1c7 -r 3e0d83d25bf1 www-client/surf/files/local-mk.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www-client/surf/files/local-mk.patch Wed Nov 04 14:30:51 2009 -0500
@@ -0,0 +1,11 @@
+diff -r e9798f4e063a Makefile
+--- a/Makefile Mon Nov 02 09:29:54 2009 +0100
++++ b/Makefile Wed Nov 04 12:14:50 2009 -0500
+@@ -2,6 +2,7 @@
+ # See LICENSE file for copyright and license details.
+
+ include config.mk
++include config.local.mk
+
+ SRC = surf.c
+ OBJ = ${SRC:.c=.o}
diff -r 9774b0dfc1c7 -r 3e0d83d25bf1 www-client/surf/files/noop_source.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www-client/surf/files/noop_source.patch Wed Nov 04 14:30:51 2009 -0500
@@ -0,0 +1,18 @@
+diff -r e9798f4e063a surf.c
+--- a/surf.c Mon Nov 02 09:29:54 2009 +0100
++++ b/surf.c Wed Nov 04 14:26:22 2009 -0500
+@@ -725,12 +725,14 @@
+
+ void
+ source(Client *c, const Arg *arg) {
++ /*
+ Arg a = { .b = FALSE };
+ gboolean s;
+
+ s = webkit_web_view_get_view_source_mode(c->view);
+ webkit_web_view_set_view_source_mode(c->view, !s);
+ reload(c, &a);
++ */
+ }
+
+ void
diff -r 9774b0dfc1c7 -r 3e0d83d25bf1 www-client/surf/surf-9999.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www-client/surf/surf-9999.ebuild Wed Nov 04 14:30:51 2009 -0500
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit mercurial
+
+DESCRIPTION="surf is a simple web browser based on WebKit/GTK+."
+HOMEPAGE="http://surf.suckless.org/"
+EHG_REPO_URI="http://hg.suckless.org/surf"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="net-libs/webkit-gtk"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ mercurial_src_unpack
+
+ cp "${FILESDIR}"/config.local.mk "${S}"
+}
+
+src_compile() {
+ epatch "${FILESDIR}/local-mk.patch"
+ epatch "${FILESDIR}/noop_source.patch"
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+
+ if use doc ;
+ then
+ dodoc {LICENSE,README} || die
+ fi
+}
+
Received on Wed Nov 04 2009 - 19:45:27 UTC

This archive was generated by hypermail 2.2.0 : Wed Nov 04 2009 - 19:48:23 UTC