mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/yascreen: initial import
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
1
dev-libs/yascreen/Manifest
Normal file
1
dev-libs/yascreen/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST yascreen-1.86.tar.xz 26104 BLAKE2B 4716c1eb2a41468fbb0ecbcda7c34a031d97f5292632501ce4c9740de071f8c39e1c7d9f0f8f6c5fbdccaef5908e3751b25ebc7e0c6dab3dff63b2a99f12eefa SHA512 dce785c477395b0c78c5054682dd8ccfbe3243ede966300c3e95e25fac6320f820aa1f0a3b2ce37544b3b45adb94eccccaf32187b145cd2bba43367e166b9e7c
|
||||
22
dev-libs/yascreen/files/yascreen-1.86-fix-install.patch
Normal file
22
dev-libs/yascreen/files/yascreen-1.86-fix-install.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From: Boian Bonev <bbonev@ipacct.com>
|
||||
Date: Tue, 21 Sep 2021 03:36:23 +0300
|
||||
Subject: [PATCH] fix problems with install
|
||||
|
||||
--- a/Makefile.main
|
||||
+++ b/Makefile.main
|
||||
@@ -108,12 +108,12 @@ yascreen.pc: yascreen.pc.in
|
||||
|
||||
install: libyascreen.a libyascreen.so yascreen.pc yascreen.3
|
||||
$(INSTALL) -Ds -m 644 -t $(DESTDIR)$(PREFIX)$(LIBDIR) libyascreen.a
|
||||
- $(INSTALL) -Ds -m 644 -t $(DESTDIR)$(PREFIX)$(LIBDIR)/pkgconfig/ yascreen.pc
|
||||
+ $(INSTALL) -D -m 644 -t $(DESTDIR)$(PREFIX)$(LIBDIR)/pkgconfig/ yascreen.pc
|
||||
ln -fs libyascreen.so.$(SOVERF) $(DESTDIR)$(PREFIX)$(LIBDIR)libyascreen.so.$(SOVERM)
|
||||
ln -fs libyascreen.so.$(SOVERM) $(DESTDIR)$(PREFIX)$(LIBDIR)libyascreen.so
|
||||
$(INSTALL) -Ds -m 644 -s -t $(DESTDIR)$(PREFIX)$(LIBDIR) libyascreen.so.$(SOVERF)
|
||||
- $(INSTALL) -Ds -m 644 -t $(DESTDIR)$(PREFIX)$(INCDIR) yascreen.h
|
||||
- $(INSTALL) -TDs -m 0644 yascreen.3 $(DESTDIR)$(PREFIX)/share/man/man3/yascreen.3
|
||||
+ $(INSTALL) -D -m 644 -t $(DESTDIR)$(PREFIX)$(INCDIR) yascreen.h
|
||||
+ $(INSTALL) -TD -m 0644 yascreen.3 $(DESTDIR)$(PREFIX)/share/man/man3/yascreen.3
|
||||
|
||||
clean:
|
||||
rm -f yastest yastest.shared yastest.o yascreen.o libyascreen.a libyascreen.so libyascreen.so.$(SOVERM) libyascreen.so.$(SOVERF) yascreen.pc
|
||||
11
dev-libs/yascreen/metadata.xml
Normal file
11
dev-libs/yascreen/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>arthurzam@gentoo.org</email>
|
||||
<name>Arthur Zamarin</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">bbonev/yascreen</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
31
dev-libs/yascreen/yascreen-1.86.ebuild
Normal file
31
dev-libs/yascreen/yascreen-1.86.ebuild
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Yet Another Screen Library - curses replacement"
|
||||
HOMEPAGE="https://github.com/bbonev/yascreen"
|
||||
SRC_URI="https://github.com/bbonev/yascreen/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-install.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e '/INSTALL/s/-Ds/-D/' \
|
||||
-e '/INSTALL/s/-s//' \
|
||||
-e "s:/usr/local:${EPREFIX}/usr:" \
|
||||
-e "s:/lib/:/$(get_libdir)/:" \
|
||||
-i Makefile.main || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" NO_FLTO=1
|
||||
}
|
||||
Reference in New Issue
Block a user