Diff tkimg-1.4.13-r3 with a tkimg-1.4.14-r2

/usr/portage/dev-tcltk/tkimg/tkimg-1.4.14-r2.ebuild 2023-10-09 14:52:30.904368386 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
......
10 10
DESCRIPTION="Adds a lot of image formats to Tcl/Tk"
11 11
HOMEPAGE="http://tkimg.sourceforge.net/"
12 12
SRC_URI="mirror://sourceforge/${PN}/${PN}/$(ver_cut 1-2)/${PN}%20${PV}/${MYP}.tar.gz
13
	https://dev.gentoo.org/~tupone/distfiles/${PN}-1.4.12-patchset-1.tar.gz"
13
	https://dev.gentoo.org/~tupone/distfiles/${P}-patchset-1.tar.gz"
14 14

  
15 15
LICENSE="BSD"
16 16
SLOT="0"
17
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
17
KEYWORDS="amd64 ~arm64 ppc x86 ~amd64-linux ~x86-linux"
18 18
IUSE="doc test static-libs"
19 19

  
20 20
RDEPEND="
......
33 33

  
34 34
RESTRICT="!test? ( test )"
35 35

  
36
S="${WORKDIR}/Img-${PV}"
36
S="${WORKDIR}/${MYP}"
37 37

  
38 38
PATCHES=(
39 39
	"${WORKDIR}"/patchset-1
40
	"${FILESDIR}"/${P}-test.patch
40
	"${FILESDIR}"/${P}-gcc11.patch
41
)
42

  
43
QA_CONFIG_IMPL_DECL_SKIP=(
44
	stat64 # used to test for Large File Support
45
	glBegin # used to test for openGL support
46
	glutMainLoop # used to test for glut support
41 47
)
42 48

  
43 49
src_prepare() {
......
45 51
		libjpeg/jpegtclDecls.h \
46 52
		zlib/zlibtclDecls.h \
47 53
		libpng/pngtclDecls.h \
54
		tiff/tiffZip.c \
55
		tiff/tiffPixar.c \
48 56
		libtiff/tifftclDecls.h
49 57

  
58
	# libtiff unbundle is problematic
59
	rm ../patchset-1/tkimg-1.4.12-tiff.patch || die
60

  
50 61
	default
51 62

  
63
	echo "unknown" > manifest.uuid || die
64

  
52 65
	find compat/libtiff/config -name ltmain.sh -delete || die
53 66
	sed -i \
54 67
		-e 's:"--with-CC=$TIFFCC"::' \
......
56 69

  
57 70
	eautoreconf
58 71
	for dir in zlib libpng libtiff libjpeg base bmp gif ico jpeg pcx pixmap png\
59
		ppm ps sgi sun tga tiff window xbm xpm dted raw flir ; do
72
		ppm ps sgi sun tga tiff window xbm xpm dted raw flir compat/libtiff ; do
60 73
		(cd ${dir}; AT_NOELIBTOOLIZE=yes eautoreconf)
61 74
	done
62 75

  
......
64 77
	tc-export AR
65 78
}
66 79

  
80
src_configure() {
81
	default
82

  
83
	sed -i \
84
		-e "/PACKAGE_/d" \
85
		libtiff/libtiff/tif_config.h \
86
		|| die
87
}
88

  
67 89
src_test() {
68 90
	virtx default
69 91
}
Thank you!