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

EAPI=8

DESCRIPTION="Utilities to read and convert MS Outlook personal folders (.pst) files."
HOMEPAGE="https://www.five-ten-sg.com/libpst/"
SRC_URI="https://www.five-ten-sg.com/libpst/packages/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64"
IUSE="debug static shared profiling"

DEPEND="
	gnome-extra/libgsf
	sys-libs/zlib
"
#	python? ( dev-libs/boost[python] )
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/gcc_c23.patch
	"${FILESDIR}"/python3-modern.patch
#	"${FILESDIR}"/python-sitedir.patch
)

src_configure() {
	econf \
			$(use_enable debug pst-debug) \
			$(use_enable static static-tools) \
			$(use_enable shared libpst-shared) \
			$(use_enable profiling) \
			--disable-python
}
#			$(use_enable python) \