dev-libs/boost-di - 1.2.0 (mva)

Search

Install

Install this version:

emerge -a =dev-libs/boost-di-1.2.0

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

autounmask =dev-libs/boost-di-1.2.0

Or alternatively:

emerge --autounmask-write -a =dev-libs/boost-di-1.2.0

Package Information

Description:
C++14 Dependency Injection Library
Homepage:
https://boost-ext.github.io/di/
License:
Boost-1.0

Ebuild Details

Version EAPI Keywords Slot
1.2.0 8 ~amd64 ~arm ~arm64 ~mips ~x86 0
View Raw Ebuild
# 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
}

Inherited Eclasses

Dependencies

DEPEND

dev-libs/boost

RDEPEND

dev-libs/boost

Manifest for 1.2.0

Type File Size Source URLs
DIST boost-di-1.2.0.tar.gz 59707291 bytes https://github.com/boost-ext/di/archive/v1.2.0.tar.gz