Install this version:
emerge -a =app-text/pdfio-1.6.5
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-text/pdfio-1.6.5
Or alternatively:
emerge --autounmask-write -a =app-text/pdfio-1.6.5
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/michaelrsweet.asc
inherit toolchain-funcs verify-sig
DESCRIPTION="Simple C library for reading and writing PDFs"
HOMEPAGE="https://www.msweet.org/pdfio/"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/michaelrsweet/pdfio"
inherit git-r3
else
SRC_URI="
https://github.com/michaelrsweet/pdfio/releases/download/v${PV}/${P}.tar.gz
verify-sig? ( https://github.com/michaelrsweet/pdfio/releases/download/v${PV}/${P}.tar.gz.sig )
"
KEYWORDS="~amd64 ~arm ~x86"
fi
# TODO: extension
LICENSE="Apache-2.0"
SLOT="0"
IUSE="png"
DEPEND="
>=virtual/zlib-1.1:=
png? ( >=media-libs/libpng-1.6:= )
"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
verify-sig? ( sec-keys/openpgp-keys-michaelrsweet )
"
src_prepare() {
default
# Build verbosely
sed -i -e '/.SILENT:/d' Makefile.in || die
# Fix docdir
sed -i -e 's:/doc/pdfio:/doc/${PF}:' Makefile.in || die
# Respect CFLAGS
sed -i -e 's:-g -Os::' configure.ac configure || die
# We already default to >=2 in Gentoo, don't downgrade
sed -i -e 's: -D_FORTIFY_SOURCE=2::' configure.ac configure || die
}
src_configure() {
tc-export AR
local myeconfargs=(
# Doesn't use libtool, so have to pass manually
--enable-shared
--disable-static
--with-dsoflags="${LDFLAGS}"
--with-ldflags="${LDFLAGS}"
$(use_enable png libpng)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
# We handle this elsewhere
rm "${ED}"/usr/share/doc/${PF}/{NOTICE,LICENSE} || die
}
Manage flags for this package:
euse -i <flag> -p app-text/pdfio |
euse -E <flag> -p app-text/pdfio |
euse -D <flag> -p app-text/pdfio
>=virtual/zlib-1.1:= png? ( >=media-libs/libpng-1.6:= )
>=virtual/zlib-1.1:= png? ( >=media-libs/libpng-1.6:= )
virtual/pkgconfig verify-sig? ( sec-keys/openpgp-keys-michaelrsweet )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pdfio-1.6.5.tar.gz | 6802398 bytes | https://github.com/michaelrsweet/pdfio/releases/download/v1.6.5/pdfio-1.6.5.tar.gz |
| DIST | pdfio-1.6.5.tar.gz.sig | 566 bytes | https://github.com/michaelrsweet/pdfio/releases/download/v1.6.5/pdfio-1.6.5.tar.gz.sig |