summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-cpp/notcurses/Manifest2
-rw-r--r--dev-cpp/notcurses/notcurses-2.3.1.ebuild50
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-cpp/notcurses/Manifest b/dev-cpp/notcurses/Manifest
index 1534de2f89c3..4ce90b84601b 100644
--- a/dev-cpp/notcurses/Manifest
+++ b/dev-cpp/notcurses/Manifest
@@ -1,2 +1,4 @@
DIST notcurses-2.2.8.tar.gz 11255362 BLAKE2B d56f48ecfcfc107d696bb1da029afba8c8a29ea6f0d6317ccdd42d895d890c0cc1d46120566c2f60bd554c2a57aa60409276632216608b29469421a1c22cecf2 SHA512 7455ad1dfbeda68a0b2c35ba3bb28eab3bc0be1ca4db12ce0e3662cf12f1e541dec506c9896624f77ef8032ae6b644ee85ac5abf2272f54fb1c9038b33214892
+DIST notcurses-2.3.1.tar.gz 11744925 BLAKE2B f0b64b70aa898f083383150690a00ddee0355dab6208548c43c44fda5ae2ad96ec2ce63035321813b9f1dfc6c18ee29611917d84a118c84ccbbf39c823a50119 SHA512 2faecd40cce48e24af85049eeb2fc319e48d3a5710a72f72fca1804f4275c5c8cf36906a3f8297966452b6d11c4ef7029b713994d8455ef10ea90f258d06e2ce
DIST notcurses-doc-2.2.8.tar.gz 115654 BLAKE2B c770f81a3ad4071f75e84caaa4370f26e68ced2489586ae857a8e3c2cf998e0d7b5d84b8fd09150ace51898731150e499f648ad2e6d5be442df11c648ba58ccd SHA512 1a2c8931bd4f68dfdd2fa921d06b639d5fa382d826d5c9e0186b4d0160f220f3f32b1eb19f17136c4d452c8afd9f6fff1b4f463a11d847ef9216ddb94b5c8ab8
+DIST notcurses-doc-2.3.1.tar.gz 120206 BLAKE2B f0e82cde6f5f9f6274c07ebb582a74f81b4fbff0340e5f83f5a3d19a6608b3a264ed6eecaff9a5497099ad32328da3c3e894f9157fd073deb560f8c5a58012e7 SHA512 89b18f316b50962e9f0e46cfde07e93f8f581130ce0ba7f19c3f800a7262bc7a30144765f765e0a852f35e6a8fe88805cc19c7e868ed8514a465611fd42aae6f
diff --git a/dev-cpp/notcurses/notcurses-2.3.1.ebuild b/dev-cpp/notcurses/notcurses-2.3.1.ebuild
new file mode 100644
index 000000000000..db8a559116e6
--- /dev/null
+++ b/dev-cpp/notcurses/notcurses-2.3.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS="cmake"
+inherit cmake-multilib
+
+DESCRIPTION="Blingful TUIs and character graphics"
+HOMEPAGE="https://notcurses.com"
+SRC_URI="https://github.com/dankamongmen/notcurses/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/dankamongmen/notcurses/releases/download/v${PV}/notcurses-doc-${PV}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-libs/libunistring
+ media-video/ffmpeg
+ >=sys-libs/readline-8.0"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_DOCTEST=OFF
+ -DUSE_MULTIMEDIA=ffmpeg
+ -DUSE_PANDOC=OFF
+ -DUSE_QRCODEGEN=OFF
+ -DUSE_STATIC=OFF
+ )
+ cmake-multilib_src_configure
+}
+
+src_compile() {
+ cmake-multilib_src_compile
+}
+
+src_test() {
+ multilib_src_test
+}
+
+src_install() {
+ cmake-multilib_src_install
+
+ # we use this tortured form lest we try, every time we release a
+ # x.y.1 or x.y.3, to install the source dir as a man page.
+ # exploit the fact that there's a bijection from html<>man.
+ for i in ../*.html ; do
+ doman ../$(basename ${i} .html || die)
+ done
+}