1 |
commit: 417ab27510281090e3febb947a82385513772d86 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 17 19:34:49 2023 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 17 19:39:57 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=417ab275 |
7 |
|
8 |
media-libs/imlib2: add 1.11.0 |
9 |
|
10 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
11 |
|
12 |
media-libs/imlib2/Manifest | 1 + |
13 |
media-libs/imlib2/imlib2-1.11.0.ebuild | 98 ++++++++++++++++++++++++++++++++++ |
14 |
media-libs/imlib2/metadata.xml | 3 ++ |
15 |
3 files changed, 102 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/imlib2/Manifest b/media-libs/imlib2/Manifest |
18 |
index ff0b58573b34..001f3a0a5cc7 100644 |
19 |
--- a/media-libs/imlib2/Manifest |
20 |
+++ b/media-libs/imlib2/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
+DIST imlib2-1.11.0.tar.xz 820368 BLAKE2B 2e1dec04c44ce14429910c0dd6b7b5173bc70e8968912c9c25e8b47d38fdfd6753c29de2e5a2ae0b0e6498550e207989ae927682b09032b637baf759744dfbec SHA512 2727b217ae18e1015591f2587f885a5a8d59471d6051f1aefb761329fd0fc979163e228154b2bff8728a3a2acc28437f189989d24a4d6e37bfc6f69445bd47e7 |
23 |
DIST imlib2-1.7.1.tar.bz2 893631 BLAKE2B 637bf70ea223a63c51def0fac4102683a090de41a1f5904d6232fd2fa004915e3dcde54eac51d16532d2df83a0f8df127266766ac3700ae2948d39fefef512b8 SHA512 36e457855da0f129c7e7ba3dfcb44162b6624b1d56df5f84448495a96fe9ad1ce3e6c628222630be7274476722c4feaa8e1648d1e463439ca758e66ce9645970 |
24 |
DIST imlib2-1.7.5.tar.xz 793124 BLAKE2B bc47f81aeb635ca2f3d4962e1be5c53111a25a88ccbfcd8f9a7c87717b256966ca6b8cd78fb897287dab656ef2ade41a0955f7d3770d6d670e675954f000cebb SHA512 6e0a79359d6cac297b7a074a75bf577c8c1e3932d9993616834ea9076a7df544fafcfa960fe8ed7468f1291533f3c828260ccb809a882dadb3f3650ba9dd3f28 |
25 |
DIST imlib2-1.9.1.tar.xz 813104 BLAKE2B ef7369d2285bd5b207f646ebb12492323203306c95786d8561a1191dbe489a8efe61975e4deed7bc9c8ed0ac24cf9bd826fa5a24095bc3d254e6f6d6379c8c8b SHA512 00eb8804a32e1403614e9f899f358dd9797f4bcfa7e9fdecd37992731019933e39834a60bd20be8fb69a35161ba1e784bd638b5ecb626d01a4f69c70c330e5f1 |
26 |
|
27 |
diff --git a/media-libs/imlib2/imlib2-1.11.0.ebuild b/media-libs/imlib2/imlib2-1.11.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..ec610580a755 |
30 |
--- /dev/null |
31 |
+++ b/media-libs/imlib2/imlib2-1.11.0.ebuild |
32 |
@@ -0,0 +1,98 @@ |
33 |
+# Copyright 1999-2023 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+# Must be bumped with media-plugins/imlib2_loaders! |
39 |
+ |
40 |
+inherit multilib-minimal toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="Version 2 of an advanced replacement library for libraries like libXpm" |
43 |
+HOMEPAGE="https://www.enlightenment.org/ |
44 |
+ https://sourceforge.net/projects/enlightenment/files/imlib2-src/" |
45 |
+SRC_URI="https://downloads.sourceforge.net/enlightenment/${P}.tar.xz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
50 |
+IUSE="+X apidoc bzip2 cpu_flags_x86_mmx cpu_flags_x86_sse2 debug |
51 |
+eps +filters +gif +jpeg jpeg2k jpegxl heif lzma mp3 packing +png |
52 |
++shm static-libs svg +text +tiff +webp zlib" |
53 |
+ |
54 |
+REQUIRED_USE="shm? ( X )" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ X? ( |
58 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
59 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
60 |
+ ) |
61 |
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) |
62 |
+ eps? ( app-text/libspectre ) |
63 |
+ gif? ( media-libs/giflib:=[${MULTILIB_USEDEP}] ) |
64 |
+ heif? ( media-libs/libheif:=[${MULTILIB_USEDEP}] ) |
65 |
+ jpeg2k? ( media-libs/openjpeg:=[${MULTILIB_USEDEP}] ) |
66 |
+ jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] ) |
67 |
+ jpegxl? ( media-libs/libjxl:=[${MULTILIB_USEDEP}] ) |
68 |
+ lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] ) |
69 |
+ media-libs/freetype:2[${MULTILIB_USEDEP}] |
70 |
+ mp3? ( media-libs/libid3tag:=[${MULTILIB_USEDEP}] ) |
71 |
+ png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] ) |
72 |
+ svg? ( >=gnome-base/librsvg-2.46.0:=[${MULTILIB_USEDEP}] ) |
73 |
+ tiff? ( >=media-libs/tiff-4.0.4:=[${MULTILIB_USEDEP}] ) |
74 |
+ webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] ) |
75 |
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) |
76 |
+ !<media-plugins/imlib2_loaders-1.10.0 |
77 |
+" |
78 |
+DEPEND="${RDEPEND} |
79 |
+ X? ( x11-base/xorg-proto )" |
80 |
+BDEPEND=" |
81 |
+ virtual/pkgconfig |
82 |
+ apidoc? ( app-doc/doxygen ) |
83 |
+" |
84 |
+ |
85 |
+# default DOCS will haul README.in we do not need |
86 |
+DOCS=( AUTHORS ChangeLog README TODO ) |
87 |
+ |
88 |
+multilib_src_configure() { |
89 |
+ local myeconfargs=( |
90 |
+ $(use_with X x) |
91 |
+ $(multilib_native_use_enable apidoc doc-build) |
92 |
+ $(use_with bzip2 bz2) |
93 |
+ $(use_enable debug) |
94 |
+ $(multilib_native_use_with eps ps) |
95 |
+ $(use_enable filters) |
96 |
+ $(use_with gif) |
97 |
+ $(use_with heif) |
98 |
+ $(use_with jpeg) |
99 |
+ $(use_with jpeg2k j2k) |
100 |
+ $(use_with jpegxl jxl) |
101 |
+ $(use_with lzma) |
102 |
+ $(use_with mp3 id3) |
103 |
+ $(use_enable packing) |
104 |
+ $(use_with png) |
105 |
+ $(use_with shm x-shm-fd) |
106 |
+ $(use_enable static-libs static) |
107 |
+ $(use_with svg) |
108 |
+ $(use_enable text) |
109 |
+ $(use_with tiff) |
110 |
+ $(use_with webp) |
111 |
+ $(use_with zlib) |
112 |
+ ) |
113 |
+ |
114 |
+ # imlib2 has different configure options for x86/amd64 assembly |
115 |
+ if [[ $(tc-arch) == amd64 ]]; then |
116 |
+ myeconfargs+=( $(use_enable cpu_flags_x86_sse2 amd64) --disable-mmx ) |
117 |
+ else |
118 |
+ myeconfargs+=( --disable-amd64 $(use_enable cpu_flags_x86_mmx mmx) ) |
119 |
+ fi |
120 |
+ |
121 |
+ ECONF_SOURCE="${S}" \ |
122 |
+ econf "${myeconfargs[@]}" |
123 |
+} |
124 |
+ |
125 |
+multilib_src_install() { |
126 |
+ V=1 emake install DESTDIR="${D}" |
127 |
+ find "${D}" -name '*.la' -delete || die |
128 |
+ multilib_is_native_abi && use apidoc && |
129 |
+ export HTML_DOCS=( "${BUILD_DIR}/doc/html/"* ) |
130 |
+} |
131 |
|
132 |
diff --git a/media-libs/imlib2/metadata.xml b/media-libs/imlib2/metadata.xml |
133 |
index 37e69c4d644c..a2de3cbe50f6 100644 |
134 |
--- a/media-libs/imlib2/metadata.xml |
135 |
+++ b/media-libs/imlib2/metadata.xml |
136 |
@@ -9,14 +9,17 @@ |
137 |
<flag name="X">Use the X window system</flag> |
138 |
<flag name="apidoc">Provide doxygen generated API docs</flag> |
139 |
<flag name="bzip2">Bzip2 loader support</flag> |
140 |
+ <flag name="filters">Build filter functions (blur, sharpen, etc)</flag> |
141 |
<flag name="gif">Gif image loader support</flag> |
142 |
<flag name="jpeg">Jpeg image loader support</flag> |
143 |
<flag name="heif">Heif and Avif image loader support</flag> |
144 |
<flag name="eps">Eps image loader support</flag> |
145 |
<flag name="jpegxl">Jxl image loader support</flag> |
146 |
<flag name="mp3">ID3 loader support</flag> |
147 |
+ <flag name="packing">Enable structure packing. This will reduce memory footprint at the cost of unaligned memory access</flag> |
148 |
<flag name="png">PNG image loader support</flag> |
149 |
<flag name="shm">Use MIT shared memory support for X image transfer</flag> |
150 |
+ <flag name="text">Build text (TrueType font) functions</flag> |
151 |
<flag name="tiff">TIFF image loader support</flag> |
152 |
<flag name="webp">WEBP image loader support</flag> |
153 |
<flag name="zlib">Zlib loader support</flag> |