Install this version:
emerge -a =dev-libs/libpqxx-8.0.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/libpqxx-8.0.1
Or alternatively:
emerge --autounmask-write -a =dev-libs/libpqxx-8.0.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 8.0.1 | 8 | ~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 | 0/$(ver_cut 1-2) |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit autotools python-any-r1
DESCRIPTION="Standard front-end for writing C++ programs that use PostgreSQL"
HOMEPAGE="https://pqxx.org/development/libpqxx/"
SRC_URI="https://github.com/jtv/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
# SONAME version is equal to major.minor
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="doc static-libs"
RDEPEND="dev-db/postgresql:="
DEPEND="${RDEPEND}"
BDEPEND="${PYTHON_DEPS}
doc? (
app-text/doxygen[dot]
app-text/xmlto
)
"
DOCS=( AUTHORS NEWS README.md )
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
--enable-shared \
$(use_enable doc documentation) \
$(use_enable static-libs static)
}
src_test() {
einfo "Preparing postgres test instance"
initdb --pgdata="${T}/pgsql" || die
pg_ctl --wait --pgdata="${T}/pgsql" start \
--options="-h '' -k '${T}'" || die
createdb --host="${T}" pqxx_test || die
local -x PGDATABASE="pqxx_test" PGHOST="${T}" PQXX_LINT="skip"
local ret=0
nonfatal emake check || ret=$?
einfo "Stopping postgres test instance"
pg_ctl --wait --pgdata="${T}/pgsql" stop || die
(( ret != 0 )) && die "Tests failed!"
}
src_install () {
use doc && HTML_DOCS=( doc/doxygen-html/. )
default
if ! use static-libs; then
find "${D}" -name '*.la' -delete || die
fi
}
Manage flags for this package:
euse -i <flag> -p dev-libs/libpqxx |
euse -E <flag> -p dev-libs/libpqxx |
euse -D <flag> -p dev-libs/libpqxx
dev-db/postgresql:=
dev-db/postgresql:=
doc? ( app-text/doxygen[dot] app-text/xmlto )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libpqxx-8.0.1.tar.gz | 830200 bytes | https://github.com/jtv/libpqxx/archive/8.0.1.tar.gz |