commit:     44f872775eec3d190acfcbbc1ef3e30d97e89874
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 12 08:46:29 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Mar 12 10:11:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f87277

dev-cpp/notcurses: use ffmpeg-compat

It is possible fixes already exist for ffmpeg-7 on this package,
but not planning to look into that myself.

Bug: https://bugs.gentoo.org/948466
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-cpp/notcurses/notcurses-3.0.8-r1.ebuild | 59 +++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/dev-cpp/notcurses/notcurses-3.0.8-r1.ebuild 
b/dev-cpp/notcurses/notcurses-3.0.8-r1.ebuild
new file mode 100644
index 000000000000..ffadcdbcf4ea
--- /dev/null
+++ b/dev-cpp/notcurses/notcurses-3.0.8-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake ffmpeg-compat
+
+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"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="dev-libs/libunistring:=
+       media-video/ffmpeg-compat:6=
+       sys-libs/gpm
+       sys-libs/ncurses:="
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       # TODO: fix with >=ffmpeg-7 then drop compat (bug #948466)
+       ffmpeg_compat_setup 6
+       ffmpeg_compat_add_flags
+
+       local mycmakeargs=(
+               -DBUILD_TESTING=$(usex test)
+               -DUSE_DEFLATE=OFF
+               -DUSE_DOCTEST=OFF
+               -DUSE_GPM=ON
+               -DUSE_MULTIMEDIA=ffmpeg
+               -DUSE_PANDOC=OFF
+               -DUSE_QRCODEGEN=OFF
+               -DUSE_STATIC=OFF
+       )
+       cmake_src_configure
+}
+
+src_test() {
+       ewarn "Tests will fail if you don't have a UTF8 locale available,"
+       ewarn "or if you're missing the proper terminfo database for your TERM."
+
+       cmake_src_test
+}
+
+src_install() {
+       cmake_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
+}

Reply via email to