dev-cpp/notcurses - 3.0.13 (piniverlay)

Search

Install

Install this version:

emerge -a =dev-cpp/notcurses-3.0.13

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-cpp/notcurses-3.0.13

Or alternatively:

emerge --autounmask-write -a =dev-cpp/notcurses-3.0.13

Package Information

Description:
Blingful TUIs and character graphics
Homepage:
https://notcurses.com
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
3.0.13 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Blingful TUIs and character graphics"
HOMEPAGE="https://notcurses.com"
SRC_URI="
	https://github.com/dankamongmen/notcurses/archive/refs/tags/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="cxx ffi gpm media static-libs test"
RESTRICT="!test? ( test )"

DEPEND="
	dev-libs/libunistring:=[static-libs?]
	media? (
		media-video/ffmpeg:=
	)
	gpm? (
		sys-libs/gpm
	)
	sys-libs/ncurses:=[static-libs?]
	sys-libs/zlib:=[static-libs?]"
RDEPEND="${DEPEND}"

src_prepare() {
	case "${CTARGET:-${CHOST}}" in
		*-gnu*)
			if use static-libs; then
				eapply "${FILESDIR}/glibc-static.patch"
			fi;;
	esac
	eapply_user
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DCMAKE_BUILD_TYPE=$(usex test RelWithDebInfo Release)
		-DBUILD_FFI_LIBRARY=$(usex ffi)
		-DBUILD_TESTING=$(usex test)
		-DUSE_CXX=$(usex cxx)
		-DUSE_DEFLATE=OFF
		-DUSE_DOCTEST=OFF
		-DUSE_GPM=$(usex gpm)
		-DUSE_MULTIMEDIA=$(usex media ffmpeg none)
		-DUSE_PANDOC=OFF
		-DUSE_QRCODEGEN=OFF
		-DUSE_STATIC=$(usex static-libs)
	)
	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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-cpp/notcurses | euse -E <flag> -p dev-cpp/notcurses | euse -D <flag> -p dev-cpp/notcurses

Global/Standard Flags

cxx
ffi
gpm

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/libunistring:=[static-libs?]
	media? (
		media-video/ffmpeg:=
	)
	gpm? (
		sys-libs/gpm
	)
	sys-libs/ncurses:=[static-libs?]
	sys-libs/zlib:=[static-libs?]

RDEPEND

	dev-libs/libunistring:=[static-libs?]
	media? (
		media-video/ffmpeg:=
	)
	gpm? (
		sys-libs/gpm
	)
	sys-libs/ncurses:=[static-libs?]
	sys-libs/zlib:=[static-libs?]

Manifest for 3.0.13

Type File Size Source URLs
DIST notcurses-3.0.13.tar.gz 10159576 bytes https://github.com/dankamongmen/notcurses/archive/refs/tags/v3.0.13.tar.gz
DIST notcurses-doc-3.0.13.tar.gz 165143 bytes https://github.com/dankamongmen/notcurses/releases/download/v3.0.13/notcurses-doc-3.0.13.tar.gz