Commit | Line | Data |
---|---|---|
1b6826d3 RW |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> | |
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 music) | |
20 | #:use-module (guix utils) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix download) | |
23 | #:use-module ((guix licenses) #:prefix license:) | |
24 | #:use-module (guix build-system gnu) | |
25 | #:use-module (gnu packages) | |
26 | #:use-module (gnu packages bison) | |
27 | #:use-module (gnu packages docbook) | |
28 | #:use-module (gnu packages flex) | |
29 | #:use-module (gnu packages fonts) | |
30 | #:use-module (gnu packages fontutils) | |
31 | #:use-module (gnu packages gettext) | |
32 | #:use-module (gnu packages ghostscript) | |
33 | #:use-module (gnu packages gtk) | |
34 | #:use-module (gnu packages guile) | |
35 | #:use-module (gnu packages imagemagick) | |
36 | #:use-module (gnu packages netpbm) | |
37 | #:use-module (gnu packages perl) | |
38 | #:use-module (gnu packages pkg-config) | |
39 | #:use-module (gnu packages python) | |
40 | #:use-module (gnu packages rsync) | |
41 | #:use-module (gnu packages texinfo) | |
42 | #:use-module (gnu packages texlive) | |
43 | #:use-module (gnu packages zip)) | |
44 | ||
45 | (define-public lilypond | |
46 | (package | |
47 | (name "lilypond") | |
48 | (version "2.18.2") | |
49 | (source (origin | |
50 | (method url-fetch) | |
51 | (uri (string-append | |
52 | "http://download.linuxaudio.org/lilypond/sources/v" | |
53 | (version-major+minor version) "/" | |
54 | name "-" version ".tar.gz")) | |
55 | (sha256 | |
56 | (base32 | |
57 | "01xs9x2wjj7w9appaaqdhk15r1xvvdbz9qwahzhppfmhclvp779j")))) | |
58 | (build-system gnu-build-system) | |
59 | (arguments | |
60 | `(;; Tests fail with this error: | |
61 | ;; Undefined subroutine &main::get_index called at | |
62 | ;; ./lilypond-2.18.2/Documentation/lilypond-texi2html.init line 2127. | |
63 | #:tests? #f | |
64 | #:out-of-source? #t | |
65 | #:phases | |
66 | (alist-cons-before | |
67 | 'configure 'prepare-configuration | |
68 | (lambda _ | |
69 | (substitute* "configure" | |
70 | (("SHELL=/bin/sh") "SHELL=sh")) | |
71 | (setenv "out" "") | |
72 | #t) | |
73 | %standard-phases))) | |
74 | (inputs | |
75 | `(("guile" ,guile-1.8) | |
76 | ("font-dejavu" ,font-dejavu) | |
77 | ("fontconfig" ,fontconfig) | |
78 | ("freetype" ,freetype) | |
79 | ("ghostscript" ,ghostscript) | |
80 | ("pango" ,pango) | |
81 | ("python" ,python-2))) | |
82 | (native-inputs | |
83 | `(("bison" ,bison) | |
84 | ("perl" ,perl) | |
85 | ("flex" ,flex) | |
86 | ("fontforge" ,fontforge) | |
87 | ("dblatex" ,dblatex) | |
88 | ("gettext" ,gnu-gettext) | |
89 | ("imagemagick" ,imagemagick) | |
90 | ("netpbm" ,netpbm) ;for pngtopnm | |
91 | ("texlive" ,texlive) ;metafont and metapost | |
92 | ("texinfo" ,texinfo) | |
93 | ("texi2html" ,texi2html) | |
94 | ("rsync" ,rsync) | |
95 | ("pkg-config" ,pkg-config) | |
96 | ("zip" ,zip))) | |
97 | (home-page "http://www.lilypond.org/") | |
98 | (synopsis "Music typesetting") | |
99 | (description | |
100 | "GNU LilyPond is a music typesetter, which produces high-quality sheet | |
101 | music. Music is input in a text file containing control sequences which are | |
102 | interpreted by LilyPond to produce the final document. It is extendable with | |
103 | Guile.") | |
104 | (license license:gpl3+))) |