Install this version:
emerge -a =dev-db/ip4r-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-db/ip4r-9999
Or alternatively:
emerge --autounmask-write -a =dev-db/ip4r-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
DESCRIPTION="IP address and IP range index types for PostgreSQL"
HOMEPAGE="https://github.com/RhodiumToad/ip4r"
EGIT_REPO_URI="https://github.com/RhodiumToad/${PN}.git"
LICENSE="POSTGRESQL"
SLOT="0"
RESTRICT="test" # fails
DEPEND="dev-db/postgresql:*"
src_prepare() {
default
# fix QA
sed -i '/DOCS/d' Makefile || die "sed failed"
}
src_compile() {
emake USE_PGXS=1
}
src_test() {
local db="${T}/pgsql"
initdb -U portage -A trust -D "${db}" || die "initdb failed"
pg_ctl -w -D "${db}" start -o "-h '127.0.0.1' -p 5432 -k '${T}'" \
|| die "pg_ctl for start failed"
PGHOST="${T}" emake installcheck
pg_ctl -w -D "${db}" stop || die "pg_ctl for stop failed"
}
src_install() {
emake USE_PGXS=1 DESTDIR="${D}" install
}
dev-db/postgresql:*