mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
net-libs/libpsl: Sync with Gentoo
It's from Gentoo commit 89fccf6df9a53157451dad1c03069e678fb5c116.
This commit is contained in:
parent
31088363f6
commit
26108423f4
@ -1,2 +1 @@
|
||||
DIST libpsl-0.21.2.tar.gz 7617025 BLAKE2B b50f805bb467dc3284bc91645a37a2208098ad809d3771c74ef13c3b8f6029a07ad80a56702c7e3d1a1125d272403c85dd97b64a28465b9ff2d095eaf94b9a4d SHA512 f1df72220bf4391d4701007100b0df66c833a2cbcb7481c9d13f0b9e0cad3b66d2d15d4b976e5bad60d2ad1540355112fa1acb07aa925c241d2d7cd20681c71d
|
||||
DIST libpsl-0.21.5.tar.gz 7624251 BLAKE2B a0076f622b85df99f866de6707850ac216b764bdb68c6d516f4603da42dac8eae3ee4c53d68dbb6af6f779c2c7f1b9caab74c8b558209b1f6823f95c13fc3ceb SHA512 c14d575cecc0f1693894dd79565b6b9220084ddfa43b908a1cefe16d147cdd5ec47796eb0c2135e2f829a951abaf39d8a371ab5c1352f57b36e610e25adf91f5
|
||||
|
||||
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
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 ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
IUSE="icu +idn test"
|
||||
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
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-tests-optional.patch
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user