Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libpsl/
Date: Wed, 17 Apr 2019 12:20:35
Message-Id: 1555503625.1e474561c433802204379d91553f024b8f4be590.polynomial-c@gentoo
1 commit: 1e474561c433802204379d91553f024b8f4be590
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 17 12:20:02 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 17 12:20:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e474561
7
8 net-libs/libpsl: Bump to version 0.21.0
9
10 Package-Manager: Portage-2.3.63, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-libs/libpsl/Manifest | 1 +
14 net-libs/libpsl/libpsl-0.21.0.ebuild | 74 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 75 insertions(+)
16
17 diff --git a/net-libs/libpsl/Manifest b/net-libs/libpsl/Manifest
18 index e9fbf64bcb0..dc145ccabd7 100644
19 --- a/net-libs/libpsl/Manifest
20 +++ b/net-libs/libpsl/Manifest
21 @@ -1 +1,2 @@
22 DIST libpsl-0.20.2.tar.gz 9228099 BLAKE2B d53b8a036ba557704c4d3a498b35fd25e3dfc466d5161040d02b7d8d47af2138cce2bdbb8203fca0591408440f1b4cfab776fe0d2ecd68959f426d903cab08d4 SHA512 fa9f6f7f0447d9fe00f5dfca5262c56ff26217eea44d0f7fc1e5d982224c41874e753f0aa06dd9e5d7d03d4f04e3dacd4f36034cc8dd0fc6e2c28b49a23e62fe
23 +DIST libpsl-0.21.0.tar.gz 9217951 BLAKE2B fd93b71ae4969bb920af26e10e0e419dab62db37197046b0f4e4a0e009a150582df6d4c8fe33218fa8be869e6ad9688d3c325c3f635da5560e29269daa461668 SHA512 165c4f0b0640a813d512bd916e1532e32e43c8c81a5efd048f3a5b07b1b3c9129b4c4b5008b8b11a7c1b3914caea17564321389cd350bf1d687d53a97f2afa4d
24
25 diff --git a/net-libs/libpsl/libpsl-0.21.0.ebuild b/net-libs/libpsl/libpsl-0.21.0.ebuild
26 new file mode 100644
27 index 00000000000..fd6aa857e23
28 --- /dev/null
29 +++ b/net-libs/libpsl/libpsl-0.21.0.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=(python{2_7,3_{5,6,7}})
36 +
37 +inherit multilib-minimal python-any-r1
38 +
39 +DESCRIPTION="C library for the Public Suffix List"
40 +HOMEPAGE="https://github.com/rockdaboot/libpsl"
41 +SRC_URI="https://github.com/rockdaboot/${PN}/releases/download/${P}/${P}.tar.gz"
42 +LICENSE="MIT"
43 +SLOT="0"
44 +
45 +KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~s390 ~sparc ~x86"
46 +IUSE="icu +idn +man"
47 +
48 +RDEPEND="
49 + icu? ( !idn? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) )
50 + idn? (
51 + dev-libs/libunistring[${MULTILIB_USEDEP}]
52 + net-dns/libidn2:=[${MULTILIB_USEDEP}]
53 + )
54 +"
55 +
56 +DEPEND="
57 + ${RDEPEND}
58 +"
59 +BDEPEND="
60 + ${PYTHON_DEPS}
61 + dev-util/gtk-doc-am
62 + sys-devel/gettext
63 + virtual/pkgconfig
64 + man? ( dev-libs/libxslt )
65 +"
66 +
67 +pkg_pretend() {
68 + if use icu && use idn ; then
69 + ewarn "\"icu\" and \"idn\" USE flags are enabled."
70 + ewarn "Using \"idn\"."
71 + fi
72 +}
73 +
74 +multilib_src_configure() {
75 + local myeconfargs=(
76 + --disable-asan
77 + --disable-cfi
78 + --disable-ubsan
79 + $(use_enable man)
80 + )
81 +
82 + # Prefer idn even if icu is in USE as well
83 + if use idn ; then
84 + myeconfargs+=(
85 + --enable-builtin=libidn2
86 + --enable-runtime=libidn2
87 + )
88 + elif use icu ; then
89 + myeconfargs+=(
90 + --enable-builtin=libicu
91 + --enable-runtime=libicu
92 + )
93 + else
94 + myeconfargs+=( --disable-runtime )
95 + fi
96 +
97 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
98 +}
99 +
100 +multilib_src_install() {
101 + default
102 +
103 + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
104 +}