media-gfx/guetzli - 9999 (nest)

Search

Install

Install this version:

emerge -a =media-gfx/guetzli-9999

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

autounmask =media-gfx/guetzli-9999

Or alternatively:

emerge --autounmask-write -a =media-gfx/guetzli-9999

Package Information

Description:
Perceptual JPEG encoder
Homepage:
https://github.com/google/guetzli
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 toolchain-funcs

DESCRIPTION="Perceptual JPEG encoder"
HOMEPAGE="https://github.com/google/guetzli"
EGIT_REPO_URI="https://github.com/google/${PN}.git"

LICENSE="Apache-2.0"
SLOT="0"
IUSE="debug test"
RESTRICT="!test? ( test )"

RDEPEND="media-libs/libpng:0="
BDEPEND="virtual/pkgconfig
	test? ( media-libs/libjpeg-turbo
		media-libs/netpbm[png] )"

src_prepare() {
	default

	# respect FLAGS
	sed -i 's/-O3 -g //' guetzli.make || die "sed failed"
}

src_compile() {
	emake CXX="$(tc-getCXX)" verbose=1 config="$(usex debug debug release '' '')"
}

src_test() {
	tests/smoke_test.sh bin/"$(usex debug Debug Release '' '')"/guetzli \
		|| die "test failed"
}

src_install() {
	dobin bin/"$(usex debug Debug Release '' '')"/guetzli
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

media-libs/libpng:0=

BDEPEND

virtual/pkgconfig
	test? ( media-libs/libjpeg-turbo
		media-libs/netpbm[png] )