media-libs/jbig2enc - 0.29 (gentoo)

Search

Install

Install this version:

emerge -a =media-libs/jbig2enc-0.29

Package Information

Description:
JBIG2 Encoder and libs
Homepage:
https://github.com/agl/jbig2enc
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.29 8 amd64 ~loong x86 0
View Raw Ebuild
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="JBIG2 Encoder and libs"
HOMEPAGE="https://github.com/agl/jbig2enc"
SRC_URI="https://github.com/agl/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~loong x86"
IUSE="gif jpeg png tiff webp"

RDEPEND="media-libs/leptonica[gif?,jpeg?,png?,tiff?,webp?]"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}"/${P}-leptonica-1.83.patch
)

src_prepare() {
	default

	# remove -Werror
	sed -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac || die 'sed on configure.ac failed'
	# prevent static linking and QA notice about insecure RUNPATHs
	# TODO: --disable-rpath (new in 0.29)?
	sed -i -e '/jbig2_LDFLAGS/d' src/Makefile.am || die 'sed on src/Makefile.am failed'

	eautoreconf
}

src_install() {
	default

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

USE Flags

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

Global/Standard Flags

gif
png

Inherited Eclasses

Dependencies

DEPEND

media-libs/leptonica[gif?,jpeg?,png?,tiff?,webp?]

RDEPEND

media-libs/leptonica[gif?,jpeg?,png?,tiff?,webp?]

Manifest for 0.29

Type File Size Source URLs
DIST jbig2enc-0.29.tar.gz 1108212 bytes https://github.com/agl/jbig2enc/archive/0.29.tar.gz