media-libs/mozjpeg - 3.2 (haarp)

Search

Install

Install this version:

emerge -a =media-libs/mozjpeg-3.2

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

autounmask =media-libs/mozjpeg-3.2

Or alternatively:

emerge --autounmask-write -a =media-libs/mozjpeg-3.2

Package Information

Description:
Improved JPEG encoder based on libjpeg-turbo
Homepage:
https://github.com/mozilla/mozjpeg
License:
BSD IJG

Ebuild Details

Version EAPI Keywords Slot
3.2 6 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Improved JPEG encoder based on libjpeg-turbo"
HOMEPAGE="https://github.com/mozilla/mozjpeg"
SRC_URI="https://github.com/mozilla/${PN}/releases/download/v${PV}/${P}-release-source.tar.gz"

LICENSE="BSD IJG"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="sys-libs/zlib"
DEPEND="${RDEPEND}
	dev-lang/nasm"

S=${WORKDIR}/${PN}

src_install() {
	# wrapper to use renamed libjpeg.so (allows coexistence with libjpeg-turbo)
	echo -e '#!/bin/sh\nLD_PRELOAD="libmozjpeg.so $LD_PRELOAD" .$(basename $0) "$@"' > wrapper
	newbin wrapper mozcjpeg
	newbin wrapper mozjpegtran

	newbin .libs/cjpeg .mozcjpeg
	newbin .libs/jpegtran .mozjpegtran
	newlib.so .libs/libjpeg.so.62.2.0 libmozjpeg.so
	dodoc README.md README-mozilla.txt usage.txt wizard.txt
}

Dependencies

DEPEND

sys-libs/zlib
	dev-lang/nasm

RDEPEND

sys-libs/zlib

Manifest for 3.2

Type File Size Source URLs
DIST mozjpeg-3.2-release-source.tar.gz 1633229 bytes https://github.com/mozilla/mozjpeg/releases/download/v3.2/mozjpeg-3.2-release-source.tar.gz