media-libs/ttf - 1.1.0 (gentoo)

Search

Install

Install this version:

emerge -a =media-libs/ttf-1.1.0

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

autounmask =media-libs/ttf-1.1.0

Or alternatively:

emerge --autounmask-write -a =media-libs/ttf-1.1.0

Package Information

Description:
Simple C library for using TrueType and OpenType font files
Homepage:
https://www.msweet.org/ttf/
License:
Apache-2.0

Ebuild Details

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

EAPI=8

VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/michaelrsweet.asc
inherit toolchain-funcs verify-sig

DESCRIPTION="Simple C library for using TrueType and OpenType font files"
HOMEPAGE="https://www.msweet.org/ttf/"
SRC_URI="
	https://github.com/michaelrsweet/ttf/releases/download/v${PV}/${P}.tar.gz
	verify-sig? ( https://github.com/michaelrsweet/ttf/releases/download/v${PV}/${P}.tar.gz.sig )
"

# TODO: extension
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="verify-sig? ( sec-keys/openpgp-keys-michaelrsweet )"

src_prepare() {
	default

	# Build verbosely
	sed -i -e '/.SILENT:/d' Makefile.in || die

	# Fix docdir
	sed -i -e 's:/doc/ttf:/doc/${PF}:' Makefile.in || die

	# Respect CFLAGS
	sed -i -e 's:-g -Os::' configure.ac configure || die

	# We already default to >=2 in Gentoo, don't downgrade
	sed -i -e 's: -D_FORTIFY_SOURCE=2::' configure.ac configure || die
}

src_configure() {
	tc-export AR

	local myeconfargs=(
		# Doesn't use libtool, so have to pass manually
		--enable-shared
		--disable-static

		--with-dsoflags="${LDFLAGS}"
		--with-ldflags="${LDFLAGS}"
	)

	econf "${myeconfargs[@]}"
}

src_test() {
	emake -Onone test
}

src_install() {
	default

	# We handle this elsewhere
	rm "${ED}"/usr/share/doc/${PF}/{NOTICE,LICENSE} || die
}

Inherited Eclasses

Dependencies

BDEPEND

verify-sig? ( sec-keys/openpgp-keys-michaelrsweet )

Manifest for 1.1.0

Type File Size Source URLs
DIST ttf-1.1.0.tar.gz 4170512 bytes https://github.com/michaelrsweet/ttf/releases/download/v1.1.0/ttf-1.1.0.tar.gz
DIST ttf-1.1.0.tar.gz.sig 566 bytes https://github.com/michaelrsweet/ttf/releases/download/v1.1.0/ttf-1.1.0.tar.gz.sig