Otok public index

apotocki/bison

apotocki/bison 3.8.2 (r1, windows)

Library
bison
Variant
windows, target windows
Channel
stable
Published
2026-11-14
Recipe source
https://github.com/otok-dev/recipes.git
5da01945f38d9afb64726f84ba66490b8096ee16 in recipes/bison/3.8/windows/
Recipe SHA-256
917592be2140f626c1010a2e4beaa4f66201688c29c18e8c5e1d84f791d3e538

Recipe files changed

Inputs

source.sha2568e1b71e037b524ba3f576babb0cf59182061df1f19cd86112f085a882560f60b
source.urlhttps://github.com/lexxmark/winflexbison/archive/refs/tags/v2.5.25.tar.gz

Platforms

windows

Toolchains

Recipe files

build.lua 990 bytes · raw
-- winflexbison's CMake project, its win_bison only. Its cmake_minimum_required(3.0) is below what CMake 4 accepts, hence
-- CMAKE_POLICY_VERSION_MINIMUM; it puts its programs in bin/<configuration> of the source, not in the build directory,
-- and installs them with the rest of its package flat into the prefix: the program is copied instead, with data/, the
-- skeletons, which win_bison finds beside itself (GetModuleFileNameA: an ANSI path).
function build(slice, options, deps)
    otok.cmake{ defines = { CMAKE_POLICY_VERSION_MINIMUM = "3.5" }, targets = { "win_bison" }, install = false }
    local built = otok.glob("bin/**/win_bison.exe", slice.source)
    if #built ~= 1 then error("win_bison.exe not found once in bin/ of the source (" .. #built .. " found)") end
    local program = slice.prefix .. "/bin/win_bison.exe"
    otok.copy(built[1], program)
    otok.copy(slice.source .. "/bison/data", slice.prefix .. "/bin/data")
    return { programs = { bison = program } }
end
recipe.toml 1141 bytes · raw
# The otok recipe of GNU Bison (https://github.com/apotocki/otok): the bison program for the builds of other recipes and
# for projects that deliver it ([tool-deps.bison] with `deliver`), on Windows: win_bison of winflexbison, Bison for
# Windows built with MSVC, with m4 built in, no runtime of MSYS2 or Cygwin; its skeletons in data/ beside the program.
[recipe]
api = 1
library = "bison"
name = "bison"
version = "3.8.2"
revision = 1
license = "GPL-3.0-or-later"
license-files = ["COPYING"]
homepage = "https://www.gnu.org/software/bison/"
documentation = "https://www.gnu.org/software/bison/manual/"
description = "GNU Bison, the parser generator: win_bison of winflexbison."
keywords = ["parser", "generator", "yacc", "tool"]

[tool]
programs = ["bison"]

[source]
url = "https://github.com/lexxmark/winflexbison/archive/refs/tags/v2.5.25.tar.gz"
sha256 = "8e1b71e037b524ba3f576babb0cf59182061df1f19cd86112f085a882560f60b"

[platforms]
supported = ["windows"]
build-on = ["windows/msvc"]

[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }