Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/tre/
Date: Sat, 28 Jan 2023 13:29:07
Message-Id: 1674912530.4579b7844afb42b33dc59d2a52ae331c81ec2760.pacho@gentoo
1 commit: 4579b7844afb42b33dc59d2a52ae331c81ec2760
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 28 12:27:23 2023 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 28 13:28:50 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4579b784
7
8 dev-libs/tre: Drop .la files
9
10 Closes: https://bugs.gentoo.org/841659
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 dev-libs/tre/tre-0.8.0_p20210321-r3.ebuild | 108 +++++++++++++++++++++++++++++
14 1 file changed, 108 insertions(+)
15
16 diff --git a/dev-libs/tre/tre-0.8.0_p20210321-r3.ebuild b/dev-libs/tre/tre-0.8.0_p20210321-r3.ebuild
17 new file mode 100644
18 index 000000000000..98e45554992d
19 --- /dev/null
20 +++ b/dev-libs/tre/tre-0.8.0_p20210321-r3.ebuild
21 @@ -0,0 +1,108 @@
22 +# Copyright 1999-2023 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +DISTUTILS_USE_PEP517=setuptools
28 +COMMIT="6092368aabdd0dbb0fbceb2766a37b98e0ff6911"
29 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
30 +DISTUTILS_OPTIONAL=1
31 +
32 +inherit autotools distutils-r1
33 +
34 +DESCRIPTION="Lightweight, robust, and efficient POSIX compliant regexp matching library"
35 +HOMEPAGE="
36 + https://laurikari.net/tre/
37 + https://github.com/laurikari/tre
38 +"
39 +SRC_URI="https://github.com/laurikari/tre/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
40 +S="${WORKDIR}/${PN}-${COMMIT}"
41 +
42 +LICENSE="BSD-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
45 +IUSE="+agrep +alloca +approx debug nls profile python"
46 +
47 +RDEPEND="
48 + agrep? (
49 + !app-text/agrep
50 + !dev-ruby/amatch
51 + !app-misc/glimpse
52 + )
53 + python? ( ${PYTHON_DEPS} )
54 +"
55 +DEPEND="
56 + ${RDEPEND}
57 + nls? ( sys-devel/gettext )
58 +"
59 +BDEPEND="
60 + python? ( ${DISTUTILS_DEPS} )
61 + sys-devel/gettext
62 + virtual/pkgconfig"
63 +
64 +REQUIRED_USE="
65 + agrep? ( approx )
66 + python? ( ${PYTHON_REQUIRED_USE} )
67 +"
68 +
69 +PATCHES=(
70 + "${FILESDIR}/0.8.0-pkgcfg.patch"
71 + "${FILESDIR}/0.8.0-CVE-2016-8559.patch"
72 + "${FILESDIR}/${PN}-chicken.patch"
73 + "${FILESDIR}/${PN}-issue37.patch"
74 + "${FILESDIR}/${PN}-issue50.patch"
75 + "${FILESDIR}/${PN}-issue55-part1.patch"
76 + "${FILESDIR}/${PN}-issue55-part2.patch"
77 + "${FILESDIR}/${PN}-python3.patch"
78 + "${FILESDIR}/${PN}-tests.patch"
79 +)
80 +
81 +src_prepare() {
82 + default
83 + eautoreconf
84 +}
85 +
86 +src_configure() {
87 + local myconf=(
88 + --disable-static
89 + --disable-system-abi
90 + --enable-multibyte
91 + --enable-wchar
92 + $(use_enable agrep)
93 + $(use_enable approx)
94 + $(use_enable debug)
95 + $(use_enable nls)
96 + $(use_enable profile)
97 + $(use_with alloca)
98 + )
99 + econf "${myconf[@]}"
100 +}
101 +
102 +src_test() {
103 + if locale -a | grep -iq en_US.iso88591; then
104 + emake -j1 check
105 + else
106 + ewarn "If you like to run the test,"
107 + ewarn "please make sure en_US.ISO-8859-1 is installed."
108 + die "en_US.ISO-8859-1 locale is missing"
109 + fi
110 +}
111 +
112 +src_compile() {
113 + default
114 +
115 + if use python; then
116 + cd python || die
117 + distutils-r1_src_compile
118 + fi
119 +}
120 +
121 +src_install() {
122 + local HTML_DOCS=( doc/*.{css,html} )
123 +
124 + default
125 +
126 + use python && distutils-r1_src_install
127 +
128 + find "${ED}" -type f -name '*.la' -delete || die
129 +}