Otok public index

apotocki/perl

Perl 5, built from source.

Library
perl
Newest
5.44.0 (r1, apple)
Targets
apple, linux, windows
License
Artistic-1.0-Perl OR GPL-1.0-or-later
Homepage
https://www.perl.org
Keywords
perl, interpreter, tool

Use it

In otok.toml:

[deps.perl]
recipe = "apotocki/perl"
version = "~> 5.44.0"

Versions

VersionTargetChannelPublishedStatus
5.44.0 (r1, apple) apple stable 2026-11-07
5.44.0 (r1, linux) linux stable 2026-11-07
5.44.0 (r1, windows) windows stable 2026-11-07

5.44.0 (r1, apple)

Platforms

macosx

Toolchains

Recipe files

build.lua 786 bytes · raw
-- perl's own Configure, then make in the source tree, where Configure works.
function build(slice, options, deps)
    local p = slice.prefix
    local make = slice.toolchains.make
    -- no questions (-des); @INC relative to the program, which runs from the cache, not from where it was built; no
    -- manuals; none of the machine's database libraries
    otok.run({ "sh", "Configure", "-des", "-Dprefix=" .. p, "-Duserelocatableinc", "-Dman1dir=none", "-Dman3dir=none",
        "-Dcc=" .. slice.toolchain.cc, "-Dmake=" .. make, "-Ui_db", "-Ui_gdbm", "-Ui_ndbm", "-Ui_dbm" }, { cwd = slice.source })
    otok.run({ make, "-j" .. slice.jobs }, { cwd = slice.source })
    otok.run({ make, "install" }, { cwd = slice.source })
    return { programs = { perl = p .. "/bin/perl" } }
end
recipe.toml 874 bytes · raw
# The otok recipe of Perl (https://github.com/apotocki/otok): the perl interpreter for the builds of other recipes, which
# name it as their toolchain (`perl = { default-recipe = "apotocki/perl" }`), on macOS: built from the release archive
# with its Configure and make.
[recipe]
api = 1
library = "perl"
name = "perl"
version = "5.44.0"
revision = 1
license = "Artistic-1.0-Perl OR GPL-1.0-or-later"
license-files = ["Artistic", "Copying"]
homepage = "https://www.perl.org"
description = "Perl 5, built from source."
keywords = ["perl", "interpreter", "tool"]

[tool]
programs = ["perl"]

[source]
url = "https://www.cpan.org/src/5.0/perl-5.44.0.tar.xz"
sha256 = "505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91"

[platforms]
supported = ["macosx"]
build-on = ["macos/xcode"]

[toolchains]
make = { version = ">= 3.81", default-recipe = "apotocki/make" }