aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/flex.scm
blob: 9e52f3bb38fdde33911a83ef95cf821977ea6880 (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; 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 <http://www.gnu.org/licenses/>.

(define-module (gnu packages flex)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages m4)
  #:use-module (gnu packages man)
  #:use-module (gnu packages bison)
  #:use-module (srfi srfi-1))

(define-public flex
  (package
    (name "flex")
    (version "2.6.4")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://github.com/westes/flex"
                    "/releases/download/v" version "/"
                    "flex-" version ".tar.gz"))
              (sha256
               (base32
                "15g9bv236nzi665p9ggqjlfn4dwck5835vf0bbw2cz7h5c1swyp8"))))
    (build-system gnu-build-system)
    (inputs
     (let ((bison-for-tests
            (package
              (inherit bison)
              (arguments
               ;; Disable tests, since they require flex.
               (substitute-keyword-arguments (package-arguments bison)
                 ((#:tests? _ #f) #f)))
              (inputs (alist-delete "flex" (package-inputs bison))))))
       `(("bison" ,bison-for-tests))))
    ;; m4 is not present in PATH when cross-building
    (native-inputs
     `(("help2man" ,help2man)
       ("m4" ,m4)))
    (propagated-inputs `(("m4" ,m4)))
    (home-page "https://github.com/westes/flex")
    (synopsis "Fast lexical analyser generator")
    (description
     "Flex is a tool for generating scanners.  A scanner, sometimes
called a tokenizer, is a program which recognizes lexical patterns in
text.  The flex program reads user-specified input files, or its standard
input if no file names are given, for a description of a scanner to
generate.  The description is in the form of pairs of regular expressions
and C code, called rules.  Flex generates a C source file named,
\"lex.yy.c\", which defines the function yylex().  The file \"lex.yy.c\"
can be compiled and linked to produce an executable.  When the executable
is run, it analyzes its input for occurrences of text matching the
regular expressions for each rule.  Whenever it finds a match, it
executes the corresponding C code.")
    (license (non-copyleft "file://COPYING"
                           "See COPYING in the distribution."))))
ommit/gnu/packages/mpd.scm?id=11da634a6e64afa2904542e2174aa2a185f9ac3a'>Merge branch 'master' into core-updatesLudovic Courtès 2019-09-17gnu: ncmpc: Update to 0.35....* gnu/packages/mpd.scm (ncmpc): Update to 0.35. Tobias Geerinckx-Rice 2019-08-22Merge branch 'master' into core-updatesMark H Weaver 2019-08-22gnu: mpd: Update to 0.21.14....* gnu/packages/mpd.scm (mpd): Update to 0.21.14. Tobias Geerinckx-Rice 2019-08-13Merge branch 'master' into core-updatesMarius Bakke 2019-08-12gnu: MPD: Update to 0.21.13....* gnu/packages/mpd.scm (mpd): Update to 0.21.13. Leo Famulari 2019-07-04Merge branch 'staging' into core-updatesMarius Bakke 2019-07-03gnu: MPD: Update to 0.21.11....* gnu/packages/mpd.scm (mpd): Update to 0.21.11. Leo Famulari 2019-07-02gnu: ncmpc: Remove GCC8 input....* gnu/packages/mpd.scm (ncmpc)[native-inputs]: Remove GCC-8. [arguments]: Remve <#:phases>. Marius Bakke 2019-06-20Merge branch 'staging' into core-updatesMarius Bakke 2019-06-19gnu: mpd: Update to 0.21.10....* gnu/packages/mpd.scm (mpd): Update to 0.21.10. Tobias Geerinckx-Rice 2019-06-18gnu: mpd-mpc: Update to 0.32....* gnu/packages/mpd.scm (mpd-mpc): Update to 0.32. Tobias Geerinckx-Rice 2019-06-13Merge branch 'master' into core-updatesLudovic Courtès 2019-06-04gnu: MPD: Update to 0.21.9....* gnu/packages/mpd.scm (mpd): Update to 0.21.9. Leo Famulari 2019-05-25Merge branch 'staging' into core-updatesMarius Bakke 2019-05-24gnu: Move Sphinx and friends to (gnu packages sphinx)....* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport, python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx, python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme, python2-sphinx-rtd-theme, python-guzzle-sphinx-theme, python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed, python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput, python-sphinx-repoze-interface, python2-sphinx-repoze-interface, python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme, python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme, python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ... (gnu): * gnu/packages/sphinx.scm: ... here. New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly. * gnu/packages/admin.scm, gnu/packages/bioinformatics.scm, gnu/packages/calendar.scm, gnu/packages/cluster.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm, gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm, gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm, gnu/packages/search.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports. Marius Bakke 2019-05-01Merge branch 'master' into core-updatesMarius Bakke 2019-04-26gnu: MPD: Update to 0.21.8....* gnu/packages/mpd.scm (mpd): Update to 0.21.8. Leo Famulari 2019-04-15gnu: ncmpc: Update to 0.34....* gnu/packages/mpd.scm (ncmpc): Update to 0.34. Tobias Geerinckx-Rice 2019-04-04gnu: MPD: Update to 0.21.7....* gnu/packages/mpd.scm (mpd): Update to 0.21.7. Leo Famulari 2019-03-23Merge branch 'staging' into core-updatesMarius Bakke 2019-03-18gnu: MPD: Update to 0.21.6....* gnu/packages/mpd.scm (mpd): Update to 0.21.6. Leo Famulari