Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/emacs/
Date: Thu, 23 Aug 2018 17:08:54
Message-Id: 1535044117.6784708d340a364ea695a4d26f9d2858e92ff34e.ulm@gentoo
1 commit: 6784708d340a364ea695a4d26f9d2858e92ff34e
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 23 17:06:17 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 23 17:08:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6784708d
7
8 app-editors/emacs: Reorganise gtk* flags.
9
10 As discussed with leio in #gentoo-dev and in #gentoo-qa.
11 - USE="gtk -gtk2" for GTK+ version 3,
12 - USE="gtk gtk2" for GTK+ version 2,
13 - USE="-gtk" for no GTK+ (the "gtk2" flag has no effect).
14
15 Package-Manager: Portage-2.3.48, Repoman-2.3.10
16
17 app-editors/emacs/emacs-24.5-r6.ebuild | 8 ++--
18 app-editors/emacs/emacs-25.3-r5.ebuild | 16 +++-----
19 .../{emacs-25.3-r5.ebuild => emacs-26.1-r2.ebuild} | 47 ++++++++++++++--------
20 app-editors/emacs/metadata.xml | 2 +
21 4 files changed, 42 insertions(+), 31 deletions(-)
22
23 diff --git a/app-editors/emacs/emacs-24.5-r6.ebuild b/app-editors/emacs/emacs-24.5-r6.ebuild
24 index 60e4ab07cbd..3babea9437c 100644
25 --- a/app-editors/emacs/emacs-24.5-r6.ebuild
26 +++ b/app-editors/emacs/emacs-24.5-r6.ebuild
27 @@ -13,7 +13,7 @@ SRC_URI="mirror://gnu/emacs/${P}.tar.xz
28 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
29 SLOT="24"
30 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
31 -IUSE="acl alsa aqua athena dbus games gconf gfile gif gpm gsettings gtk +gtk3 gzip-el imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif png selinux sound source ssl svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm zlib"
32 +IUSE="acl alsa aqua athena dbus games gconf gfile gif gpm gsettings gtk gtk2 gzip-el imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif png selinux sound source ssl svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm zlib"
33 REQUIRED_USE="?? ( aqua X )"
34
35 RDEPEND="sys-libs/ncurses:0=
36 @@ -58,8 +58,8 @@ RDEPEND="sys-libs/ncurses:0=
37 )
38 )
39 gtk? (
40 - gtk3? ( x11-libs/gtk+:3 )
41 - !gtk3? ( x11-libs/gtk+:2 )
42 + gtk2? ( x11-libs/gtk+:2 )
43 + !gtk2? ( x11-libs/gtk+:3 )
44 )
45 !gtk? (
46 motif? (
47 @@ -175,7 +175,7 @@ src_configure() {
48 recommended that you compile Emacs with the Athena/Lucid or the
49 Motif toolkit instead.
50 EOF
51 - myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
52 + myconf+=" --with-x-toolkit=$(usex gtk2 gtk2 gtk3)"
53 for f in motif Xaw3d athena; do
54 use ${f} && ewarn \
55 "USE flag \"${f}\" has no effect if \"gtk\" is set."
56
57 diff --git a/app-editors/emacs/emacs-25.3-r5.ebuild b/app-editors/emacs/emacs-25.3-r5.ebuild
58 index 7d43a6b1ab3..ad5be25089c 100644
59 --- a/app-editors/emacs/emacs-25.3-r5.ebuild
60 +++ b/app-editors/emacs/emacs-25.3-r5.ebuild
61 @@ -13,7 +13,7 @@ SRC_URI="mirror://gnu/emacs/${P}.tar.xz
62 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
63 SLOT="25"
64 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
65 -IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk +gtk3 gzip-el imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif png selinux sound source ssl svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm zlib"
66 +IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk gtk2 gzip-el imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif png selinux sound source ssl svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm zlib"
67 REQUIRED_USE="?? ( aqua X )"
68
69 RDEPEND="sys-libs/ncurses:0=
70 @@ -61,8 +61,8 @@ RDEPEND="sys-libs/ncurses:0=
71 )
72 )
73 gtk? (
74 - gtk3? ( x11-libs/gtk+:3 )
75 - !gtk3? ( x11-libs/gtk+:2 )
76 + gtk2? ( x11-libs/gtk+:2 )
77 + !gtk2? ( x11-libs/gtk+:3 )
78 )
79 !gtk? (
80 motif? (
81 @@ -181,12 +181,8 @@ src_configure() {
82 recommended that you compile Emacs with the Athena/Lucid or the
83 Motif toolkit instead.
84 EOF
85 - #if use xwidgets; then
86 - # myconf+=" --with-x-toolkit=gtk3 --with-xwidgets"
87 - #else
88 - myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
89 - myconf+=" --without-xwidgets"
90 - #fi
91 + myconf+=" --with-x-toolkit=$(usex gtk2 gtk2 gtk3)"
92 + myconf+=" --without-xwidgets"
93 for f in motif Xaw3d athena; do
94 use ${f} && ewarn \
95 "USE flag \"${f}\" has no effect if \"gtk\" is set."
96 @@ -205,8 +201,6 @@ src_configure() {
97 einfo "Configuring to build with no toolkit"
98 myconf+=" --with-x-toolkit=no"
99 fi
100 - #! use gtk && use xwidgets && ewarn \
101 - # "USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
102 elif use aqua; then
103 einfo "Configuring to build with Nextstep (Cocoa) support"
104 myconf+=" --with-ns --disable-ns-self-contained"
105
106 diff --git a/app-editors/emacs/emacs-25.3-r5.ebuild b/app-editors/emacs/emacs-26.1-r2.ebuild
107 similarity index 89%
108 copy from app-editors/emacs/emacs-25.3-r5.ebuild
109 copy to app-editors/emacs/emacs-26.1-r2.ebuild
110 index 7d43a6b1ab3..123cb6e277c 100644
111 --- a/app-editors/emacs/emacs-25.3-r5.ebuild
112 +++ b/app-editors/emacs/emacs-26.1-r2.ebuild
113 @@ -11,24 +11,27 @@ SRC_URI="mirror://gnu/emacs/${P}.tar.xz
114 https://dev.gentoo.org/~ulm/emacs/${P}-patches-1.tar.xz"
115
116 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
117 -SLOT="25"
118 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
119 -IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk +gtk3 gzip-el imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif png selinux sound source ssl svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm zlib"
120 +SLOT="26"
121 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
122 +IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk gtk2 gzip-el imagemagick +inotify jpeg kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm xwidgets zlib"
123 REQUIRED_USE="?? ( aqua X )"
124
125 RDEPEND="sys-libs/ncurses:0=
126 >=app-eselect/eselect-emacs-1.16
127 >=app-emacs/emacs-common-gentoo-1.5[games?,X?]
128 - net-libs/liblockfile
129 acl? ( virtual/acl )
130 alsa? ( media-libs/alsa-lib )
131 dbus? ( sys-apps/dbus )
132 gpm? ( sys-libs/gpm )
133 !inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
134 kerberos? ( virtual/krb5 )
135 + lcms? ( media-libs/lcms:2 )
136 libxml2? ( >=dev-libs/libxml2-2.2.0 )
137 + mailutils? ( net-mail/mailutils[clients] )
138 + !mailutils? ( net-libs/liblockfile )
139 selinux? ( sys-libs/libselinux )
140 ssl? ( net-libs/gnutls:0= )
141 + systemd? ( sys-apps/systemd )
142 zlib? ( sys-libs/zlib )
143 X? (
144 x11-libs/libICE
145 @@ -61,8 +64,14 @@ RDEPEND="sys-libs/ncurses:0=
146 )
147 )
148 gtk? (
149 - gtk3? ( x11-libs/gtk+:3 )
150 - !gtk3? ( x11-libs/gtk+:2 )
151 + gtk2? ( x11-libs/gtk+:2 )
152 + !gtk2? (
153 + x11-libs/gtk+:3
154 + xwidgets? (
155 + net-libs/webkit-gtk:4=
156 + x11-libs/libXcomposite
157 + )
158 + )
159 )
160 !gtk? (
161 motif? (
162 @@ -113,7 +122,6 @@ src_prepare() {
163 || die "unable to sed ctags.1"
164
165 #AT_M4DIR=m4 eautoreconf
166 - #touch src/stamp-h.in || die
167 }
168
169 src_configure() {
170 @@ -181,12 +189,13 @@ src_configure() {
171 recommended that you compile Emacs with the Athena/Lucid or the
172 Motif toolkit instead.
173 EOF
174 - #if use xwidgets; then
175 - # myconf+=" --with-x-toolkit=gtk3 --with-xwidgets"
176 - #else
177 - myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
178 - myconf+=" --without-xwidgets"
179 - #fi
180 + if use gtk2; then
181 + myconf+=" --with-x-toolkit=gtk2 --without-xwidgets"
182 + use xwidgets && ewarn \
183 + "USE flag \"xwidgets\" has no effect if \"gtk2\" is set."
184 + else
185 + myconf+=" --with-x-toolkit=gtk3 $(use_with xwidgets)"
186 + fi
187 for f in motif Xaw3d athena; do
188 use ${f} && ewarn \
189 "USE flag \"${f}\" has no effect if \"gtk\" is set."
190 @@ -205,8 +214,8 @@ src_configure() {
191 einfo "Configuring to build with no toolkit"
192 myconf+=" --with-x-toolkit=no"
193 fi
194 - #! use gtk && use xwidgets && ewarn \
195 - # "USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
196 + ! use gtk && use xwidgets && ewarn \
197 + "USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
198 elif use aqua; then
199 einfo "Configuring to build with Nextstep (Cocoa) support"
200 myconf+=" --with-ns --disable-ns-self-contained"
201 @@ -220,18 +229,23 @@ src_configure() {
202 --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
203 --localstatedir="${EPREFIX}"/var \
204 --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
205 - --with-gameuser=":gamestat" \
206 --without-compress-install \
207 --without-hesiod \
208 + --without-pop \
209 --with-file-notification=$(usev inotify || usev gfile || echo no) \
210 $(use_enable acl) \
211 $(use_with dbus) \
212 $(use_with dynamic-loading modules) \
213 + $(use_with games gameuser ":gamestat") \
214 $(use_with gpm) \
215 $(use_with kerberos) $(use_with kerberos kerberos5) \
216 + $(use_with lcms lcms2) \
217 $(use_with libxml2 xml2) \
218 + $(use_with mailutils) \
219 $(use_with selinux) \
220 $(use_with ssl gnutls) \
221 + $(use_with systemd libsystemd) \
222 + $(use_with threads) \
223 $(use_with wide-int) \
224 $(use_with zlib) \
225 ${myconf}
226 @@ -259,6 +273,7 @@ src_install () {
227 # avoid collision between slots, see bug #169033 e.g.
228 rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
229 rm -rf "${ED}"/usr/share/{appdata,applications,icons}
230 + rm -rf "${ED}/usr/$(get_libdir)"
231 rm -rf "${ED}"/var
232
233 # remove unused <version>/site-lisp dir
234
235 diff --git a/app-editors/emacs/metadata.xml b/app-editors/emacs/metadata.xml
236 index b3f71c734b1..c03b6b3d083 100644
237 --- a/app-editors/emacs/metadata.xml
238 +++ b/app-editors/emacs/metadata.xml
239 @@ -31,6 +31,8 @@
240 notification</flag>
241 <flag name="gsettings">Use gsettings (<pkg>dev-libs/glib</pkg>) to read the
242 system font name</flag>
243 + <flag name="gtk2">Prefer version 2 of the GIMP Toolkit to version 3
244 + (<pkg>x11-libs/gtk+</pkg>)</flag>
245 <flag name="gtk3">Prefer version 3 of the GIMP Toolkit to version 2
246 (<pkg>x11-libs/gtk+</pkg>)</flag>
247 <flag name="gzip-el">Compress bundled Emacs Lisp source</flag>