mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: bison: Use gexps.
* gnu/packages/bison.scm: Cleanup. Prefix licenses with license:. Reorder #:use-module directives asciibetically. (bison)[arguments]: Use gexps. [native-inputs, inputs, propagated-inputs]: Indent. Change-Id: Ie179ca5b9ab0b47e9986bd31d82243bc56c40929 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #4887
This commit is contained in:
parent
a9c3eb0caf
commit
79d1d3d582
1 changed files with 31 additions and 25 deletions
|
|
@ -21,14 +21,15 @@
|
||||||
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
(define-module (gnu packages bison)
|
(define-module (gnu packages bison)
|
||||||
#:use-module (guix licenses)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (gnu packages flex)
|
||||||
#:use-module (guix download)
|
|
||||||
#:use-module (guix utils)
|
|
||||||
#:use-module (guix build-system gnu)
|
|
||||||
#:use-module (gnu packages m4)
|
#:use-module (gnu packages m4)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages flex)
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix utils)
|
||||||
#:use-module (srfi srfi-1))
|
#:use-module (srfi srfi-1))
|
||||||
|
|
||||||
(define-public bison
|
(define-public bison
|
||||||
|
|
@ -45,24 +46,29 @@
|
||||||
"1wjvbbzrr16k1jlby3l436an3kvv492h08arbnf0gwgprha05flv"))))
|
"1wjvbbzrr16k1jlby3l436an3kvv492h08arbnf0gwgprha05flv"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; Building in parallel on many-core systems may cause an error such as
|
(list
|
||||||
;; "mv: cannot stat 'examples/c/reccalc/scan.stamp.tmp': No such file or
|
;; Building in parallel on many-core systems may cause an error such as
|
||||||
;; directory". See <https://bugs.gnu.org/36238>.
|
;; "mv: cannot stat 'examples/c/reccalc/scan.stamp.tmp': No such file or
|
||||||
#:parallel-build? #f
|
;; directory". See <https://bugs.gnu.org/36238>.
|
||||||
;; Similarly, when building tests in parallel, Make may produce this error:
|
#:parallel-build? #f
|
||||||
;; "./examples/c/reccalc/scan.l:13:10: fatal error: parse.h: No such file
|
;; Similarly, when building tests in parallel, Make may produce this error:
|
||||||
;; or directory". Full log in <https://bugs.gnu.org/36238>.
|
;; "./examples/c/reccalc/scan.l:13:10: fatal error: parse.h: No such file
|
||||||
#:parallel-tests? #f
|
;; or directory". Full log in <https://bugs.gnu.org/36238>.
|
||||||
;; On the Hurd with glibc 2.41 bison uses weak symbols from pthread
|
#:parallel-tests? #f
|
||||||
;; but does not link to it.
|
#:configure-flags
|
||||||
,@(if (target-hurd?)
|
;; On the Hurd with glibc 2.41 bison uses weak symbols from pthread
|
||||||
(list #:configure-flags ''("LIBS=-lpthread"))
|
;; but does not link to it.
|
||||||
'())))
|
(if (target-hurd?)
|
||||||
(native-inputs (list perl
|
#~(list "LIBS=-lpthread")
|
||||||
;; m4 is not present in PATH when cross-building.
|
#~(list))))
|
||||||
m4))
|
(native-inputs
|
||||||
(inputs (list flex))
|
(list perl
|
||||||
(propagated-inputs (list m4))
|
;; m4 is not present in PATH when cross-building.
|
||||||
|
m4))
|
||||||
|
(inputs
|
||||||
|
(list flex))
|
||||||
|
(propagated-inputs
|
||||||
|
(list m4))
|
||||||
(home-page "https://www.gnu.org/software/bison/")
|
(home-page "https://www.gnu.org/software/bison/")
|
||||||
(synopsis "Yacc-compatible parser generator")
|
(synopsis "Yacc-compatible parser generator")
|
||||||
(description
|
(description
|
||||||
|
|
@ -72,7 +78,7 @@ grammar. It is versatile enough to have many applications, from parsers for
|
||||||
simple tools through complex programming languages.
|
simple tools through complex programming languages.
|
||||||
|
|
||||||
Bison also provides an implementation of @command{yacc}, as specified by POSIX.")
|
Bison also provides an implementation of @command{yacc}, as specified by POSIX.")
|
||||||
(license gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public bison-3.0
|
(define-public bison-3.0
|
||||||
(package
|
(package
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue