# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Simple C library for reading and writing PDF files"
HOMEPAGE="https://github.com/michaelrsweet/pdfio"
SRC_URI="https://github.com/michaelrsweet/${PN}/releases/download/v${PV}/${P}.tar.gz"

LICENSE="Apache"
SLOT=0
IUSE=""
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos ~x64-solaris"

RDEPEND=""
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/zlib
"

PDEPEND=""

#src_prepare() {
#	default
#
#	eautoreconf
#}

src_configure() {
	local myeconfargs=(
		--enable-shared
		--enable-libpng
		--disable-static
	)
	econf "${myeconfargs[@]}"
}

#src_install() {
#	default
#}