games-misc/nbsdgames - 6.0.3 (guru)

Search

Install

Install this version:

emerge -a =games-misc/nbsdgames-6.0.3

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

autounmask =games-misc/nbsdgames-6.0.3

Or alternatively:

emerge --autounmask-write -a =games-misc/nbsdgames-6.0.3

Package Information

Description:
New, improved, text-based modern games
Homepage:
https://github.com/abakh/nbsdgames
License:
CC0-1.0

Ebuild Details

Version EAPI Keywords Slot
6.0.3 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic toolchain-funcs

DESCRIPTION="New, improved, text-based modern games"
HOMEPAGE="https://github.com/abakh/nbsdgames"
SRC_URI="https://github.com/abakh/nbsdgames/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="CC0-1.0"
SLOT="0"
KEYWORDS="~amd64"
# launch-test
RESTRICT="test"

DEPEND="sys-libs/ncurses:="
RDEPEND="
	${DEPEND}
	acct-group/gamestat
"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${P}-group_scores.patch
)

src_compile() {
	tc-export CC PKG_CONFIG
	append-cflags -DSCORES_GW
	emake PREFIX="${EPREFIX}" SCORES_DIR="${EPREFIX}/var/games/${PN}" nb
}

src_install() {
	emake PREFIX="${EPREFIX}" DESTDIR="${D}" nbinstall nbmanpages

	local b
	for b in "${ED}"/usr/bin/*; do
		fowners :gamestat "${b#${ED}}"
		fperms g+s "${b#${ED}}"
	done

	diropts -m 2770 -g gamestat
	dodir /var/games/${PN}
	keepdir /var/games/${PN}
}

Inherited Eclasses

Dependencies

DEPEND

sys-libs/ncurses:=

RDEPEND

	sys-libs/ncurses:=
	acct-group/gamestat

BDEPEND

virtual/pkgconfig

Manifest for 6.0.3

Type File Size Source URLs
DIST nbsdgames-6.0.3.tar.gz 78403 bytes https://github.com/abakh/nbsdgames/archive/v6.0.3.tar.gz