dev-libs/libdict - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-libs/libdict-9999

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

autounmask =dev-libs/libdict-9999

Or alternatively:

emerge --autounmask-write -a =dev-libs/libdict-9999

Package Information

Description:
C library of key-value data structures
Homepage:
https://github.com/rtbrick/libdict
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CMAKE_MAKEFILE_GENERATOR="emake"

inherit cmake git-r3

DESCRIPTION="C library of key-value data structures"
HOMEPAGE="https://github.com/rtbrick/libdict"
EGIT_REPO_URI="https://github.com/rtbrick/${PN}.git"

LICENSE="BSD-2"
SLOT="0"
IUSE="static-libs test"
RESTRICT="!test? ( test )"

BDEPEND="test? ( dev-util/cunit )"

src_prepare() {
	# respect multilib
	sed -i  -e "/LIBRARY DESTINATION/s/lib/$(get_libdir)/" \
		-e "/ARCHIVE DESTINATION/s/lib/$(get_libdir)/" \
		CMakeLists.txt || die "sed failed for CMakeLists.txt"

	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DLIBDICT_STATIC="$(usex static-libs)"
		-DLIBDICT_TESTS="$(usex test)"
		-DLIBDICT_TOOLS="NO"
	)
	cmake_src_configure
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

test? ( dev-util/cunit )