dev-libs/pegtl - 3.2.8-r2 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/pegtl-3.2.8-r2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/pegtl-3.2.8-r2

Or alternatively:

emerge --autounmask-write -a =dev-libs/pegtl-3.2.8-r2

Package Information

Description:
Header-only library for creating parsers according to Parsing Expression Grammar
Homepage:
https://github.com/taocpp/PEGTL
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
3.2.8-r2 8 ~amd64 ~arm ~arm64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Header-only library for creating parsers according to Parsing Expression Grammar"
HOMEPAGE="https://github.com/taocpp/PEGTL"
SRC_URI="https://github.com/taocpp/PEGTL/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P^^}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
IUSE="examples test"
RESTRICT="!test? ( test )"

PATCHES=(
	"${FILESDIR}"/${PN}-3.2.1-werror.patch
	"${FILESDIR}"/${P}-gcc-16-1.patch
)

src_configure() {
	local mycmakeargs=(
		-DPEGTL_BUILD_EXAMPLES=$(usex examples)
		-DPEGTL_BUILD_TESTS=$(usex test)
		-DPEGTL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/${PN}"
		-DPEGTL_INSTALL_DOC_DIR="share/doc/${PF}"
	)
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/pegtl | euse -E <flag> -p dev-libs/pegtl | euse -D <flag> -p dev-libs/pegtl

Global/Standard Flags

Inherited Eclasses