blob: 0fd51d609fcbde864c9ff238f1e55b3007025c6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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
}
|