Commit | Line | Data |
---|---|---|
436d4d1f AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 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 doxygen) | |
20 | #:use-module ((guix licenses) #:select (gpl3+)) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu) | |
24 | #:use-module (gnu packages) | |
25 | #:use-module (gnu packages bison) | |
26 | #:use-module (gnu packages flex) | |
27 | #:use-module (gnu packages perl) | |
28 | #:use-module (gnu packages xml) | |
29 | #:use-module (gnu packages python)) | |
30 | ||
31 | (define-public doxygen | |
32 | (package | |
33 | (name "doxygen") | |
34 | (version "1.8.7") | |
35 | (source (origin | |
36 | (method url-fetch) | |
37 | (uri (string-append "http://ftp.stack.nl/pub/users/dimitri/" | |
38 | name "-" version ".src.tar.gz")) | |
39 | (sha256 | |
40 | (base32 | |
41 | "1ng3dv5fninhfi2fj75ghkr5jwsl653fxv2sxhaswj11x2vcdsn6")) | |
42 | (patches (list (search-patch "doxygen-tmake.patch") | |
43 | (search-patch "doxygen-test.patch"))))) | |
44 | (build-system gnu-build-system) | |
45 | ;; The presence of graphviz is checked, but it does not seem to influence | |
46 | ;; the output: Even after adding it as an input, no reference to it is | |
47 | ;; retained. It might be an option to add it as a propagated input, | |
48 | ;; only so that it becomes installed in the user profile. | |
49 | (native-inputs | |
50 | `(("bison" ,bison) | |
51 | ("flex" ,flex) | |
52 | ("libxml2" ,libxml2) ; provides xmllint for the tests | |
53 | ("perl" ,perl) ; for the tests | |
54 | ("python" ,python-2))) ; for creating the documentation | |
55 | (arguments | |
56 | `(#:test-target "test" | |
57 | #:phases | |
58 | (alist-replace | |
59 | 'configure | |
60 | (lambda* (#:key outputs #:allow-other-keys) | |
61 | (let ((out (assoc-ref outputs "out"))) | |
62 | ;; do not pass "--enable-fast-install", which makes the | |
63 | ;; configure process fail | |
64 | (zero? (system* | |
65 | "./configure" | |
66 | "--prefix" out)))) | |
67 | %standard-phases))) | |
68 | (home-page "http://www.stack.nl/~dimitri/doxygen/") | |
69 | (synopsis "tool for generating documentation from annotated sources") | |
70 | (description "Doxygen is the de facto standard tool for generating | |
71 | documentation from annotated C++ sources, but it also supports other popular | |
72 | programming languages such as C, Objective-C, C#, PHP, Java, Python, | |
73 | IDL (Corba, Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL, Tcl, | |
74 | and to some extent D.") | |
75 | (license gpl3+))) |