Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/yascreen/, dev-libs/yascreen/files/
Date: Thu, 23 Sep 2021 06:16:45
Message-Id: 1632377780.e3808e83de7e94a43fd2cd9b06563fcc25f1976e.arthurzam@gentoo
1 commit: e3808e83de7e94a43fd2cd9b06563fcc25f1976e
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 23 06:16:20 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 23 06:16:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3808e83
7
8 dev-libs/yascreen: initial import
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-libs/yascreen/Manifest | 1 +
13 .../yascreen/files/yascreen-1.86-fix-install.patch | 22 +++++++++++++++
14 dev-libs/yascreen/metadata.xml | 11 ++++++++
15 dev-libs/yascreen/yascreen-1.86.ebuild | 31 ++++++++++++++++++++++
16 4 files changed, 65 insertions(+)
17
18 diff --git a/dev-libs/yascreen/Manifest b/dev-libs/yascreen/Manifest
19 new file mode 100644
20 index 00000000000..4b013b565da
21 --- /dev/null
22 +++ b/dev-libs/yascreen/Manifest
23 @@ -0,0 +1 @@
24 +DIST yascreen-1.86.tar.xz 26104 BLAKE2B 4716c1eb2a41468fbb0ecbcda7c34a031d97f5292632501ce4c9740de071f8c39e1c7d9f0f8f6c5fbdccaef5908e3751b25ebc7e0c6dab3dff63b2a99f12eefa SHA512 dce785c477395b0c78c5054682dd8ccfbe3243ede966300c3e95e25fac6320f820aa1f0a3b2ce37544b3b45adb94eccccaf32187b145cd2bba43367e166b9e7c
25
26 diff --git a/dev-libs/yascreen/files/yascreen-1.86-fix-install.patch b/dev-libs/yascreen/files/yascreen-1.86-fix-install.patch
27 new file mode 100644
28 index 00000000000..0e584bb0ece
29 --- /dev/null
30 +++ b/dev-libs/yascreen/files/yascreen-1.86-fix-install.patch
31 @@ -0,0 +1,22 @@
32 +From: Boian Bonev <bbonev@××××××.com>
33 +Date: Tue, 21 Sep 2021 03:36:23 +0300
34 +Subject: [PATCH] fix problems with install
35 +
36 +--- a/Makefile.main
37 ++++ b/Makefile.main
38 +@@ -108,12 +108,12 @@ yascreen.pc: yascreen.pc.in
39 +
40 + install: libyascreen.a libyascreen.so yascreen.pc yascreen.3
41 + $(INSTALL) -Ds -m 644 -t $(DESTDIR)$(PREFIX)$(LIBDIR) libyascreen.a
42 +- $(INSTALL) -Ds -m 644 -t $(DESTDIR)$(PREFIX)$(LIBDIR)/pkgconfig/ yascreen.pc
43 ++ $(INSTALL) -D -m 644 -t $(DESTDIR)$(PREFIX)$(LIBDIR)/pkgconfig/ yascreen.pc
44 + ln -fs libyascreen.so.$(SOVERF) $(DESTDIR)$(PREFIX)$(LIBDIR)libyascreen.so.$(SOVERM)
45 + ln -fs libyascreen.so.$(SOVERM) $(DESTDIR)$(PREFIX)$(LIBDIR)libyascreen.so
46 + $(INSTALL) -Ds -m 644 -s -t $(DESTDIR)$(PREFIX)$(LIBDIR) libyascreen.so.$(SOVERF)
47 +- $(INSTALL) -Ds -m 644 -t $(DESTDIR)$(PREFIX)$(INCDIR) yascreen.h
48 +- $(INSTALL) -TDs -m 0644 yascreen.3 $(DESTDIR)$(PREFIX)/share/man/man3/yascreen.3
49 ++ $(INSTALL) -D -m 644 -t $(DESTDIR)$(PREFIX)$(INCDIR) yascreen.h
50 ++ $(INSTALL) -TD -m 0644 yascreen.3 $(DESTDIR)$(PREFIX)/share/man/man3/yascreen.3
51 +
52 + clean:
53 + rm -f yastest yastest.shared yastest.o yascreen.o libyascreen.a libyascreen.so libyascreen.so.$(SOVERM) libyascreen.so.$(SOVERF) yascreen.pc
54
55 diff --git a/dev-libs/yascreen/metadata.xml b/dev-libs/yascreen/metadata.xml
56 new file mode 100644
57 index 00000000000..a08688b11e3
58 --- /dev/null
59 +++ b/dev-libs/yascreen/metadata.xml
60 @@ -0,0 +1,11 @@
61 +<?xml version="1.0" encoding="UTF-8"?>
62 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
63 +<pkgmetadata>
64 + <maintainer type="person">
65 + <email>arthurzam@g.o</email>
66 + <name>Arthur Zamarin</name>
67 + </maintainer>
68 + <upstream>
69 + <remote-id type="github">bbonev/yascreen</remote-id>
70 + </upstream>
71 +</pkgmetadata>
72
73 diff --git a/dev-libs/yascreen/yascreen-1.86.ebuild b/dev-libs/yascreen/yascreen-1.86.ebuild
74 new file mode 100644
75 index 00000000000..db5b07b4ca2
76 --- /dev/null
77 +++ b/dev-libs/yascreen/yascreen-1.86.ebuild
78 @@ -0,0 +1,31 @@
79 +# Copyright 2021 Gentoo Authors
80 +# Distributed under the terms of the GNU General Public License v2
81 +
82 +EAPI=8
83 +
84 +inherit toolchain-funcs
85 +
86 +DESCRIPTION="Yet Another Screen Library - curses replacement"
87 +HOMEPAGE="https://github.com/bbonev/yascreen"
88 +SRC_URI="https://github.com/bbonev/yascreen/releases/download/v${PV}/${P}.tar.xz"
89 +
90 +LICENSE="LGPL-3+"
91 +SLOT="0"
92 +KEYWORDS="~amd64 ~x86"
93 +
94 +PATCHES=(
95 + "${FILESDIR}/${P}-fix-install.patch"
96 +)
97 +
98 +src_prepare() {
99 + default
100 + sed -e '/INSTALL/s/-Ds/-D/' \
101 + -e '/INSTALL/s/-s//' \
102 + -e "s:/usr/local:${EPREFIX}/usr:" \
103 + -e "s:/lib/:/$(get_libdir)/:" \
104 + -i Makefile.main || die
105 +}
106 +
107 +src_compile() {
108 + emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" NO_FLTO=1
109 +}