Commit | Line | Data |
---|---|---|
35dbbbe0 CS |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com> | |
36160ebb | 3 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
35dbbbe0 CS |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | (define-module (gnu packages conkeror) | |
21 | #:use-module ((guix licenses) #:prefix license:) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix download) | |
36160ebb | 24 | #:use-module (guix build-system gnu) |
35dbbbe0 | 25 | #:use-module (gnu packages) |
36160ebb | 26 | #:use-module (gnu packages gnuzilla)) |
35dbbbe0 CS |
27 | |
28 | (define-public conkeror | |
29 | (package | |
30 | (name "conkeror") | |
31 | (version "1.0pre1") | |
32 | (source (origin | |
33 | (method url-fetch) | |
34 | (uri | |
35 | (string-append "http://repo.or.cz/w/conkeror.git/snapshot/" | |
36 | "8a26fff5896a3360549e2adfbf06b1d57e909266" | |
37 | ".tar.gz")) ; tag: debian-1.0--pre-1+git140616-1 | |
38 | (sha256 | |
39 | (base32 | |
40 | "1cgjzi7g3g22zcx6bpfnid4i12sb45w6icmxdzjn8d3c0m8qsyp1")))) | |
36160ebb EB |
41 | (build-system gnu-build-system) |
42 | (inputs `(("icecat" ,icecat))) | |
35dbbbe0 | 43 | (arguments |
36160ebb EB |
44 | `(#:tests? #f ;no tests |
45 | #:make-flags '("CC=gcc") | |
46 | #:phases | |
47 | (alist-delete | |
48 | 'configure | |
49 | (alist-replace | |
50 | 'install | |
51 | (lambda _ | |
52 | (begin | |
53 | (use-modules (guix build utils)) | |
54 | (let* ((datadir (string-append %output "/share/conkeror")) | |
55 | (bindir (string-append %output "/bin")) | |
56 | (launcher (string-append bindir "/conkeror")) | |
57 | (spawn (string-append bindir "/conkeror-spawn-helper"))) | |
58 | (copy-recursively "." datadir) | |
59 | (mkdir-p bindir) | |
60 | (copy-file "conkeror-spawn-helper" spawn) | |
61 | (call-with-output-file launcher | |
62 | (lambda (p) | |
63 | (format p "#!~a/bin/bash | |
35dbbbe0 | 64 | exec ~a/bin/icecat --app ~a \"$@\"~%" |
36160ebb EB |
65 | (assoc-ref %build-inputs "bash") ;implicit input |
66 | (assoc-ref %build-inputs "icecat") | |
67 | (string-append datadir | |
68 | "/application.ini")))) | |
69 | (chmod launcher #o555)))) | |
70 | %standard-phases)))) | |
35dbbbe0 CS |
71 | (synopsis "Keyboard focused web browser with Emacs look and feel") |
72 | (description "Conkeror is a highly-programmable web browser based on | |
36160ebb EB |
73 | Mozilla XULRunner which is the base of all Mozilla products including Firefox. |
74 | Conkeror has a sophisticated keyboard system for running commands and | |
75 | interacting with web page content, modelled after Emacs and Lynx. It is | |
35dbbbe0 CS |
76 | self-documenting and extensible with JavaScript. |
77 | ||
78 | It comes with builtin support for several Web 2.0 sites like several Google | |
79 | services (Search, Gmail, Maps, Reader, etc.), Del.icio.us, Reddit, Last.fm and | |
36160ebb | 80 | YouTube. For easier editing of form fields, it can spawn external editors.") |
35dbbbe0 CS |
81 | (home-page "http://conkeror.org") |
82 | ;; Conkeror is triple licensed. | |
83 | (license (list license:gpl2 | |
84 | license:lgpl2.1 | |
85 | ;; MPL 1.1 -- this license is not GPL compatible | |
86 | )))) |