games-kids/tuxmath - 2.0.3 (gentoo)

Search

Install

Install this version:

emerge -a =games-kids/tuxmath-2.0.3

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

autounmask =games-kids/tuxmath-2.0.3

Or alternatively:

emerge --autounmask-write -a =games-kids/tuxmath-2.0.3

Package Information

Description:
Educational arcade game where you have to solve maths problems
Homepage:
https://www.tux4kids.com/
License:
CC-BY-SA-3.0 CC-PD GPL-3+ public-domain

Ebuild Details

Version EAPI Keywords Slot
2.0.3 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 desktop optfeature

DESCRIPTION="Educational arcade game where you have to solve maths problems"
HOMEPAGE="https://www.tux4kids.com/"
SRC_URI="mirror://debian/pool/main/t/${PN}/${PN}_${PV}.orig.tar.gz"
S="${WORKDIR}/${PN}_w_fonts-${PV}"

LICENSE="CC-BY-SA-3.0 CC-PD GPL-3+ public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nls svg"

RDEPEND="
	>=dev-games/t4k-common-0.1.1-r1[svg?]
	dev-libs/libxml2:2=
	media-libs/libsdl[video]
	media-libs/sdl-image[jpeg,png]
	media-libs/sdl-mixer
	media-libs/sdl-net
	nls? ( virtual/libintl )"
DEPEND="
	${RDEPEND}
	svg? (
		gnome-base/librsvg:2
		x11-libs/cairo
	)"
BDEPEND="
	virtual/pkgconfig
	nls? ( sys-devel/gettext )"

PATCHES=(
	"${FILESDIR}"/${P}-blits-to-tmblits.patch
	"${FILESDIR}"/${P}-fno-common.patch
	"${FILESDIR}"/${P}-gcc14.patch
)

src_configure() {
	local econfargs=(
		$(use_enable nls)
		$(usex svg '' --without-rsvg)
	)
	econf "${econfargs[@]}"
}

src_install() {
	default

	doicon data/images/icons/${PN}.svg
	domenu ${PN}.desktop

	# bundled fonts are unused if t4k-common uses pango
	rm -r "${ED}"/usr/share/${PN}/fonts || die
	rm "${ED}"/usr/share/doc/${PF}/{COPYING_GPL3,GPL_VERSIONS,INSTALL,OFL,README_DATA_LICENSES} || die
}

pkg_postinst() {
	optfeature "music support" "media-libs/sdl-mixer[mod,vorbis]"
}

USE Flags

Manage flags for this package: euse -i <flag> -p games-kids/tuxmath | euse -E <flag> -p games-kids/tuxmath | euse -D <flag> -p games-kids/tuxmath

Global/Standard Flags

nls
svg

Inherited Eclasses

Applicable Mirrors

Mirror Name URLs
debian

Dependencies

DEPEND

	
	>=dev-games/t4k-common-0.1.1-r1[svg?]
	dev-libs/libxml2:2=
	media-libs/libsdl[video]
	media-libs/sdl-image[jpeg,png]
	media-libs/sdl-mixer
	media-libs/sdl-net
	nls? ( virtual/libintl )
	svg? (
		gnome-base/librsvg:2
		x11-libs/cairo
	)

RDEPEND

	>=dev-games/t4k-common-0.1.1-r1[svg?]
	dev-libs/libxml2:2=
	media-libs/libsdl[video]
	media-libs/sdl-image[jpeg,png]
	media-libs/sdl-mixer
	media-libs/sdl-net
	nls? ( virtual/libintl )

BDEPEND

	virtual/pkgconfig
	nls? ( sys-devel/gettext )

Manifest for 2.0.3

Type File Size Source URLs
DIST tuxmath_2.0.3.orig.tar.gz 10396696 bytes mirror://debian/pool/main/t/tuxmath/tuxmath_2.0.3.orig.tar.gz