1 |
commit: 031730462aad0a547bd1fc1a2561ad576801c32c |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 15 17:37:53 2022 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 15 17:46:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03173046 |
7 |
|
8 |
app-editors/emacs: Add webp flag for libwebp support |
9 |
|
10 |
Refactor dependencies and logic for image format USE flags, because they |
11 |
apply to all GUIs. |
12 |
|
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
15 |
|
16 |
app-editors/emacs/emacs-29.0.9999.ebuild | 114 +++++++++++++++++-------------- |
17 |
1 file changed, 61 insertions(+), 53 deletions(-) |
18 |
|
19 |
diff --git a/app-editors/emacs/emacs-29.0.9999.ebuild b/app-editors/emacs/emacs-29.0.9999.ebuild |
20 |
index 1a8fed50e60a..d1f2256d067f 100644 |
21 |
--- a/app-editors/emacs/emacs-29.0.9999.ebuild |
22 |
+++ b/app-editors/emacs/emacs-29.0.9999.ebuild |
23 |
@@ -40,7 +40,7 @@ DESCRIPTION="The extensible, customizable, self-documenting real-time display ed |
24 |
HOMEPAGE="https://www.gnu.org/software/emacs/" |
25 |
|
26 |
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2" |
27 |
-IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif +gmp gpm gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars wide-int Xaw3d xft +xpm xwidgets zlib" |
28 |
+IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif +gmp gpm gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars webp wide-int Xaw3d xft +xpm xwidgets zlib" |
29 |
RESTRICT="test" |
30 |
|
31 |
RDEPEND="app-emacs/emacs-common[games?,gui(-)?] |
32 |
@@ -63,65 +63,68 @@ RDEPEND="app-emacs/emacs-common[games?,gui(-)?] |
33 |
ssl? ( net-libs/gnutls:0= ) |
34 |
systemd? ( sys-apps/systemd ) |
35 |
zlib? ( sys-libs/zlib ) |
36 |
- gui? ( !aqua? ( |
37 |
- x11-libs/libICE |
38 |
- x11-libs/libSM |
39 |
- x11-libs/libX11 |
40 |
- x11-libs/libXext |
41 |
- x11-libs/libXfixes |
42 |
- x11-libs/libXinerama |
43 |
- x11-libs/libXrandr |
44 |
- x11-libs/libxcb |
45 |
- x11-misc/xbitmaps |
46 |
- gconf? ( >=gnome-base/gconf-2.26.2 ) |
47 |
- gsettings? ( >=dev-libs/glib-2.28.6 ) |
48 |
+ gui? ( |
49 |
gif? ( media-libs/giflib:0= ) |
50 |
jpeg? ( virtual/jpeg:0= ) |
51 |
png? ( >=media-libs/libpng-1.4:0= ) |
52 |
svg? ( >=gnome-base/librsvg-2.0 ) |
53 |
tiff? ( media-libs/tiff:0 ) |
54 |
- xpm? ( x11-libs/libXpm ) |
55 |
+ webp? ( media-libs/libwebp:0= ) |
56 |
imagemagick? ( >=media-gfx/imagemagick-6.6.2:0= ) |
57 |
- xft? ( |
58 |
- media-libs/fontconfig |
59 |
- media-libs/freetype |
60 |
- x11-libs/libXft |
61 |
- x11-libs/libXrender |
62 |
- cairo? ( >=x11-libs/cairo-1.12.18 ) |
63 |
- harfbuzz? ( media-libs/harfbuzz:0= ) |
64 |
- m17n-lib? ( |
65 |
- >=dev-libs/libotf-0.9.4 |
66 |
- >=dev-libs/m17n-lib-1.5.1 |
67 |
- ) |
68 |
- ) |
69 |
- gtk? ( |
70 |
- x11-libs/gtk+:3 |
71 |
- xwidgets? ( |
72 |
- net-libs/webkit-gtk:4= |
73 |
- x11-libs/libXcomposite |
74 |
+ !aqua? ( |
75 |
+ x11-libs/libICE |
76 |
+ x11-libs/libSM |
77 |
+ x11-libs/libX11 |
78 |
+ x11-libs/libXext |
79 |
+ x11-libs/libXfixes |
80 |
+ x11-libs/libXinerama |
81 |
+ x11-libs/libXrandr |
82 |
+ x11-libs/libxcb |
83 |
+ x11-misc/xbitmaps |
84 |
+ gconf? ( >=gnome-base/gconf-2.26.2 ) |
85 |
+ gsettings? ( >=dev-libs/glib-2.28.6 ) |
86 |
+ xpm? ( x11-libs/libXpm ) |
87 |
+ xft? ( |
88 |
+ media-libs/fontconfig |
89 |
+ media-libs/freetype |
90 |
+ x11-libs/libXft |
91 |
+ x11-libs/libXrender |
92 |
+ cairo? ( >=x11-libs/cairo-1.12.18 ) |
93 |
+ harfbuzz? ( media-libs/harfbuzz:0= ) |
94 |
+ m17n-lib? ( |
95 |
+ >=dev-libs/libotf-0.9.4 |
96 |
+ >=dev-libs/m17n-lib-1.5.1 |
97 |
+ ) |
98 |
) |
99 |
- ) |
100 |
- !gtk? ( |
101 |
- motif? ( |
102 |
- >=x11-libs/motif-2.3:0 |
103 |
- x11-libs/libXpm |
104 |
- x11-libs/libXmu |
105 |
- x11-libs/libXt |
106 |
+ gtk? ( |
107 |
+ x11-libs/gtk+:3 |
108 |
+ xwidgets? ( |
109 |
+ net-libs/webkit-gtk:4= |
110 |
+ x11-libs/libXcomposite |
111 |
+ ) |
112 |
) |
113 |
- !motif? ( |
114 |
- Xaw3d? ( |
115 |
- x11-libs/libXaw3d |
116 |
+ !gtk? ( |
117 |
+ motif? ( |
118 |
+ >=x11-libs/motif-2.3:0 |
119 |
+ x11-libs/libXpm |
120 |
x11-libs/libXmu |
121 |
x11-libs/libXt |
122 |
) |
123 |
- !Xaw3d? ( athena? ( |
124 |
- x11-libs/libXaw |
125 |
- x11-libs/libXmu |
126 |
- x11-libs/libXt |
127 |
- ) ) |
128 |
+ !motif? ( |
129 |
+ Xaw3d? ( |
130 |
+ x11-libs/libXaw3d |
131 |
+ x11-libs/libXmu |
132 |
+ x11-libs/libXt |
133 |
+ ) |
134 |
+ !Xaw3d? ( athena? ( |
135 |
+ x11-libs/libXaw |
136 |
+ x11-libs/libXmu |
137 |
+ x11-libs/libXt |
138 |
+ ) ) |
139 |
+ ) |
140 |
) |
141 |
) |
142 |
- ) )" |
143 |
+ )" |
144 |
|
145 |
DEPEND="${RDEPEND} |
146 |
gui? ( !aqua? ( x11-base/xorg-proto ) )" |
147 |
@@ -201,13 +204,7 @@ src_configure() { |
148 |
myconf+=" $(use_with gconf)" |
149 |
myconf+=" $(use_with gsettings)" |
150 |
myconf+=" $(use_with toolkit-scroll-bars)" |
151 |
- myconf+=" $(use_with gif)" |
152 |
- myconf+=" $(use_with jpeg)" |
153 |
- myconf+=" $(use_with png)" |
154 |
- myconf+=" $(use_with svg rsvg)" |
155 |
- myconf+=" $(use_with tiff)" |
156 |
myconf+=" $(use_with xpm)" |
157 |
- myconf+=" $(use_with imagemagick)" |
158 |
|
159 |
if use xft; then |
160 |
myconf+=" --with-xft" |
161 |
@@ -261,6 +258,17 @@ src_configure() { |
162 |
"USE flag \"xwidgets\" has no effect if \"gtk\" is not set." |
163 |
fi |
164 |
|
165 |
+ if use gui; then |
166 |
+ # Common flags recognised for all GUIs |
167 |
+ myconf+=" $(use_with gif)" |
168 |
+ myconf+=" $(use_with jpeg)" |
169 |
+ myconf+=" $(use_with png)" |
170 |
+ myconf+=" $(use_with svg rsvg)" |
171 |
+ myconf+=" $(use_with tiff)" |
172 |
+ myconf+=" $(use_with webp)" |
173 |
+ myconf+=" $(use_with imagemagick)" |
174 |
+ fi |
175 |
+ |
176 |
if tc-is-cross-compiler; then |
177 |
# Configure a CBUILD directory when cross-compiling to make tools |
178 |
mkdir "${S}-build" && pushd "${S}-build" >/dev/null || die |