1 |
commit: 8b1745a79b89e3e2b3a389b96a33292541a4edb9 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 19:50:18 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 19:54:08 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b1745a7 |
7 |
|
8 |
dev-libs/libgrapheme: add 2.0.2 |
9 |
|
10 |
Same as 2.0.1 but with a .pc file (so will stable soon). |
11 |
|
12 |
Now has a custom ./configure script but just sets what's |
13 |
already default (+virtual/awk dep), and seem primarily |
14 |
useful for OpenBSD/Darwin -- so leaving ebuild as-is. |
15 |
|
16 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
17 |
|
18 |
dev-libs/libgrapheme/Manifest | 1 + |
19 |
dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild | 38 +++++++++++++++++++++++++++ |
20 |
2 files changed, 39 insertions(+) |
21 |
|
22 |
diff --git a/dev-libs/libgrapheme/Manifest b/dev-libs/libgrapheme/Manifest |
23 |
index b2ebc2371f4d..f0b32b211424 100644 |
24 |
--- a/dev-libs/libgrapheme/Manifest |
25 |
+++ b/dev-libs/libgrapheme/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST libgrapheme-2.0.1.tar.gz 845666 BLAKE2B 872617d492e64ac0af2562e2842c0011e47f103551b72f0ed4979c1c486401fac0881614d7205da4db4b375c8cd89c00a02e1063428caea0110d5cd3a92602aa SHA512 bc52d4384332a2e2cb01a2697b21e8a3a9742e8ae95dd6e815b69de0a82fdaa2286c44038688a94812dde09d5479a625b0b5c9f839a69789e40d4b76a2def808 |
28 |
+DIST libgrapheme-2.0.2.tar.gz 846990 BLAKE2B ade6c3ca8481bf3c3e1b1512a3c02caa9f7f2bcb3e9a59f0f3c5af7a1603c2ff2bf4f689d25e47e156d663d95c4e9e209e03504fcde27a9daf1791bc4954663e SHA512 640fb0926f8f46ae98aaba708f8bd1539f7485f150d4b8021195268813ff361ebfc05a49f27ef6eaca9f2051e648912e70b9dac7fbbef84cedefdd4f2cdcb45e |
29 |
|
30 |
diff --git a/dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild b/dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..7a7149cccb1d |
33 |
--- /dev/null |
34 |
+++ b/dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild |
35 |
@@ -0,0 +1,38 @@ |
36 |
+# Copyright 2021-2022 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+inherit flag-o-matic toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Unicode string library" |
44 |
+HOMEPAGE="https://libs.suckless.org/libgrapheme/" |
45 |
+SRC_URI="https://dl.suckless.org/libgrapheme/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="ISC Unicode-DFS-2016" |
48 |
+SLOT="0/$(ver_cut 1-2)" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+# upstream suggests keeping the static option, others have requested it too |
51 |
+IUSE="static-libs" |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ append-cflags ${CPPFLAGS} |
57 |
+ tc-export CC AR RANLIB |
58 |
+ tc-export_build_env BUILD_CC |
59 |
+ sed -Ei '/^(BUILD_|)(CC|AR|RANLIB|CFLAGS|LDFLAGS|LDCONFIG).*=/d' config.mk || die |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ local emakeargs=( |
64 |
+ DESTDIR="${D}" |
65 |
+ PREFIX="${EPREFIX}"/usr |
66 |
+ LIBPREFIX="${EPREFIX}"/usr/$(get_libdir) |
67 |
+ ) |
68 |
+ |
69 |
+ emake "${emakeargs[@]}" install |
70 |
+ einstalldocs |
71 |
+ |
72 |
+ use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}.a || die |
73 |
+} |