net-libs/libpsl - 0.23.3 (gentoo)

Search

Install

Install this version:

emerge -a =net-libs/libpsl-0.23.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-libs/libpsl-0.23.3

Or alternatively:

emerge --autounmask-write -a =net-libs/libpsl-0.23.3

Package Information

Description:
C library for the Public Suffix List
Homepage:
https://github.com/rockdaboot/libpsl
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.23.3 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..14} )
inherit meson-multilib python-any-r1

DESCRIPTION="C library for the Public Suffix List"
HOMEPAGE="https://github.com/rockdaboot/libpsl"
SRC_URI="https://github.com/rockdaboot/${PN}/releases/download/${PV}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="icu +idn test static-libs"
RESTRICT="!test? ( test )"

RDEPEND="
	icu? ( !idn? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) )
	idn? (
		dev-libs/libunistring:=[${MULTILIB_USEDEP}]
		net-dns/libidn2:=[${MULTILIB_USEDEP}]
	)
"
DEPEND="${RDEPEND}"
BDEPEND="
	${PYTHON_DEPS}
	sys-devel/gettext
	virtual/pkgconfig
"

pkg_pretend() {
	if use icu && use idn ; then
		ewarn "\"icu\" and \"idn\" USE flags are enabled. Using \"idn\"."
	fi
}

multilib_src_configure() {
	local emesonargs=(
		$(meson_use test tests)
	)

	# Prefer idn even if icu is in USE as well
	if use idn ; then
		emesonargs+=(
			-Druntime=libidn2
			-Dbuiltin=true
		)
	elif use icu ; then
		emesonargs+=(
			-Druntime=libicu
			-Dbuiltin=true
		)
	else
		emesonargs+=(
			-Druntime=no
		)
	fi

	if use static-libs ; then
		emesonargs+=(
			-Ddefault_library=both
		)
	fi

	meson_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-libs/libpsl | euse -E <flag> -p net-libs/libpsl | euse -D <flag> -p net-libs/libpsl

Global/Standard Flags

icu
idn
❓ Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	icu? ( !idn? ( dev-libs/icu:=[] ) )
	idn? (
		dev-libs/libunistring:=[]
		net-dns/libidn2:=[]
	)

RDEPEND

	icu? ( !idn? ( dev-libs/icu:=[] ) )
	idn? (
		dev-libs/libunistring:=[]
		net-dns/libidn2:=[]
	)

BDEPEND

	
	sys-devel/gettext
	virtual/pkgconfig

Manifest for 0.23.3

Type File Size Source URLs
DIST libpsl-0.23.3.tar.gz 7830615 bytes https://github.com/rockdaboot/libpsl/releases/download/0.23.3/libpsl-0.23.3.tar.gz