1 |
commit: 3efbb296a43137d0a3ffaadcc80801128bfca182 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 6 18:24:06 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 6 18:25:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3efbb296 |
7 |
|
8 |
net-libs/libpsl: Use append-lfs-flags |
9 |
|
10 |
Closes: https://bugs.gentoo.org/880077 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
net-libs/libpsl/libpsl-0.21.1-r1.ebuild | 73 +++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/libpsl/libpsl-0.21.1-r1.ebuild b/net-libs/libpsl/libpsl-0.21.1-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..84d2fc762666 |
19 |
--- /dev/null |
20 |
+++ b/net-libs/libpsl/libpsl-0.21.1-r1.ebuild |
21 |
@@ -0,0 +1,73 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+inherit flag-o-matic multilib-minimal python-any-r1 |
29 |
+ |
30 |
+DESCRIPTION="C library for the Public Suffix List" |
31 |
+HOMEPAGE="https://github.com/rockdaboot/libpsl" |
32 |
+SRC_URI="https://github.com/rockdaboot/${PN}/releases/download/${PV}/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="MIT" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
37 |
+IUSE="icu +idn +man" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ icu? ( !idn? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) ) |
41 |
+ idn? ( |
42 |
+ dev-libs/libunistring:=[${MULTILIB_USEDEP}] |
43 |
+ net-dns/libidn2:=[${MULTILIB_USEDEP}] |
44 |
+ ) |
45 |
+" |
46 |
+DEPEND="${RDEPEND}" |
47 |
+BDEPEND="${PYTHON_DEPS} |
48 |
+ dev-util/gtk-doc-am |
49 |
+ sys-devel/gettext |
50 |
+ virtual/pkgconfig |
51 |
+ man? ( dev-libs/libxslt ) |
52 |
+" |
53 |
+ |
54 |
+pkg_pretend() { |
55 |
+ if use icu && use idn ; then |
56 |
+ ewarn "\"icu\" and \"idn\" USE flags are enabled." |
57 |
+ ewarn "Using \"idn\"." |
58 |
+ fi |
59 |
+} |
60 |
+ |
61 |
+multilib_src_configure() { |
62 |
+ append-lfs-flags # bug 880077 |
63 |
+ |
64 |
+ local myeconfargs=( |
65 |
+ --disable-asan |
66 |
+ --disable-cfi |
67 |
+ --disable-ubsan |
68 |
+ --disable-static |
69 |
+ $(use_enable man) |
70 |
+ ) |
71 |
+ |
72 |
+ # Prefer idn even if icu is in USE as well |
73 |
+ if use idn ; then |
74 |
+ myeconfargs+=( |
75 |
+ --enable-builtin=libidn2 |
76 |
+ --enable-runtime=libidn2 |
77 |
+ ) |
78 |
+ elif use icu ; then |
79 |
+ myeconfargs+=( |
80 |
+ --enable-builtin=libicu |
81 |
+ --enable-runtime=libicu |
82 |
+ ) |
83 |
+ else |
84 |
+ myeconfargs+=( --disable-runtime ) |
85 |
+ fi |
86 |
+ |
87 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
88 |
+} |
89 |
+ |
90 |
+multilib_src_install() { |
91 |
+ default |
92 |
+ |
93 |
+ find "${ED}" -type f -name "*.la" -delete || die |
94 |
+} |