1 |
commit: 9197f5d0d6299d66d87c54b8c9f8aed2c1aa18e0 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Sat Sep 28 02:02:14 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 29 02:56:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9197f5d0 |
7 |
|
8 |
dev-libs/marisa: Version bump (0.2.5). |
9 |
|
10 |
Drop support for Python 2.7. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/695004 |
13 |
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> |
14 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
15 |
|
16 |
dev-libs/marisa/Manifest | 1 + |
17 |
dev-libs/marisa/marisa-0.2.5.ebuild | 106 ++++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 107 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/marisa/Manifest b/dev-libs/marisa/Manifest |
21 |
index 2939d5c5499..816030c1f7a 100644 |
22 |
--- a/dev-libs/marisa/Manifest |
23 |
+++ b/dev-libs/marisa/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST marisa-0.2.4.tar.gz 502552 BLAKE2B aa8e6ce11c35db41f386d1c5d3ffdf56a940f298e10a7f6b1fa14cb80c27c9c4af1d4d61c58786f96e9598effe26379127c69b8fe72b1ca561a44ee2b9cddc61 SHA512 71aee3ae034d1ce725d986bef43472d61bd64f0af3ccda01bb019cce03f0872629b6a1b305e717056bef06e036372323b2a67e5dc69705d6a74e028b5e2553e4 |
26 |
+DIST marisa-0.2.5.tar.gz 167434 BLAKE2B 2b88e9f0060529c2180400290bb975a946666f58f77f7604cf3ea8ae0ad7e44e0d95e18c8911d9630561b9593eb2ec123b5c67d6d195dab480d86fe431ce2531 SHA512 62975a2dacd2a1072c990cd490f866cd5483c069c94a4706baf3ffc21ec43991583a8ef8721c3b841617b0654cbb894698c19759ff12b8887b6fd28939dfb547 |
27 |
|
28 |
diff --git a/dev-libs/marisa/marisa-0.2.5.ebuild b/dev-libs/marisa/marisa-0.2.5.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..e7ec8bf4f0d |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/marisa/marisa-0.2.5.ebuild |
33 |
@@ -0,0 +1,106 @@ |
34 |
+# Copyright 2014-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="7" |
38 |
+PYTHON_COMPAT=(python{3_6,3_7}) |
39 |
+DISTUTILS_OPTIONAL="1" |
40 |
+ |
41 |
+inherit autotools distutils-r1 |
42 |
+ |
43 |
+if [[ "${PV}" == "9999" ]]; then |
44 |
+ inherit git-r3 |
45 |
+ |
46 |
+ EGIT_REPO_URI="https://github.com/s-yata/marisa-trie" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Matching Algorithm with Recursively Implemented StorAge" |
50 |
+HOMEPAGE="https://github.com/s-yata/marisa-trie https://code.google.com/archive/p/marisa-trie/" |
51 |
+if [[ "${PV}" == "9999" ]]; then |
52 |
+ SRC_URI="" |
53 |
+else |
54 |
+ SRC_URI="https://github.com/s-yata/marisa-trie/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="|| ( BSD-2 LGPL-2.1+ )" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~sparc ~x86" |
60 |
+IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_sse4a cpu_flags_x86_popcnt python static-libs" |
61 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) |
62 |
+ cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
63 |
+ cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
64 |
+ cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
65 |
+ cpu_flags_x86_sse4_2? ( cpu_flags_x86_popcnt cpu_flags_x86_sse4_1 ) |
66 |
+ cpu_flags_x86_sse4a? ( cpu_flags_x86_popcnt cpu_flags_x86_sse3 ) |
67 |
+ cpu_flags_x86_popcnt? ( cpu_flags_x86_sse3 )" |
68 |
+ |
69 |
+BDEPEND="python? ( |
70 |
+ ${PYTHON_DEPS} |
71 |
+ dev-lang/swig |
72 |
+ )" |
73 |
+DEPEND="python? ( ${PYTHON_DEPS} )" |
74 |
+RDEPEND="${DEPEND}" |
75 |
+ |
76 |
+if [[ "${PV}" != "9999" ]]; then |
77 |
+ S="${WORKDIR}/marisa-trie-${PV}" |
78 |
+fi |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ eautoreconf |
83 |
+ |
84 |
+ sed -e "s:^\([[:space:]]*\)libraries=:\1include_dirs=[\"../../include\"],\n\1library_dirs=[\"../../lib/marisa/.libs\"],\n&:" -i bindings/python/setup.py || die |
85 |
+ |
86 |
+ if use python; then |
87 |
+ pushd bindings/python > /dev/null || die |
88 |
+ distutils-r1_src_prepare |
89 |
+ popd > /dev/null || die |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ local options=( |
95 |
+ $(use_enable cpu_flags_x86_sse2 sse2) |
96 |
+ $(use_enable cpu_flags_x86_sse3 sse3) |
97 |
+ $(use_enable cpu_flags_x86_ssse3 ssse3) |
98 |
+ $(use_enable cpu_flags_x86_sse4_1 sse4.1) |
99 |
+ $(use_enable cpu_flags_x86_sse4_2 sse4.2) |
100 |
+ $(use_enable cpu_flags_x86_sse4a sse4a) |
101 |
+ $(use_enable cpu_flags_x86_popcnt popcnt) |
102 |
+ $(use_enable static-libs static) |
103 |
+ ) |
104 |
+ |
105 |
+ econf "${options[@]}" |
106 |
+ |
107 |
+ if use python; then |
108 |
+ pushd bindings/python > /dev/null || die |
109 |
+ distutils-r1_src_configure |
110 |
+ popd > /dev/null || die |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+src_compile() { |
115 |
+ default |
116 |
+ |
117 |
+ if use python; then |
118 |
+ emake -C bindings swig-python |
119 |
+ pushd bindings/python > /dev/null || die |
120 |
+ distutils-r1_src_compile |
121 |
+ popd > /dev/null || die |
122 |
+ fi |
123 |
+} |
124 |
+ |
125 |
+src_install() { |
126 |
+ default |
127 |
+ find "${D}" -name "*.la" -type f -delete || die |
128 |
+ |
129 |
+ ( |
130 |
+ docinto html |
131 |
+ dodoc docs/* |
132 |
+ ) |
133 |
+ |
134 |
+ if use python; then |
135 |
+ pushd bindings/python > /dev/null || die |
136 |
+ distutils-r1_src_install |
137 |
+ popd > /dev/null || die |
138 |
+ fi |
139 |
+} |