Commit | Line | Data |
---|---|---|
c2150d9a JD |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright 2014 John Darrington <jmd@gnu.org> | |
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 links) | |
b5b73a82 | 20 | #:use-module ((guix licenses) #:prefix license:) |
c2150d9a JD |
21 | #:use-module (guix packages) |
22 | #:use-module (gnu packages) | |
23 | #:use-module (gnu packages compression) | |
24 | #:use-module (gnu packages pkg-config) | |
25 | #:use-module (gnu packages image) | |
cc2b77df | 26 | #:use-module (gnu packages tls) |
c2150d9a JD |
27 | #:use-module (gnu packages xorg) |
28 | #:use-module (guix download) | |
29 | #:use-module (guix build-system gnu)) | |
30 | ||
31 | (define-public links | |
32 | (package | |
33 | (name "links") | |
34 | (version "2.8") | |
35 | (source (origin | |
36 | (method url-fetch) | |
37 | (uri (string-append "http://links.twibright.com/download/" | |
38 | name "-" version ".tar.bz2")) | |
39 | (sha256 | |
40 | (base32 "15h07498z52jfdahzgvkphg1f7qvxnpbyfn2xmsls0d2dwwdll3r")))) | |
41 | (build-system gnu-build-system) | |
42 | (arguments | |
43 | `(#:phases (alist-replace | |
44 | 'configure | |
45 | (lambda* (#:key outputs #:allow-other-keys) | |
46 | ;; The tarball uses a very old version of autconf. It doesn't understand | |
47 | ;; extra flags like `--enable-fast-install', so we need to | |
48 | ;; invoke it with just what it understand. | |
49 | (let ((out (assoc-ref outputs "out"))) | |
50 | ;; 'configure' doesn't understand '--host'. | |
51 | ,@(if (%current-target-system) | |
52 | `((setenv "CHOST" ,(%current-target-system))) | |
53 | '()) | |
54 | (setenv "CONFIG_SHELL" (which "bash")) | |
55 | (zero? | |
56 | (system* "./configure" | |
57 | (string-append "--prefix=" out) | |
58 | "--enable-graphics" | |
59 | )))) | |
60 | %standard-phases))) | |
61 | (native-inputs `(("pkg-config" ,pkg-config))) | |
62 | (inputs `(("zlib" ,zlib) | |
63 | ("openssl" ,openssl) | |
64 | ("libjpeg" ,libjpeg) | |
65 | ("libtiff" ,libtiff) | |
66 | ("libpng" ,libpng) | |
67 | ("libxt" ,libxt))) | |
68 | (synopsis "Text and graphics mode web browser") | |
69 | (description "Links is a graphics and text mode web browser, with many | |
70 | features including, tables, builtin image display, bookmarks, SSL and more.") | |
71 | (home-page "http://links.twibright.com") | |
72 | ;; The distribution contains a copy of GPLv2 | |
73 | ;; However, the copyright notices simply say: | |
74 | ;; "This file is a part of the Links program, released under GPL." | |
75 | ;; Therefore, under the provisions of Section 9, we can choose | |
76 | ;; any version ever published by the FSF | |
77 | ;; One file (https.c) contains an exception permitting | |
78 | ;; linking of the program with openssl | |
79 | (license license:gpl1+))) | |
80 | ||
81 | ||
82 |