this repo has no description
1opam-version: "2.0"
2maintainer: "7895506+MSoegtropIMC@users.noreply.github.com"
3homepage: "https://www.gnu.org/software/bison/"
4bug-reports: "https://lists.gnu.org/mailman/listinfo/bug-bison"
5license: "GPL-3.0-or-later"
6authors: [
7 "Robert Corbett"
8 "Richard Stallman"
9 "Wilfred Hansen"
10 "Akim Demaille"
11 "Paul Hilfinger"
12 "Joel E. Denny"
13 "Paolo Bonzini"
14 "Alex Rozenman"
15 "Paul Eggert"
16]
17build-env: [
18 [HOMEBREW_NO_AUTO_UPDATE = "1"]
19]
20build: [
21 ["bison" "--version"] {os-family != "homebrew"}
22 ["sh" "-c" "\"$(brew --prefix bison)/bin/bison\" --version"] {os-family = "homebrew"}
23]
24install: [
25 # Note: Mac homebrew installs bison to a path not in PATH, so symlink it in the opam switch bin folder.
26 # This affects only the current opam switch and is thus least invasive.
27 ["sh" "-c" "ln -s \"$(brew --prefix bison)/bin/bison\" \"%{bin}%/bison\""] {os-family = "homebrew"}
28 ["sh" "-c" "ln -s \"$(brew --prefix bison)/bin/yacc\" \"%{bin}%/yacc\""] {os-family = "homebrew"}
29]
30depexts: [
31 # The list of supported os-family names can be derived from the opam sources (thanks Enrico)
32 # https://github.com/ocaml/opam/blob/6aefe95e60084e63d01b1c7c028b6b77de1f839f/src/state/opamSysInteract.ml#L84-L123
33 # The package name for many Linux/BSD/macOS/cygwin/msys platforms can be searched here (thanks Théo)
34 # https://repology.org specifically https://repology.org/project/bison/versions
35 # Not listed above but supported by opam are oraclelinix, ol, rhel
36 # On macOS bison seems to be installed by default, but the homebrew and macports package is listed anyway
37 [ "bison" ] {os-family = "alpine"}
38 [ "bison" ] {os-family = "amzn"}
39 [ "bison" ] {os-family = "arch"}
40 [ "bison" ] {os-family = "archlinux"}
41 [ "bison" ] {os-family = "centos"}
42 [ "bison" ] {os-family = "debian"}
43 [ "bison" ] {os-family = "fedora"}
44 [ "sys-devel/bison" ] {os-family = "gentoo"}
45 [ "bison" ] {os-family = "homebrew"}
46 [ "bison" ] {os-family = "macports"}
47 [ "bison" ] {os-family = "mageia"}
48 [ "bison" ] {os-family = "suse" | os-family = "opensuse"}
49 [ "bison" ] {os-family = "ubuntu"}
50 [ "devel/bison" ] {os-family = "bsd"}
51]
52synopsis: "Virtual package relying on GNU bison"
53description: "This package can only install if GNU bison is installed on the system."
54# Not technically a conf package for homebrew (has an install step)
55# flags: conf