1 |
commit: 35cb76dcc66a42a8ba127b9478e6253f461f5a1c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 2 16:10:54 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 2 16:11:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35cb76dc |
7 |
|
8 |
media-libs/sdl2-image: Bump to version 2.0.4 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
media-libs/sdl2-image/Manifest | 1 + |
14 |
media-libs/sdl2-image/sdl2-image-2.0.4.ebuild | 61 +++++++++++++++++++++++++++ |
15 |
2 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/sdl2-image/Manifest b/media-libs/sdl2-image/Manifest |
18 |
index a9d0151408d..75143329a7b 100644 |
19 |
--- a/media-libs/sdl2-image/Manifest |
20 |
+++ b/media-libs/sdl2-image/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST SDL2_image-2.0.3.tar.gz 8685512 BLAKE2B c54114f6573632561443bc57af8fe3ddbccc0bfcf027939685add7b06cb6999a5bc41119c474481047a7216ce6110a58a08571fefa6b5c80322f15f0c528ad6f SHA512 869cf3485cc850a91dc1d7f0023f0497bc7bbfd63e721365358b19d19d4da850e52667731d0e5ec80f4a11d7687aa6cfbdd5ceaec956af0e7f5567e87535977a |
23 |
+DIST SDL2_image-2.0.4.tar.gz 11682695 BLAKE2B 5e2a456d770ab2b6b82d5573d9e6eed874b2b65fe3225287aef853b27f79251db4dae155721018c69f30e272d9cdd4a4f97db30ca93f63bc08e270019888edb6 SHA512 7320a5c9111908d402fbb0c12a49eb359a6db645c0c86839793ebb1a5b75eaca7c85eb96851f3a0b4a68a2f06363c8189555afd4f1048a4a41447370eddd7e6a |
24 |
|
25 |
diff --git a/media-libs/sdl2-image/sdl2-image-2.0.4.ebuild b/media-libs/sdl2-image/sdl2-image-2.0.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..08cadf24d1c |
28 |
--- /dev/null |
29 |
+++ b/media-libs/sdl2-image/sdl2-image-2.0.4.ebuild |
30 |
@@ -0,0 +1,61 @@ |
31 |
+# Copyright 1999-2018 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit multilib multilib-minimal |
36 |
+ |
37 |
+MY_P="SDL2_image-${PV}" |
38 |
+DESCRIPTION="Image file loading library" |
39 |
+HOMEPAGE="http://www.libsdl.org/projects/SDL_image/" |
40 |
+SRC_URI="http://www.libsdl.org/projects/SDL_image/release/${MY_P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="ZLIB" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="gif jpeg png static-libs tiff webp" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ >=media-libs/libsdl2-2.0.1-r1[${MULTILIB_USEDEP}] |
49 |
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
50 |
+ png? ( >=media-libs/libpng-1.6.10:0[${MULTILIB_USEDEP}] ) |
51 |
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] ) |
52 |
+ tiff? ( >=media-libs/tiff-3.9.7-r1:0[${MULTILIB_USEDEP}] ) |
53 |
+ webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )" |
54 |
+DEPEND=${RDEPEND} |
55 |
+ |
56 |
+S="${WORKDIR}/${MY_P}" |
57 |
+ |
58 |
+multilib_src_configure() { |
59 |
+ local myeconfargs=( |
60 |
+ $(use_enable static-libs static) |
61 |
+ --disable-sdltest |
62 |
+ --enable-bmp |
63 |
+ $(use_enable gif) |
64 |
+ $(use_enable jpeg jpg) |
65 |
+ --disable-jpg-shared |
66 |
+ --enable-lbm |
67 |
+ --enable-pcx |
68 |
+ $(use_enable png) |
69 |
+ --disable-png-shared |
70 |
+ --enable-pnm |
71 |
+ --enable-tga |
72 |
+ $(use_enable tiff tif) |
73 |
+ --disable-tif-shared |
74 |
+ --enable-xcf |
75 |
+ --enable-xpm |
76 |
+ --enable-xv |
77 |
+ $(use_enable webp) |
78 |
+ --disable-webp-shared |
79 |
+ ) |
80 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
81 |
+} |
82 |
+ |
83 |
+multilib_src_install() { |
84 |
+ emake DESTDIR="${D}" install |
85 |
+ multilib_is_native_abi && newbin .libs/showimage$(get_exeext) showimage2$(get_exeext) |
86 |
+} |
87 |
+ |
88 |
+multilib_src_install_all() { |
89 |
+ dodoc {CHANGES,README}.txt |
90 |
+ find "${ED}" -name "*.la" -delete || die |
91 |
+} |