1 |
commit: 1f84084525a30acbef4a0ec78c6aef40433cd3e8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 03:31:03 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 03:43:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f840845 |
7 |
|
8 |
dev-libs/libvterm: add 0.2 (unkeyworded) |
9 |
|
10 |
Unkeyworded given there's a patch Fedora are using to revert |
11 |
a commit and I'd rather wait and see if upstream do a new |
12 |
release or not, but it's here for people to test with anyway. |
13 |
|
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
dev-libs/libvterm/Manifest | 1 + |
17 |
dev-libs/libvterm/libvterm-0.2.ebuild | 42 +++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 43 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/libvterm/Manifest b/dev-libs/libvterm/Manifest |
21 |
index d73b92f1ed03..ae29c865b06d 100644 |
22 |
--- a/dev-libs/libvterm/Manifest |
23 |
+++ b/dev-libs/libvterm/Manifest |
24 |
@@ -3,3 +3,4 @@ DIST libvterm-0.1.1.tar.gz 69044 BLAKE2B 2e521a26238772370718e3c643e2225c9be7877 |
25 |
DIST libvterm-0.1.2.tar.gz 69050 BLAKE2B bd547e14ef2b2b7c733a88ccd975db5ccc936ad5df49221cc6877be223e48da41fd8e5cf40dbc8750a95d6efaa6e5b97d337d4a013ec534a4bbfd68279325bc0 SHA512 5d6a17b98d4dda9d0529c3686cadc1f788e48667fa133100bfb0cdc92a6b08d0ea2f1a6058f58941e1408788c4f1d5a86941ec2457e31c6582f5ddd13bcdf7c4 |
26 |
DIST libvterm-0.1.3.tar.gz 69115 BLAKE2B befdb173a75652a42f3ba72682cc5c411ee170f2cfe46a22f133ca2b414f40f3af97331a4aaa34ca2a36f39b2ef92b63f2730bd872db8181512fd18f95921034 SHA512 de68b36c589638cc727fdd8153af66cc9288d32567bca1213e3769418a7b98afff68565dfd34f73f74625c39e66b60da7e658e9afa9bef4efa2072ff91d872e5 |
27 |
DIST libvterm-0.1.4.tar.gz 69122 BLAKE2B 4f0acc9ec6755c4a840e5df6c32c44e12c5316b5c5918d0e8eada19d819736c3e5b9090b468e32b3141a7fbb5ba226e365be27d6d1d9ca22f9f5e365fc3971c2 SHA512 90b5d47417e3f469df5c6574a27d12bd6bd1571d17cab7c4ac0ee61b1dbcb6361987f6fdfd11e314ea32f8958ec165c319a34d0f77288947c7cbc11de697d524 |
28 |
+DIST libvterm-0.2.tar.gz 79712 BLAKE2B db17d15550a595652368edd7ee0ccab2a69effa79677a23d6ee94731fc05d685df0de843d2e953cd59d2077922e72834d7ab09eaf5260aed869d9511cfd224a7 SHA512 bc99ae4fbdc165ced92c10fb0168ae6da2ed702208064616fefcd42aba71c57b7d42a08bc5b0e7e1ebda8cc4b5682d16059bdd2edfb12fbd8ac97527e854b14c |
29 |
|
30 |
diff --git a/dev-libs/libvterm/libvterm-0.2.ebuild b/dev-libs/libvterm/libvterm-0.2.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..84e1e689e51e |
33 |
--- /dev/null |
34 |
+++ b/dev-libs/libvterm/libvterm-0.2.ebuild |
35 |
@@ -0,0 +1,42 @@ |
36 |
+# Copyright 1999-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="An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator" |
44 |
+HOMEPAGE="https://www.leonerd.org.uk/code/libvterm/" |
45 |
+SRC_URI="https://www.leonerd.org.uk/code/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+SLOT="0" |
49 |
+# Fedora have a revert patch for now: |
50 |
+# https://src.fedoraproject.org/rpms/libvterm/blob/rawhide/f/libvterm-0.2-fix-resize-buffer.patch |
51 |
+# so let's see if 0.2.1 is any better or if this is actually needed for us? |
52 |
+#KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos" |
53 |
+ |
54 |
+BDEPEND=" |
55 |
+ dev-lang/perl |
56 |
+ sys-devel/libtool |
57 |
+ virtual/pkgconfig |
58 |
+" |
59 |
+RDEPEND="!dev-libs/libvterm-neovim" |
60 |
+ |
61 |
+src_compile() { |
62 |
+ tc-export CC |
63 |
+ |
64 |
+ append-cflags -fPIC |
65 |
+ emake VERBOSE=1 PREFIX="${EPREFIX}/usr" \ |
66 |
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ emake \ |
71 |
+ VERBOSE=1 \ |
72 |
+ PREFIX="${EPREFIX}/usr" \ |
73 |
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
74 |
+ DESTDIR="${D}" install |
75 |
+ |
76 |
+ find "${ED}" -name '*.la' -delete || die "Failed to prune libtool files" |
77 |
+} |