Diff libpng-1.6.40 with a libpng-1.6.40-r1

/usr/portage/media-libs/libpng/libpng-1.6.40-r1.ebuild 2023-10-09 14:52:31.692368406 +0300
5 5

  
6 6
inherit libtool multilib-minimal
7 7

  
8
APNG_VERSION="1.6.39"
8
APNG_REPO=apng # sometimes libpng-apng is more up to date
9
APNG_VERSION="1.6.40"
9 10
DESCRIPTION="Portable Network Graphics library"
10 11
HOMEPAGE="http://www.libpng.org/"
11 12
SRC_URI="
12 13
	mirror://sourceforge/${PN}/${P}.tar.xz
13 14
	apng? (
14
		mirror://sourceforge/libpng-apng/${PN}$(ver_rs 1-2 '' $(ver_cut 1-2 ${APNG_VERSION}))/${PV}/${PN}-${APNG_VERSION}-apng.patch.gz
15
		mirror://sourceforge/${APNG_REPO}/${PN}$(ver_rs 1-2 '' $(ver_cut 1-2 ${APNG_VERSION}))/${PV}/${PN}-${APNG_VERSION}-apng.patch.gz
16
		mirror://sourceforge/${APNG_REPO}/${PN}$(ver_rs 1-2 '' $(ver_cut 1-2 ${APNG_VERSION}))/${PN}-${APNG_VERSION}-apng.patch.gz
15 17
	)
16 18
"
17 19

  
......
29 31
	default
30 32

  
31 33
	if use apng; then
32
		eapply "${WORKDIR}"/${PN}-${APNG_VERSION}-apng.patch
34
		case ${APNG_REPO} in
35
			apng)
36
				eapply -p0 "${WORKDIR}"/${PN}-${APNG_VERSION}-apng.patch
37
				;;
38
			libpng-apng)
39
				eapply "${WORKDIR}"/${PN}-${APNG_VERSION}-apng.patch
40
				;;
41
			*)
42
				die "Unknown APNG_REPO!"
43
				;;
44
		esac
33 45

  
34 46
		# Don't execute symbols check with apng patch, bug #378111
35 47
		sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die
Thank you!