dev-games/t4k-common - 0.1.1 (gentoo)

Search

Install

Install this version:

emerge -a =dev-games/t4k-common-0.1.1

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

autounmask =dev-games/t4k-common-0.1.1

Or alternatively:

emerge --autounmask-write -a =dev-games/t4k-common-0.1.1

Package Information

Description:
Library of code shared between tuxmath and tuxtype
Homepage:
https://github.com/tux4kids/t4kcommon
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
0.1.1 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 autotools

DESCRIPTION="Library of code shared between tuxmath and tuxtype"
HOMEPAGE="https://github.com/tux4kids/t4kcommon"
SRC_URI="https://github.com/tux4kids/t4kcommon/archive/upstream/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/t4kcommon-upstream-${PV}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="svg"

RDEPEND="
	dev-libs/libxml2:2=
	media-libs/libsdl
	media-libs/sdl-image
	media-libs/sdl-mixer
	media-libs/sdl-net
	media-libs/sdl-pango
	svg? (
		gnome-base/librsvg:2
		media-libs/libpng:=
		x11-libs/cairo
	)"
DEPEND="${RDEPEND}"
# need sys-devel/gettext for AM_ICONV added to configure.ac
BDEPEND="
	sys-devel/gettext
	virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${P}-libpng.patch
	"${FILESDIR}"/${P}-fno-common.patch
	"${FILESDIR}"/${P}-ICONV_CONST.patch
	"${FILESDIR}"/${P}-fix-declaration.patch
	"${FILESDIR}"/${P}-missing-text.patch
	"${FILESDIR}"/${P}-svg-libxml2.patch
	"${FILESDIR}"/${P}-gcc14-build-fix.patch
	"${FILESDIR}"/${P}-bool.patch
)

src_prepare() {
	default

	rm m4/iconv.m4 || die
	eautoreconf
}

src_configure() {
	# note: sdlpango<->sdlttf breaks ABI, prefer default pango
	local econfargs=(
		$(usex svg '' --without-rsvg)
	)
	econf "${econfargs[@]}"
}

src_install() {
	default

	find "${ED}" -name '*.la' -delete || die
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-games/t4k-common | euse -E <flag> -p dev-games/t4k-common | euse -D <flag> -p dev-games/t4k-common

Global/Standard Flags

svg

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/libxml2:2=
	media-libs/libsdl
	media-libs/sdl-image
	media-libs/sdl-mixer
	media-libs/sdl-net
	media-libs/sdl-pango
	svg? (
		gnome-base/librsvg:2
		media-libs/libpng:=
		x11-libs/cairo
	)

RDEPEND

	dev-libs/libxml2:2=
	media-libs/libsdl
	media-libs/sdl-image
	media-libs/sdl-mixer
	media-libs/sdl-net
	media-libs/sdl-pango
	svg? (
		gnome-base/librsvg:2
		media-libs/libpng:=
		x11-libs/cairo
	)

BDEPEND

	sys-devel/gettext
	virtual/pkgconfig

Manifest for 0.1.1

Type File Size Source URLs
DIST t4k-common-0.1.1.tar.gz 622239 bytes https://github.com/tux4kids/t4kcommon/archive/upstream/0.1.1.tar.gz