media-gfx/pngtools - 1.3 (gentoo)

Search

Install

Install this version:

emerge -a =media-gfx/pngtools-1.3

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

autounmask =media-gfx/pngtools-1.3

Or alternatively:

emerge --autounmask-write -a =media-gfx/pngtools-1.3

Package Information

Description:
A series of tools for the PNG image format
Homepage:
https://github.com/mikalstill/pngtools
License:
GPL-2

Ebuild Details

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

EAPI=8

inherit autotools flag-o-matic

DESCRIPTION="A series of tools for the PNG image format"
HOMEPAGE="https://github.com/mikalstill/pngtools"
SRC_URI="https://github.com/mikalstill/pngtools/releases/download/v${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"

RDEPEND="media-libs/libpng:="
DEPEND="${RDEPEND}"
# https://github.com/mikalstill/pngtools/issues/14
BDEPEND="app-text/docbook-sgml-utils"

PATCHES=(
	"${FILESDIR}"/${PN}-1.3-docbook-dtd.patch
)

src_prepare() {
	default

	eautoreconf
}

src_configure() {
	# -Werror=lto-type-mismatch
	# https://bugs.gentoo.org/875371
	# https://github.com/mikalstill/pngtools/issues/21
	filter-lto

	default
}

src_install() {
	default

	dodoc ABOUT chunks.txt

	docinto examples
	dodoc *.png
}

src_test() {
	# TODO: implement pngtools-1.3/scripts/build-and-test.sh
	# Needs extra python deps for testing, incl venv
	default
}

Inherited Eclasses

Dependencies

DEPEND

media-libs/libpng:=

RDEPEND

media-libs/libpng:=

BDEPEND

app-text/docbook-sgml-utils

Manifest for 1.3

Type File Size Source URLs
DIST pngtools-1.3.tar.gz 613606 bytes https://github.com/mikalstill/pngtools/releases/download/v1.3/pngtools-1.3.tar.gz