Install this version:
emerge -a =sci-libs/libcifpp-10.0.4
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-libs/libcifpp-10.0.4
Or alternatively:
emerge --autounmask-write -a =sci-libs/libcifpp-10.0.4
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Code to work with mmCIF and PDB files"
HOMEPAGE="https://github.com/PDB-REDO/libcifpp"
# Update components file on every bump
# https://files.wwpdb.org/pub/pdb/data/monomers/components.cif.gz
SRC_URI="
https://github.com/PDB-REDO/libcifpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://dev.gentoo.org/~pacho/${PN}/${P}-components.cif.xz
"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples sqlite test"
# https://github.com/PDB-REDO/libcifpp/issues/75
REQUIRED_USE="
examples? ( sqlite )
test? ( sqlite )
"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-cpp/eigen-3.4.0:3
dev-libs/boost:=
dev-libs/libpcre2
virtual/zlib:=
sqlite? ( dev-db/sqlite:3 )
test? ( dev-cpp/catch:0 )
"
RDEPEND="${DEPEND}"
src_configure() {
cp "${WORKDIR}"/${P}-components.cif rsrc/components.cif || die
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DCIFPP_INSTALL_UPDATE_SCRIPT=OFF
-DBUILD_EXAMPLES="$(usex examples)"
-DBUILD_SQLITE_INTERFACE="$(usex sqlite)"
-DBUILD_TESTING="$(usex test)"
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p sci-libs/libcifpp |
euse -E <flag> -p sci-libs/libcifpp |
euse -D <flag> -p sci-libs/libcifpp
>=dev-cpp/eigen-3.4.0:3 dev-libs/boost:= dev-libs/libpcre2 virtual/zlib:= sqlite? ( dev-db/sqlite:3 ) test? ( dev-cpp/catch:0 )
>=dev-cpp/eigen-3.4.0:3 dev-libs/boost:= dev-libs/libpcre2 virtual/zlib:= sqlite? ( dev-db/sqlite:3 ) test? ( dev-cpp/catch:0 )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libcifpp-10.0.4-components.cif.xz | 73220300 bytes | https://dev.gentoo.org/~pacho/libcifpp/libcifpp-10.0.4-components.cif.xz |
| DIST | libcifpp-10.0.4.tar.gz | 3042692 bytes | https://github.com/PDB-REDO/libcifpp/archive/refs/tags/v10.0.4.tar.gz |