sci-libs/poselib - 2.0.4 (guru)

Search

Install

Install this version:

emerge -a =sci-libs/poselib-2.0.4

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

autounmask =sci-libs/poselib-2.0.4

Or alternatively:

emerge --autounmask-write -a =sci-libs/poselib-2.0.4

Package Information

Description:
Minimal solvers for calibrated camera pose estimation
Homepage:
https://github.com/PoseLib/PoseLib
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
2.0.4 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

MY_PN="PoseLib"

DESCRIPTION="Minimal solvers for calibrated camera pose estimation"
HOMEPAGE="https://github.com/PoseLib/PoseLib"
SRC_URI="https://github.com/PoseLib/PoseLib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/${MY_PN}-${PV}"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="benchmark"

DEPEND="dev-cpp/eigen"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DCMAKE_SKIP_RPATH=ON
		-DWITH_BENCHMARK=$(usex benchmark)
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install
	if use benchmark; then
		# As "benchmark" is a too generic name, let's make it more specific.
		mv "${ED}/usr/bin/benchmark" "${ED}/usr/bin/${PN}-benchmark" \
			|| die "Failed to rename benchmark binary"
	fi
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

dev-cpp/eigen

RDEPEND

dev-cpp/eigen

Manifest for 2.0.4

Type File Size Source URLs
DIST poselib-2.0.4.tar.gz 198206 bytes https://github.com/PoseLib/PoseLib/archive/refs/tags/v2.0.4.tar.gz