media-gfx/otfcc - 0.10.4 (mva)

Search

Install

Install this version:

emerge -a =media-gfx/otfcc-0.10.4

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

autounmask =media-gfx/otfcc-0.10.4

Or alternatively:

emerge --autounmask-write -a =media-gfx/otfcc-0.10.4

Package Information

Description:
Parses & writes SFNT structures
Homepage:
https://github.com/caryll/otfcc
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.10.4 8 ~amd64 ~mips ~x86 0
View Raw Ebuild
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Parses & writes SFNT structures"
HOMEPAGE="https://github.com/caryll/otfcc"

if [[ "${PV}" =~ "9999" ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/caryll/otfcc"
else
	SRC_URI="https://github.com/caryll/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~mips ~x86"
	# ~arm
	# ^ premake:5
fi

LICENSE="Apache-2.0"
SLOT="0"
IUSE="debug"

BDEPEND="dev-util/premake:5"

src_prepare() {
	local a="x32" c="release";
	use debug && c="debug"
	(use amd64 || use arm64) && a="x64"

	sed -r -i \
		-e 's| make | $(MAKE) |' \
		-e "1iall: linux-${c}-${a}" \
		-e "s@(--cc=)[^ ]*@\1$(tc-get-compiler-type)@g" \
		"${S}/quick.make"

	# QA: We'll strip ourselves, do not strip for us!
	sed -r -i \
		-e '/filter "configurations:Release"/aflags { symbols "On" }\r' \
		"${S}"/premake5.lua
	# ^ QA

	ln -s quick.make Makefile

	default
}

src_install() {
	local a="x32" c="release";
	use debug && c="debug"
	(use amd64 || use arm64) && a="x64"

	dobin bin/"${c}-${a}"/*
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-gfx/otfcc | euse -E <flag> -p media-gfx/otfcc | euse -D <flag> -p media-gfx/otfcc

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

dev-util/premake:5

Manifest for 0.10.4

Type File Size Source URLs
DIST otfcc-0.10.4.tar.gz 4279315 bytes https://github.com/caryll/otfcc/archive/v0.10.4.tar.gz