Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 931203
Collapse All | Expand All

(-)a/emacs-29.3-r2.ebuild (-6 / +15 lines)
Lines 43-49 DESCRIPTION="The extensible, customizable, self-documenting real-time display ed Link Here
43
HOMEPAGE="https://www.gnu.org/software/emacs/"
43
HOMEPAGE="https://www.gnu.org/software/emacs/"
44
44
45
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
45
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
46
IUSE="acl alsa aqua athena cairo dbus dynamic-loading games 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 sqlite ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter valgrind webp wide-int +X Xaw3d xft +xpm xwidgets zlib"
46
IUSE="acl alsa aqua athena cairo dbus dynamic-loading games 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 sqlite ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter valgrind wayland webp wide-int +X Xaw3d xft +xpm xwidgets zlib"
47
48
REQUIRED_USE="
49
	gui? ( ^^ ( aqua wayland X ) )
50
	gtk? ( || ( wayland X ) )
51
"
47
52
48
X_DEPEND="x11-libs/libICE
53
X_DEPEND="x11-libs/libICE
49
	x11-libs/libSM
54
	x11-libs/libSM
Lines 249-255 src_configure() { Link Here
249
	# General GUI support is enabled by the "gui" USE flag, then
254
	# General GUI support is enabled by the "gui" USE flag, then
250
	# the window system is selected as follows:
255
	# the window system is selected as follows:
251
	#   "aqua" -> Nextstep
256
	#   "aqua" -> Nextstep
252
	#   "gtk -X" -> pure GTK
257
	#   "wayland" -> pure GTK
253
	#   otherwise -> X11
258
	#   otherwise -> X11
254
	# For X11 there is the further choice of toolkits GTK, Motif,
259
	# For X11 there is the further choice of toolkits GTK, Motif,
255
	# Athena (Lucid), or no toolkit. They are enabled (in order of
260
	# Athena (Lucid), or no toolkit. They are enabled (in order of
Lines 262-270 src_configure() { Link Here
262
		einfo "Configuring to build with Nextstep (Macintosh Cocoa) support"
267
		einfo "Configuring to build with Nextstep (Macintosh Cocoa) support"
263
		myconf+=" --with-ns --disable-ns-self-contained"
268
		myconf+=" --with-ns --disable-ns-self-contained"
264
		myconf+=" --without-x --without-pgtk"
269
		myconf+=" --without-x --without-pgtk"
265
	elif use gtk && ! use X; then
270
	elif use wayland; then
266
		einfo "Configuring to build with pure GTK (without X11) support"
271
		einfo "Configuring to build with pure GTK support"
267
		myconf+=" --with-pgtk --without-x --without-ns"
272
		myconf+=" --with-pgtk"  # assumes pgtk is required for native wayland support
273
		myconf+=" $(use_with X)"  # Xwayland
274
		myconf+=" --without-ns"
268
		myconf+=" --with-toolkit-scroll-bars" #836392
275
		myconf+=" --with-toolkit-scroll-bars" #836392
269
		myconf+=" --without-gconf"
276
		myconf+=" --without-gconf"
270
		myconf+=" $(use_with gsettings)"
277
		myconf+=" $(use_with gsettings)"
Lines 272-278 src_configure() { Link Here
272
		myconf+=" $(use_with m17n-lib libotf)"
279
		myconf+=" $(use_with m17n-lib libotf)"
273
		myconf+=" $(use_with m17n-lib m17n-flt)"
280
		myconf+=" $(use_with m17n-lib m17n-flt)"
274
		myconf+=" $(use_with xwidgets)"
281
		myconf+=" $(use_with xwidgets)"
275
	else
282
	elif use X; then
276
		# X11
283
		# X11
277
		myconf+=" --with-x --without-pgtk --without-ns"
284
		myconf+=" --with-x --without-pgtk --without-ns"
278
		myconf+=" --without-gconf"
285
		myconf+=" --without-gconf"
Lines 330-335 src_configure() { Link Here
330
		fi
337
		fi
331
		! use gtk && use xwidgets && ewarn \
338
		! use gtk && use xwidgets && ewarn \
332
			"USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
339
			"USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
340
	elif use gtk || use gui; then
341
		eerror "Requested window system support, but all supported ones were disabled"
333
	fi
342
	fi
334
343
335
	if use gui; then
344
	if use gui; then

Return to bug 931203