public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/yascreen/, dev-libs/yascreen/files/
Date: Thu, 23 Sep 2021 06:16:41 +0000 (UTC)	[thread overview]
Message-ID: <1632377780.e3808e83de7e94a43fd2cd9b06563fcc25f1976e.arthurzam@gentoo> (raw)

commit:     e3808e83de7e94a43fd2cd9b06563fcc25f1976e
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 23 06:16:20 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 23 06:16:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3808e83

dev-libs/yascreen: initial import

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-libs/yascreen/Manifest                         |  1 +
 .../yascreen/files/yascreen-1.86-fix-install.patch | 22 +++++++++++++++
 dev-libs/yascreen/metadata.xml                     | 11 ++++++++
 dev-libs/yascreen/yascreen-1.86.ebuild             | 31 ++++++++++++++++++++++
 4 files changed, 65 insertions(+)

diff --git a/dev-libs/yascreen/Manifest b/dev-libs/yascreen/Manifest
new file mode 100644
index 00000000000..4b013b565da
--- /dev/null
+++ b/dev-libs/yascreen/Manifest
@@ -0,0 +1 @@
+DIST yascreen-1.86.tar.xz 26104 BLAKE2B 4716c1eb2a41468fbb0ecbcda7c34a031d97f5292632501ce4c9740de071f8c39e1c7d9f0f8f6c5fbdccaef5908e3751b25ebc7e0c6dab3dff63b2a99f12eefa SHA512 dce785c477395b0c78c5054682dd8ccfbe3243ede966300c3e95e25fac6320f820aa1f0a3b2ce37544b3b45adb94eccccaf32187b145cd2bba43367e166b9e7c

diff --git a/dev-libs/yascreen/files/yascreen-1.86-fix-install.patch b/dev-libs/yascreen/files/yascreen-1.86-fix-install.patch
new file mode 100644
index 00000000000..0e584bb0ece
--- /dev/null
+++ b/dev-libs/yascreen/files/yascreen-1.86-fix-install.patch
@@ -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

diff --git a/dev-libs/yascreen/metadata.xml b/dev-libs/yascreen/metadata.xml
new file mode 100644
index 00000000000..a08688b11e3
--- /dev/null
+++ b/dev-libs/yascreen/metadata.xml
@@ -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>

diff --git a/dev-libs/yascreen/yascreen-1.86.ebuild b/dev-libs/yascreen/yascreen-1.86.ebuild
new file mode 100644
index 00000000000..db5b07b4ca2
--- /dev/null
+++ b/dev-libs/yascreen/yascreen-1.86.ebuild
@@ -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
+}


                 reply	other threads:[~2021-09-23  6:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1632377780.e3808e83de7e94a43fd2cd9b06563fcc25f1976e.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox