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: Tue, 30 Nov 2021 07:27:57
Message-Id: 1638257264.1255e0c245974e0d2ba1df4a6433241ed519839d.juippis@gentoo
1 commit: 1255e0c245974e0d2ba1df4a6433241ed519839d
2 Author: nick black <dankamongmen <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 22 14:06:13 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 30 07:27:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1255e0c2
7
8 dev-cpp/notcurses: add 2.4.9
9
10 Signed-off-by: nick black <dankamongmen <AT> gmail.com>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 dev-cpp/notcurses/Manifest | 2 ++
14 dev-cpp/notcurses/notcurses-2.4.9.ebuild | 53 ++++++++++++++++++++++++++++++++
15 2 files changed, 55 insertions(+)
16
17 diff --git a/dev-cpp/notcurses/Manifest b/dev-cpp/notcurses/Manifest
18 index 069e97c8ca6d..448702fd164e 100644
19 --- a/dev-cpp/notcurses/Manifest
20 +++ b/dev-cpp/notcurses/Manifest
21 @@ -1,2 +1,4 @@
22 +DIST notcurses-2.4.9.tar.gz 10097240 BLAKE2B e73395eeadaf9cffa999566218f4f6b05696175d0e083c504d30c2bb1b870546fcca47e5d82a5e78a351f7f18e7679564dfebb1baeae73ba5f3238a0f94feb39 SHA512 c8774a8b413fb00a0051e4067419785d9fe958c56df0eeecb42c3e0430788bb039e355c8bbcdc63f0bcbc2c33ca0d130d05dbbfdb22a12bc4c9c8d1529976b33
23 +DIST notcurses-doc-2.4.9.tar.gz 136681 BLAKE2B d16d80bda84dd1ce96a0edc6dd9fab80b22dfd9284daff68d2f4fc28542fddfafcc42b40969b6e4655c750246004f2410d8a578a04036347de99ca11217cef40 SHA512 8bb490c8297a9cc8f99cac46172d5c2a6bc376725e03eaeb6a0495ed8a712d7c31998b7c8b511dfc1b69a3e082fdb1dba1e4d4d2d05cc5a9bddcc547e682fe4e
24 DIST notcurses-2.4.5.tar.gz 10082686 BLAKE2B 7205f4b5864cf9c09342a4c171f16be85abe92c1ad445ff31aa180837628b897fee8ce702340b68457b729f741a67d360e233d4344244627ed7bffcc07ae9818 SHA512 0ad1f22b591fd36eea9917c50b51a7811aec9662edec475d5555896115b5c7d3e51487a3b1d67298cfc5472be367d7b8a71b6554811e8e3a4d9d781adc2d01eb
25 DIST notcurses-doc-2.4.5.tar.gz 133547 BLAKE2B 65795b4f58eb9f905f17a58e7435579f1bc17e72d0aa8816f6dd7c9f41fc1b8568dc078a93c9184e6324e6c02d3187f36e95f41ba9cf8dbd3dd1be5074b55f11 SHA512 9c29fda1b13530931f7f1768b607371e553f8b1fbd573c4cd80bbfacafa2e9b2eaa2063c4c324e8d9878fe62f44c013ab2402126e97f484a4442e791922c3622
26
27 diff --git a/dev-cpp/notcurses/notcurses-2.4.9.ebuild b/dev-cpp/notcurses/notcurses-2.4.9.ebuild
28 new file mode 100644
29 index 000000000000..56e13b2f06ae
30 --- /dev/null
31 +++ b/dev-cpp/notcurses/notcurses-2.4.9.ebuild
32 @@ -0,0 +1,53 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
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/gpm
52 + sys-libs/ncurses:=
53 + sys-libs/zlib"
54 +RDEPEND="${DEPEND}"
55 +
56 +src_configure() {
57 + local mycmakeargs=(
58 + -DUSE_DOCTEST=OFF
59 + -DUSE_GPM=ON
60 + -DUSE_MULTIMEDIA=ffmpeg
61 + -DUSE_PANDOC=OFF
62 + -DUSE_QRCODEGEN=OFF
63 + -DUSE_STATIC=OFF
64 + )
65 + cmake-multilib_src_configure
66 +}
67 +
68 +src_compile() {
69 + cmake-multilib_src_compile
70 +}
71 +
72 +src_test() {
73 + multilib_src_test
74 +}
75 +
76 +src_install() {
77 + cmake-multilib_src_install
78 +
79 + # we use this tortured form lest we try, every time we release a
80 + # x.y.1 or x.y.3, to install the source dir as a man page.
81 + # exploit the fact that there's a bijection from html<>man.
82 + for i in ../*.html ; do
83 + doman ../$(basename ${i} .html || die)
84 + done
85 +}