Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/notcurses/
Date: Thu, 29 Apr 2021 07:15:32
Message-Id: 1619680122.bd91e7e06cdd478b6db550997a42313a3d758903.juippis@gentoo
1 commit: bd91e7e06cdd478b6db550997a42313a3d758903
2 Author: nick black <dankamongmen <AT> gmail <DOT> com>
3 AuthorDate: Tue Apr 13 22:32:35 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 29 07:08:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd91e7e0
7
8 dev-cpp/notcurses: add 2.2.8 checksums and ebuild
9
10 Signed-off-by: nick black <nickblack <AT> linux.com>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 dev-cpp/notcurses/Manifest | 2 ++
14 dev-cpp/notcurses/notcurses-2.2.8.ebuild | 50 ++++++++++++++++++++++++++++++++
15 2 files changed, 52 insertions(+)
16
17 diff --git a/dev-cpp/notcurses/Manifest b/dev-cpp/notcurses/Manifest
18 index 44dc9a74987..d06894bb8a3 100644
19 --- a/dev-cpp/notcurses/Manifest
20 +++ b/dev-cpp/notcurses/Manifest
21 @@ -1,2 +1,4 @@
22 DIST notcurses-2.2.3.tar.gz 10861361 BLAKE2B e7b487e84b5defbb1208f355c85f7178b05f412c2a746a8bcecb2da7db8df32da563aeb1f1f218014a2ff9803f0984889e4341d59f585add49c944d4707e5cd4 SHA512 9c718a39352cc10e4f4cb24cd7940ccc7ac7ad1f5890f1a87166267b3c24011629464a4720f08c2b8bbf0fab2c5cb9b31fba7a43bc62ae65dff894019adece7d
23 DIST notcurses-doc-2.2.3.tar.gz 89550 BLAKE2B a42c74f95166e48ecff99a05d66925869a44a44c4faa867cca663d94ee340748417d6560d022fdb90c7761c19285b0c4838b75843a3d26d25182977f68a0d6ce SHA512 b61f829d1ad5f69147a7b4fe139db406d5a26683b55d72251f3e313c17f591ad4e9e868577fbecf86c4ac9959c942e244927fb29a2e44996fadde7946493ccc8
24 +DIST notcurses-2.2.8.tar.gz 11255362 BLAKE2B d56f48ecfcfc107d696bb1da029afba8c8a29ea6f0d6317ccdd42d895d890c0cc1d46120566c2f60bd554c2a57aa60409276632216608b29469421a1c22cecf2 SHA512 7455ad1dfbeda68a0b2c35ba3bb28eab3bc0be1ca4db12ce0e3662cf12f1e541dec506c9896624f77ef8032ae6b644ee85ac5abf2272f54fb1c9038b33214892
25 +DIST notcurses-doc-2.2.8.tar.gz 115654 BLAKE2B c770f81a3ad4071f75e84caaa4370f26e68ced2489586ae857a8e3c2cf998e0d7b5d84b8fd09150ace51898731150e499f648ad2e6d5be442df11c648ba58ccd SHA512 1a2c8931bd4f68dfdd2fa921d06b639d5fa382d826d5c9e0186b4d0160f220f3f32b1eb19f17136c4d452c8afd9f6fff1b4f463a11d847ef9216ddb94b5c8ab8
26
27 diff --git a/dev-cpp/notcurses/notcurses-2.2.8.ebuild b/dev-cpp/notcurses/notcurses-2.2.8.ebuild
28 new file mode 100644
29 index 00000000000..52303eeff6f
30 --- /dev/null
31 +++ b/dev-cpp/notcurses/notcurses-2.2.8.ebuild
32 @@ -0,0 +1,50 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +CMAKE_ECLASS="cmake"
39 +inherit cmake-multilib
40 +
41 +DESCRIPTION="Blingful TUIs and character graphics"
42 +HOMEPAGE="https://notcurses.com"
43 +SRC_URI="https://github.com/dankamongmen/notcurses/archive/v${PV}.tar.gz -> ${P}.tar.gz
44 + https://github.com/dankamongmen/notcurses/releases/download/v${PV}/notcurses-doc-${PV}.tar.gz"
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +DEPEND="dev-libs/libunistring
50 + media-video/ffmpeg
51 + >=sys-libs/readline-8.0"
52 +RDEPEND="${DEPEND}"
53 +
54 +src_configure() {
55 + local mycmakeargs=(
56 + -DUSE_DOCTEST=OFF
57 + -DUSE_MULTIMEDIA=ffmpeg
58 + -DUSE_PANDOC=OFF
59 + -DUSE_QRCODEGEN=OFF
60 + -DUSE_STATIC=OFF
61 + )
62 + cmake-multilib_src_configure
63 +}
64 +
65 +src_compile() {
66 + cmake-multilib_src_compile
67 +}
68 +
69 +src_test() {
70 + multilib_src_test
71 +}
72 +
73 +src_install() {
74 + cmake-multilib_src_install
75 +
76 + # we use this tortured form lest we try, every time we release a
77 + # x.y.1 or x.y.3, to install the source dir as a man page.
78 + # exploit the fact that there's a bijection from html<>man.
79 + for i in ../*.html ; do
80 + doman ../$(basename ${i} .html)
81 + done
82 +}