diff options
| -rw-r--r-- | gnu-system.am | 1 | ||||
| -rw-r--r-- | gnu/packages/gnuzilla.scm | 97 |
2 files changed, 98 insertions, 0 deletions
diff --git a/gnu-system.am b/gnu-system.am index af57a4c4308..2f7e4ffba87 100644 --- a/gnu-system.am +++ b/gnu-system.am | |||
| @@ -78,6 +78,7 @@ GNU_SYSTEM_MODULES = \ | |||
| 78 | gnu/packages/gnunet.scm \ | 78 | gnu/packages/gnunet.scm \ |
| 79 | gnu/packages/gnupg.scm \ | 79 | gnu/packages/gnupg.scm \ |
| 80 | gnu/packages/gnutls.scm \ | 80 | gnu/packages/gnutls.scm \ |
| 81 | gnu/packages/gnuzilla.scm \ | ||
| 81 | gnu/packages/gperf.scm \ | 82 | gnu/packages/gperf.scm \ |
| 82 | gnu/packages/gprolog.scm \ | 83 | gnu/packages/gprolog.scm \ |
| 83 | gnu/packages/graphviz.scm \ | 84 | gnu/packages/graphviz.scm \ |
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm new file mode 100644 index 00000000000..ff7de4fe96d --- /dev/null +++ b/gnu/packages/gnuzilla.scm | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | ||
| 2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | ||
| 3 | ;;; | ||
| 4 | ;;; This file is part of GNU Guix. | ||
| 5 | ;;; | ||
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 7 | ;;; under the terms of the GNU General Public License as published by | ||
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 9 | ;;; your option) any later version. | ||
| 10 | ;;; | ||
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | ;;; GNU General Public License for more details. | ||
| 15 | ;;; | ||
| 16 | ;;; You should have received a copy of the GNU General Public License | ||
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | (define-module (gnu packages gnuzilla) | ||
| 20 | #:use-module (gnu packages) | ||
| 21 | #:use-module ((guix licenses) | ||
| 22 | #:renamer (symbol-prefix-proc 'license:)) | ||
| 23 | #:use-module (guix packages) | ||
| 24 | #:use-module (guix download) | ||
| 25 | #:use-module (guix build-system gnu) | ||
| 26 | #:use-module (gnu packages glib) | ||
| 27 | #:use-module (gnu packages gstreamer) | ||
| 28 | #:use-module (gnu packages gtk) | ||
| 29 | #:use-module (gnu packages linux) | ||
| 30 | #:use-module (gnu packages perl) | ||
| 31 | #:use-module (gnu packages pkg-config) | ||
| 32 | #:use-module (gnu packages python) | ||
| 33 | #:use-module (gnu packages xorg) | ||
| 34 | #:use-module (gnu packages yasm) | ||
| 35 | #:use-module (gnu packages zip)) | ||
| 36 | |||
| 37 | (define-public icecat | ||
| 38 | (package | ||
| 39 | (name "icecat") | ||
| 40 | (version "24.0") | ||
| 41 | (source | ||
| 42 | (origin | ||
| 43 | (method url-fetch) | ||
| 44 | (uri (string-append "mirror://gnu/gnuzilla/" | ||
| 45 | (substring version 0 (string-index version #\.)) | ||
| 46 | "/icecat-" version ".tar.gz")) | ||
| 47 | (sha256 | ||
| 48 | (base32 | ||
| 49 | "1vxzjwmhad6yxx4sk9zvapjgv5salcv10id061q0991ii3dycy9a")))) | ||
| 50 | (build-system gnu-build-system) | ||
| 51 | (inputs | ||
| 52 | `(("alsa-lib" ,alsa-lib) | ||
| 53 | ("dbus" ,dbus) | ||
| 54 | ("dbus-glib" ,dbus-glib) | ||
| 55 | ("glib" ,glib) | ||
| 56 | ("gstreamer" ,gstreamer-0.10) | ||
| 57 | ("gst-plugins-base" ,gst-plugins-base-0.10) | ||
| 58 | ("gtk+" ,gtk+-2) | ||
| 59 | ("libxt" ,libxt) | ||
| 60 | ("mesa" ,mesa) | ||
| 61 | ("perl" ,perl) | ||
| 62 | ("pkg-config" ,pkg-config) | ||
| 63 | ("python" ,python-2) ; Python 3 not supported | ||
| 64 | ("python2-pysqlite" ,python2-pysqlite) | ||
| 65 | ("unzip" ,unzip) | ||
| 66 | ("yasm" ,yasm) | ||
| 67 | ("zip" ,zip))) | ||
| 68 | (arguments | ||
| 69 | `(#:tests? #f ; no check target | ||
| 70 | #:phases | ||
| 71 | (alist-cons-before | ||
| 72 | 'patch-source-shebangs 'sanitise | ||
| 73 | (lambda _ | ||
| 74 | ;; delete dangling symlinks | ||
| 75 | (delete-file "browser/base/content/.#aboutDialog.xul") | ||
| 76 | (delete-file "browser/base/content/abouthome/.#aboutHome.xhtml") | ||
| 77 | (delete-file "browser/branding/unofficial/content/.#aboutHome.xhtml") | ||
| 78 | (delete-file "toolkit/crashreporter/google-breakpad/autotools/compile")) | ||
| 79 | (alist-replace | ||
| 80 | 'configure | ||
| 81 | ;; configure does not work followed by both "SHELL=..." and | ||
| 82 | ;; "CONFIG_SHELL=..."; set environment variables instead | ||
| 83 | (lambda* (#:key outputs configure-flags #:allow-other-keys) | ||
| 84 | (let ((out (assoc-ref outputs "out"))) | ||
| 85 | (setenv "SHELL" (which "bash")) | ||
| 86 | (setenv "CONFIG_SHELL" (which "bash")) | ||
| 87 | (zero? (system* "./configure" | ||
| 88 | (string-append "--prefix=" out) | ||
| 89 | "--disable-webrtc")))) ; webrtc creates an error | ||
| 90 | %standard-phases)))) | ||
| 91 | (home-page "http://www.gnu.org/software/gnuzilla/") | ||
| 92 | (synopsis "Entirely free browser derived from Mozilla Firefox") | ||
| 93 | (description | ||
| 94 | "IceCat is the GNU version of the Firefox browser. It is entirely free | ||
| 95 | software, which does not recommend non-free plugins and addons. It also | ||
| 96 | features extra privacy-protecting features built in.") | ||
| 97 | (license license:mpl2.0))) ; and others, see toolkit/content/license.html | ||
