;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès ;;; Copyright © 2013, 2014 Andreas Enge ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer ;;; Copyright © 2015 Paul van der Walt ;;; Copyright © 2015 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages cdrom) #:use-module (guix download) #:use-module (guix packages) #:use-module ((guix licenses) #:select (lgpl2.1+ gpl2
aboutsummaryrefslogtreecommitdiff
blob: e46dd0465307eab5bdf0f238c6bfb924813d2dcc (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
iife_for: {
    options = {
        negate_iife: true,
        reduce_vars: true,
        toplevel: true,
        unused: true,
    }
    input: {
        function f() {
            function g() {
                L: for (;;) break L;
            }
            g();
        }
        f();
    }
    expect: {
        !function() {
            !function() {
                L: for (;;) break L;
            }();
        }();
    }
}

iife_for_in: {
    options = {
        negate_iife: true,
        reduce_vars: true,
        toplevel: true,
        unused: true,
    }
    input: {
        function f() {
            function g() {
                L: for (var a in x) break L;
            }
            g();
        }
        f();
    }
    expect: {
        !function() {
            !function() {
                L: for (var a in x) break L;
            }();
        }();
    }
}

iife_do: {
    options = {
        negate_iife: true,
        reduce_vars: true,
        toplevel: true,
        unused: true,
    }
    input: {
        function f() {
            function g() {
                L: do {
                    break L;
                } while (1);
            }
            g();
        }
        f();
    }
    expect: {
        !function() {
            !function() {
                L: do {
                    break L;
                } while (1);
            }();
        }();
    }
}

iife_while: {
    options = {
        negate_iife: true,
        reduce_vars: true,
        toplevel: true,
        unused: true,
    }
    input: {
        function f() {
            function g() {
                L: while (1) break L;
            }
            g();
        }
        f();
    }
    expect: {
        !function() {
            !function() {
                L: while (1) break L;
            }();
        }();
    }
}

label_do: {
    options = {
        evaluate: true,
        loops: true,
    }
    input: {
        L: do {
            continue L;
        } while (0);
    }
    expect: {
        L: do {
            continue L;
        } while (0);
    }
}

label_while: {
    options = {
        evaluate: true,
        dead_code: true,
        loops: true,
    }
    input: {
        function f() {
            L: while (0) continue L;
        }
    }
    expect_exact: "function f(){L:;}"
}
tain meta-data for CD/DVD tracks. It provides an API to manipulate the data.") (license gpl2+))) (define-public cd-discid (package (name "cd-discid") (version "1.4") (home-page "http://linukz.org/cd-discid.shtml") (source (origin (method url-fetch) (uri (string-append "http://linukz.org/download/cd-discid-" version ".tar.gz")) (sha256 (base32 "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz")) (modules '((guix build utils))) (snippet '(substitute* "Makefile" (("/usr/bin/install") "install"))))) (build-system gnu-build-system) (arguments '(#:tests? #f #:phases (alist-delete 'configure %standard-phases) #:make-flags (list "CC=gcc" (string-append "PREFIX=" (assoc-ref %outputs "out"))))) (synopsis "Get CDDB discid information from an audio CD") (description "cd-discid is a command-line tool to retrieve CDDB discid information from an audio CD.") (license gpl2+))) (define-public abcde (package (name "abcde") (version "2.7") (home-page "http://abcde.einval.com/") (source (origin (method url-fetch) (uri (string-append home-page "/download/abcde-" version ".tar.gz")) (sha256 (base32 "0ikpffzvacadh6vj9qlary8126j1zrd2knp9gvivmp7y1656jj01")) (modules '((guix build utils))) (snippet '(substitute* "Makefile" (("/usr/bin/install") "install") (("^etcdir = .*$") (string-append "etcdir = $(prefix)/etc\n")))))) (build-system gnu-build-system) (arguments '(#:phases (alist-replace 'configure (lambda* (#:key outputs inputs #:allow-other-keys) (substitute* "Makefile" (("^prefix = .*$") (string-append "prefix = " (assoc-ref outputs "out") "\n")))) (alist-cons-after 'install 'wrap (lambda* (#:key inputs outputs #:allow-other-keys) (let ((wget (assoc-ref inputs "wget")) (vorbis (assoc-ref inputs "vorbis-tools")) (parano (assoc-ref inputs "cdparanoia")) (which (assoc-ref inputs "which")) (discid (assoc-ref inputs "cd-discid")) (out (assoc-ref outputs "out"))) (define (wrap file) (wrap-program file `("PATH" ":" prefix (,(string-append out "/bin:" wget "/bin:" which "/bin:" vorbis "/bin:" discid "/bin:" parano "/bin"))))) (for-each wrap (find-files (string-append out "/bin") ".*")))) %standard-phases)) #:tests? #f)) (inputs `(("wget" ,wget) ("which" ,which) ("cdparanoia" ,cdparanoia) ("cd-discid" ,cd-discid) ("vorbis-tools" ,vorbis-tools) ;; A couple of Python and Perl scripts are included. ("python" ,python) ("perl" ,perl))) (synopsis "Command-line audio CD ripper") (description "abcde is a front-end command-line utility (actually, a shell script) that grabs tracks off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or MPP/MP+ (Musepack) format, and tags them, all in one go.") (license gpl2+)))