Install this version:
emerge -a =dev-libs/boost-di-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/boost-di-9999
Or alternatively:
emerge --autounmask-write -a =dev-libs/boost-di-9999
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License
EAPI=8
inherit meson
DESCRIPTION="C++14 Dependency Injection Library"
HOMEPAGE="https://boost-ext.github.io/di/"
LICENSE="Boost-1.0"
SLOT="0"
MY_PN="${PN//boost-}"
if [[ "${PV}" == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/boost-ext/${MY_PN}"
else
SRC_URI="https://github.com/boost-ext/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
S="${WORKDIR}/${MY_PN}-${MY_SHA:-${PV}}"
fi
DEPEND="dev-libs/boost"
RDEPEND="${DEPEND}"
src_prepare() {
# TODO: maybe replace with non-monkey patch someday?
sed \
-e "/install_headers/iinstall_subdir('include',strip_directory: true,install_dir: 'include')" \
-e "/install_headers/iinstall_subdir('extension/include',strip_directory: true,install_dir: 'include')" \
-e '/install_headers/d' \
-i meson.build || die
default
}