Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/sdl-image/
Date: Wed, 31 Mar 2021 22:41:18
Message-Id: 1617230008.54d2c207b4e88fb14ca7b39246ea7c938c983d3d.chewi@gentoo
1 commit: 54d2c207b4e88fb14ca7b39246ea7c938c983d3d
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Wed Mar 10 09:17:53 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 31 22:33:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d2c207
7
8 media-libs/sdl-image: CVE-2019-13616 v1.2.12_p20210308
9
10 Bug: https://bugs.gentoo.org/772194
11 Package-Manager: Portage-3.0.13, Repoman-3.0.2
12 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
13 Closes: https://github.com/gentoo/gentoo/pull/19863
14 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
15
16 media-libs/sdl-image/Manifest | 1 +
17 .../sdl-image/sdl-image-1.2.12_p20210308.ebuild | 59 ++++++++++++++++++++++
18 2 files changed, 60 insertions(+)
19
20 diff --git a/media-libs/sdl-image/Manifest b/media-libs/sdl-image/Manifest
21 index 4b0d4096b96..88fd1297d53 100644
22 --- a/media-libs/sdl-image/Manifest
23 +++ b/media-libs/sdl-image/Manifest
24 @@ -1 +1,2 @@
25 DIST SDL_image-1.2.12.tar.gz 2231074 BLAKE2B 0d63e0b2207d1d347ec882e610eb37a625811febc215f089eb00dddec92b1a9fe026d2ab7823677c46e595585f3b5e176c35f9ac1f9ec2debf430ecc3ea950a6 SHA512 0e71b280abc2a7f15755e4480a3c1b52d41f9f8b0c9216a6f5bd9fc0e939456fb5d6c10419e1d1904785783f9a1891ead278c03e88b0466fecc6871c3ca40136
26 +DIST SDL_image-1.2.12_p20210308.tar.gz 10890257 BLAKE2B 69c97e47e4be82f08cc5ab1d3efeb40f3931e8528f510d0b15cb2d2fe76e3686c9f2cb5eab44fde41f58b636e725292d9af90b4a5d8113da46240064efffdfc7 SHA512 5cae510c413db1e32dec7791ec143317a3ad91864e067ee44db8fa9df3d1edffafde28582f387d8930bda74fd99a2082736677e3201d2dd961902291f1ddeaaa
27
28 diff --git a/media-libs/sdl-image/sdl-image-1.2.12_p20210308.ebuild b/media-libs/sdl-image/sdl-image-1.2.12_p20210308.ebuild
29 new file mode 100644
30 index 00000000000..b447ae3a9fd
31 --- /dev/null
32 +++ b/media-libs/sdl-image/sdl-image-1.2.12_p20210308.ebuild
33 @@ -0,0 +1,59 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +inherit multilib-minimal
39 +
40 +MY_P="${P/sdl-/SDL_}"
41 +MY_COMMIT="93e58981dcd947f9f153309fda46b0d1cb4eca83"
42 +DESCRIPTION="Image file loading library"
43 +HOMEPAGE="https://www.libsdl.org/projects/SDL_image/release-1.2.html"
44 +SRC_URI="https://github.com/libsdl-org/SDL_image/archive/${MY_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
45 +
46 +LICENSE="ZLIB"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
49 +IUSE="gif jpeg png static-libs tiff webp"
50 +
51 +RDEPEND="
52 + sys-libs/zlib[${MULTILIB_USEDEP}]
53 + >=media-libs/libsdl-1.2.15-r4[${MULTILIB_USEDEP}]
54 + png? ( media-libs/libpng:0[${MULTILIB_USEDEP}] )
55 + jpeg? ( virtual/jpeg:0[${MULTILIB_USEDEP}] )
56 + tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
57 + webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )"
58 +DEPEND="${RDEPEND}"
59 +
60 +S=${WORKDIR}/SDL_image-${MY_COMMIT}
61 +
62 +multilib_src_configure() {
63 + ECONF_SOURCE="${S}" econf \
64 + --disable-jpg-shared \
65 + --disable-png-shared \
66 + --disable-tif-shared \
67 + --disable-webp-shared \
68 + $(use_enable static-libs static) \
69 + $(use_enable gif) \
70 + $(use_enable jpeg jpg) \
71 + $(use_enable tiff tif) \
72 + $(use_enable png) \
73 + $(use_enable webp) \
74 + --enable-bmp \
75 + --enable-lbm \
76 + --enable-pcx \
77 + --enable-pnm \
78 + --enable-tga \
79 + --enable-xcf \
80 + --enable-xpm \
81 + --enable-xv
82 +}
83 +
84 +multilib_src_install() {
85 + emake DESTDIR="${D}" install
86 + dobin .libs/showimage
87 +}
88 +
89 +multilib_src_install_all() {
90 + dodoc CHANGES README
91 + use static-libs || find "${ED}" -type f -name "*.la" -delete || die
92 +}