* [PATCH] gnu: Add surf.
@ 2016-05-09 8:05 Al McElrath
2016-05-09 10:17 ` 宋文武
0 siblings, 1 reply; 3+ messages in thread
From: Al McElrath @ 2016-05-09 8:05 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 105 bytes --]
Attached is a patch to add surf, a simple WebKit browser. The
suckless.org site doesn't support HTTPS.
[-- Attachment #2: 0001-gnu-Add-surf.patch --]
[-- Type: text/x-diff, Size: 2462 bytes --]
From c637648e94b947258a09986a2364002f801053a6 Mon Sep 17 00:00:00 2001
From: Al McElrath <hello@yrns.org>
Date: Sat, 7 May 2016 19:59:00 -0700
Subject: [PATCH] gnu: Add surf.
* gnu/packages/suckless.scm (surf): New variable.
---
gnu/packages/suckless.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index c921f8e..81e89fb 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
;;; Copyright © 2015 Amirouche Boubekki <amirouche@hypermove.net>
+;;; Copyright © 2016 Al McElrath <hello@yrns.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -26,6 +27,7 @@
#:use-module (gnu packages xorg)
#:use-module (gnu packages fonts)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages webkit)
#:use-module (gnu packages fontutils))
(define-public dwm
@@ -189,3 +191,36 @@ implements 256 colors, most VT10X escape sequences, utf8, X11 copy/paste,
antialiased fonts (using fontconfig), fallback fonts, resizing, and line
drawing.")
(license license:x11)))
+
+(define-public surf
+ (package
+ (name "surf")
+ (version "0.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://dl.suckless.org/surf/surf-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0jj93izd8fizxfa6ln9w1h9bwki81sz5dhskh5x1rl34zd38aq4m"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:tests? #f ; no tests
+ #:make-flags (list "CC=gcc"
+ (string-append "PREFIX=" %output))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (inputs
+ `(("webkitgtk/gtk+-2" ,webkitgtk/gtk+-2)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (home-page "http://surf.suckless.org/")
+ (synopsis "Simple web browser")
+ (description
+ "Surf is a simple web browser based on WebKit/GTK+. It is able to
+display websites and follow links. It supports the XEmbed protocol which
+makes it possible to embed it in another application. Furthermore, one can
+point surf to another URI by setting its XProperties.")
+ (license license:x11)))
--
2.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: Add surf.
2016-05-09 8:05 [PATCH] gnu: Add surf Al McElrath
@ 2016-05-09 10:17 ` 宋文武
2016-05-09 21:05 ` Al McElrath
0 siblings, 1 reply; 3+ messages in thread
From: 宋文武 @ 2016-05-09 10:17 UTC (permalink / raw)
To: Al McElrath; +Cc: guix-devel
Al McElrath <hello@yrns.org> writes:
> Attached is a patch to add surf, a simple WebKit browser. The
> suckless.org site doesn't support HTTPS.
>
I change it to use glib-or-gtk-build-system and add glib-networking
and gsettings-desktop-schemas to make it running and support https.
Also user should install dmenu, xprop and maybe st to make
surf more useful.
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: Add surf.
2016-05-09 10:17 ` 宋文武
@ 2016-05-09 21:05 ` Al McElrath
0 siblings, 0 replies; 3+ messages in thread
From: Al McElrath @ 2016-05-09 21:05 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
Awesome, thank you. I realize now surf would be crashing, if not for
already having gsettings-desktop-schemas installed. Should I have added
dmenu, etc. to to the description? How are optional dependencies
handled?
宋文武 <iyzsong@member.fsf.org> writes:
> Al McElrath <hello@yrns.org> writes:
>
>> Attached is a patch to add surf, a simple WebKit browser. The
>> suckless.org site doesn't support HTTPS.
>>
> I change it to use glib-or-gtk-build-system and add glib-networking
> and gsettings-desktop-schemas to make it running and support https.
> Also user should install dmenu, xprop and maybe st to make
> surf more useful.
>
> Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-09 21:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 8:05 [PATCH] gnu: Add surf Al McElrath
2016-05-09 10:17 ` 宋文武
2016-05-09 21:05 ` Al McElrath
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.