Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/emacs:master commit in: app-editors/emacs-xwidget/
Date: Sun, 01 Feb 2015 21:31:57
Message-Id: 1422826277.6d994cfe3e5eaa1b3624452c60f7b7c6ba9b2c48.ulm@gentoo
1 commit: 6d994cfe3e5eaa1b3624452c60f7b7c6ba9b2c48
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 1 21:31:17 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 1 21:31:17 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=6d994cfe
7
8 Revert "app-editors/emacs-xwidget: Remove package, the xwidget branch has been merged to master."
9
10 This reverts commit 2607fdefd97e80f126e9781022ede0c94cdec670.
11
12 ---
13 app-editors/emacs-xwidget/ChangeLog | 87 +++++
14 .../emacs-xwidget/emacs-xwidget-25.0.9999.ebuild | 375 +++++++++++++++++++++
15 app-editors/emacs-xwidget/metadata.xml | 48 +++
16 3 files changed, 510 insertions(+)
17
18 diff --git a/app-editors/emacs-xwidget/ChangeLog b/app-editors/emacs-xwidget/ChangeLog
19 new file mode 100644
20 index 0000000..1cec23c
21 --- /dev/null
22 +++ b/app-editors/emacs-xwidget/ChangeLog
23 @@ -0,0 +1,87 @@
24 +# ChangeLog for app-editors/emacs-xwidget
25 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: $
27 +
28 + 29 Dec 2014; Ulrich Müller <ulm@g.o> emacs-xwidget-25.0.9999.ebuild:
29 + Set a fake version number to avoid collisions with emacs-vcs.
30 +
31 +*emacs-xwidget-25.0.9999 (29 Dec 2014)
32 +
33 + 29 Dec 2014; Ulrich Müller <ulm@g.o> -emacs-xwidget-24.4.9999.ebuild,
34 + +emacs-xwidget-25.0.9999.ebuild:
35 + Upstream version number has changed. Merge changes from emacs-vcs.
36 +
37 + 13 Nov 2014; Ulrich Müller <ulm@g.o> emacs-xwidget-24.4.9999.ebuild:
38 + Merge changes from emacs-vcs.
39 +
40 +*emacs-xwidget-24.4.9999 (07 Jun 2014)
41 +
42 + 07 Jun 2014; Ulrich Müller <ulm@g.o> -emacs-xwidget-24.3.9999.ebuild,
43 + +emacs-xwidget-24.4.9999.ebuild:
44 + Upstream version number has changed.
45 +
46 + 06 May 2014; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
47 + Merge changes from emacs-vcs.
48 +
49 + 13 Mar 2014; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
50 + Merge changes from emacs-vcs.
51 +
52 + 19 Feb 2014; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
53 + Merge changes from emacs-vcs.
54 +
55 + 19 Jan 2014; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
56 + Merge changes from emacs-vcs.
57 +
58 + 19 Jan 2014; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
59 + Switch from package.mask to empty KEYWORDS.
60 +
61 + 16 Jul 2013; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
62 + Install README.xwidget.
63 +
64 + 14 Jul 2013; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
65 + Merge changes from emacs-vcs.
66 +
67 + 15 Jun 2013; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild,
68 + metadata.xml:
69 + Merge changes from emacs-vcs.
70 +
71 + 08 Jun 2013; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
72 + Merge some changes from emacs-vcs.
73 +
74 + 31 Mar 2013; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild:
75 + Merge changes from Portage tree.
76 +
77 + 27 Mar 2013; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild,
78 + metadata.xml:
79 + Merge changes from emacs-vcs.
80 +
81 + 21 Mar 2013; Ulrich Müller <ulm@g.o> emacs-xwidget-24.3.9999.ebuild,
82 + metadata.xml:
83 + Merge changes from emacs-vcs.
84 +
85 +*emacs-xwidget-24.3.9999 (17 Nov 2012)
86 +
87 + 17 Nov 2012; Ulrich Müller <ulm@g.o> -emacs-xwidget-24.2.9999.ebuild,
88 + +emacs-xwidget-24.3.9999.ebuild:
89 + Version number has changed upstream.
90 +
91 + 24 Oct 2012; Ulrich Müller <ulm@g.o> emacs-xwidget-24.2.9999.ebuild:
92 + Update dependency after package move from x11-libs/openmotif to
93 + x11-libs/motif.
94 +
95 + 05 Oct 2012; Ulrich Müller <ulm@g.o> emacs-xwidget-24.2.9999.ebuild:
96 + With USE=xwidgets, add webkit-gtk as dependency and enable gtk3. Drop ~hppa
97 + and ~sh keywords.
98 +
99 +*emacs-xwidget-24.2.9999 (04 Oct 2012)
100 +
101 + 04 Oct 2012; Ulrich Müller <ulm@g.o> -emacs-xwidget-24.0.9999.ebuild,
102 + +emacs-xwidget-24.2.9999.ebuild, metadata.xml:
103 + Update from emacs-vcs ebuild.
104 +
105 +*emacs-xwidget-24.0.9999 (30 Sep 2011)
106 +
107 + 30 Sep 2011; Ulrich Mueller <ulm@g.o> +emacs-xwidget-24.0.9999.ebuild,
108 + +metadata.xml:
109 + Emacs xwidget branch.
110 +
111
112 diff --git a/app-editors/emacs-xwidget/emacs-xwidget-25.0.9999.ebuild b/app-editors/emacs-xwidget/emacs-xwidget-25.0.9999.ebuild
113 new file mode 100644
114 index 0000000..7ae4df6
115 --- /dev/null
116 +++ b/app-editors/emacs-xwidget/emacs-xwidget-25.0.9999.ebuild
117 @@ -0,0 +1,375 @@
118 +# Copyright 1999-2014 Gentoo Foundation
119 +# Distributed under the terms of the GNU General Public License v2
120 +# $Header: $
121 +
122 +EAPI=5
123 +
124 +inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
125 +
126 +if [[ ${PV##*.} = 9999 ]]; then
127 + inherit git-r3
128 + EGIT_REPO_URI="git://git.sv.gnu.org/emacs.git"
129 + EGIT_BRANCH="xwidget"
130 + EGIT_CHECKOUT_DIR="${WORKDIR}/emacs"
131 + S="${EGIT_CHECKOUT_DIR}"
132 +else
133 + SRC_URI="http://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz
134 + mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz"
135 + # FULL_VERSION keeps the full version number, which is needed in
136 + # order to determine some path information correctly for copy/move
137 + # operations later on
138 + FULL_VERSION="${PV%%_*}"
139 + S="${WORKDIR}/emacs-${FULL_VERSION}"
140 +fi
141 +
142 +DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
143 +HOMEPAGE="http://www.gnu.org/software/emacs/
144 + http://www.emacswiki.org/emacs/EmacsXembed"
145 +
146 +LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
147 +SLOT="25"
148 +IUSE="acl alsa aqua athena dbus games gconf gfile gif gnutls gpm gsettings gtk gtk3 gzip-el hesiod imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm xwidgets zlib"
149 +REQUIRED_USE="?? ( aqua X )"
150 +
151 +RDEPEND="sys-libs/ncurses
152 + >=app-admin/eselect-emacs-1.16
153 + >=app-emacs/emacs-common-gentoo-1.4-r1[games?,X?]
154 + net-libs/liblockfile
155 + acl? ( virtual/acl )
156 + alsa? ( media-libs/alsa-lib )
157 + dbus? ( sys-apps/dbus )
158 + gfile? ( >=dev-libs/glib-2.28.6 )
159 + gnutls? ( net-libs/gnutls )
160 + gpm? ( sys-libs/gpm )
161 + hesiod? ( net-dns/hesiod )
162 + kerberos? ( virtual/krb5 )
163 + libxml2? ( >=dev-libs/libxml2-2.2.0 )
164 + selinux? ( sys-libs/libselinux )
165 + zlib? ( sys-libs/zlib )
166 + X? (
167 + x11-libs/libXmu
168 + x11-libs/libXt
169 + x11-misc/xbitmaps
170 + gconf? ( >=gnome-base/gconf-2.26.2 )
171 + gsettings? ( >=dev-libs/glib-2.28.6 )
172 + gif? ( media-libs/giflib )
173 + jpeg? ( virtual/jpeg:0= )
174 + png? ( >=media-libs/libpng-1.4:0= )
175 + svg? ( >=gnome-base/librsvg-2.0 )
176 + tiff? ( media-libs/tiff )
177 + xpm? ( x11-libs/libXpm )
178 + imagemagick? ( >=media-gfx/imagemagick-6.6.2 )
179 + xft? (
180 + media-libs/fontconfig
181 + media-libs/freetype
182 + x11-libs/libXft
183 + m17n-lib? (
184 + >=dev-libs/libotf-0.9.4
185 + >=dev-libs/m17n-lib-1.5.1
186 + )
187 + )
188 + gtk3? (
189 + x11-libs/gtk+:3
190 + xwidgets? (
191 + >=dev-libs/gobject-introspection-1.32.1
192 + net-libs/webkit-gtk:3
193 + )
194 + )
195 + !gtk3? (
196 + gtk? ( x11-libs/gtk+:2 )
197 + !gtk? (
198 + motif? ( >=x11-libs/motif-2.3:0 )
199 + !motif? (
200 + Xaw3d? ( x11-libs/libXaw3d )
201 + !Xaw3d? ( athena? ( x11-libs/libXaw ) )
202 + )
203 + )
204 + )
205 + )"
206 +
207 +DEPEND="${RDEPEND}
208 + virtual/pkgconfig
209 + gzip-el? ( app-arch/gzip )
210 + pax_kernel? (
211 + sys-apps/attr
212 + sys-apps/paxctl
213 + )"
214 +
215 +if [[ ${PV##*.} = 9999 ]]; then
216 + DEPEND="${DEPEND}
217 + sys-apps/texinfo"
218 +fi
219 +
220 +EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
221 +SITEFILE="20${PN}-${SLOT}-gentoo.el"
222 +
223 +src_prepare() {
224 + # set a fake version number to avoid collisions with emacs-vcs
225 + sed -i -e "/AC_INIT/s/\(25\.[0-9]*\)\.[0-9]*/\1.60/" configure.ac
226 +
227 + if [[ ${PV##*.} = 9999 ]]; then
228 + FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \
229 + configure.ac)
230 + [[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version"
231 + einfo "Emacs branch: ${EGIT_BRANCH}"
232 + einfo "Commit: ${EGIT_VERSION}"
233 + einfo "Emacs version number: ${FULL_VERSION}"
234 + [[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \
235 + || die "Upstream version number changed to ${FULL_VERSION}"
236 + fi
237 +
238 + epatch_user
239 +
240 + # Fix filename reference in redirected man page
241 + sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
242 + || die "unable to sed ctags.1"
243 +
244 + AT_M4DIR=m4 eautoreconf
245 +}
246 +
247 +src_configure() {
248 + strip-flags
249 + filter-flags -pie #526948
250 +
251 + if use sh; then
252 + replace-flags "-O[1-9]" -O0 #262359
253 + elif use ia64; then
254 + replace-flags "-O[2-9]" -O1 #325373
255 + else
256 + replace-flags "-O[3-9]" -O2
257 + fi
258 +
259 + local myconf
260 +
261 + if use alsa; then
262 + use sound || ewarn \
263 + "USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
264 + myconf+=" --with-sound=alsa"
265 + else
266 + myconf+=" --with-sound=$(usex sound oss)"
267 + fi
268 +
269 + if use X; then
270 + myconf+=" --with-x --without-ns"
271 + myconf+=" $(use_with gconf)"
272 + myconf+=" $(use_with gsettings)"
273 + myconf+=" $(use_with toolkit-scroll-bars)"
274 + myconf+=" $(use_with gif)"
275 + myconf+=" $(use_with jpeg)"
276 + myconf+=" $(use_with png)"
277 + myconf+=" $(use_with svg rsvg)"
278 + myconf+=" $(use_with tiff)"
279 + myconf+=" $(use_with xpm)"
280 + myconf+=" $(use_with imagemagick)"
281 +
282 + if use xft; then
283 + myconf+=" --with-xft"
284 + myconf+=" $(use_with m17n-lib libotf)"
285 + myconf+=" $(use_with m17n-lib m17n-flt)"
286 + else
287 + myconf+=" --without-xft"
288 + myconf+=" --without-libotf --without-m17n-flt"
289 + use m17n-lib && ewarn \
290 + "USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
291 + fi
292 +
293 + if use gtk3; then
294 + einfo "Configuring to build with GIMP Toolkit (GTK+) version 3"
295 + myconf+=" --with-x-toolkit=gtk3 $(use_with xwidgets)"
296 + elif use gtk; then
297 + einfo "Configuring to build with GIMP Toolkit (GTK+) version 2"
298 + myconf+=" --with-x-toolkit=gtk2"
299 + elif use motif; then
300 + einfo "Configuring to build with Motif toolkit"
301 + myconf+=" --with-x-toolkit=motif"
302 + elif use athena || use Xaw3d; then
303 + einfo "Configuring to build with Athena/Lucid toolkit"
304 + myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
305 + else
306 + einfo "Configuring to build with no toolkit"
307 + myconf+=" --with-x-toolkit=no"
308 + fi
309 +
310 + local f tk
311 + for f in gtk3 gtk motif Xaw3d athena; do
312 + use ${f} || continue
313 + [[ ${tk} = gtk* || ${tk} = motif ]] \
314 + && ewarn "USE flag \"${f}\" ignored (superseded by \"${tk}\")"
315 + : ${tk:=${f}}
316 + done
317 + ! use gtk3 && use xwidgets && ewarn \
318 + "USE flag \"xwidgets\" has no effect if \"gtk3\" is not set."
319 + elif use aqua; then
320 + einfo "Configuring to build with Nextstep (Cocoa) support"
321 + myconf+=" --with-ns --disable-ns-self-contained"
322 + myconf+=" --without-x"
323 + else
324 + myconf+=" --without-x --without-ns"
325 + fi
326 +
327 + # Save version information in the Emacs binary. It will be available
328 + # in variable "system-configuration-options".
329 + myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
330 + if [[ ${PV##*.} = 9999 ]]; then
331 + myconf+=" EGIT_BRANCH=${EGIT_BRANCH} EGIT_VERSION=${EGIT_VERSION}"
332 + fi
333 +
334 + econf \
335 + --program-suffix="-${EMACS_SUFFIX}" \
336 + --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
337 + --localstatedir="${EPREFIX}"/var \
338 + --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
339 + --with-gameuser="${GAMES_USER_DED:-games}" \
340 + --without-compress-install \
341 + --with-file-notification=$(usev gfile || usev inotify || echo no) \
342 + $(use_enable acl) \
343 + $(use_with dbus) \
344 + $(use_with gnutls) \
345 + $(use_with gpm) \
346 + $(use_with hesiod) \
347 + $(use_with kerberos) $(use_with kerberos kerberos5) \
348 + $(use_with libxml2 xml2) \
349 + $(use_with selinux) \
350 + $(use_with wide-int) \
351 + $(use_with zlib) \
352 + ${myconf}
353 +}
354 +
355 +src_compile() {
356 + export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
357 + emake
358 +}
359 +
360 +src_install () {
361 + emake DESTDIR="${D}" NO_BIN_LINK=t install
362 +
363 + mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \
364 + || die "moving emacs executable failed"
365 + mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \
366 + || die "moving emacs man page failed"
367 +
368 + # move info dir to avoid collisions with the dir file generated by portage
369 + mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
370 + || die "moving info dir failed"
371 + touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
372 + docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
373 +
374 + # avoid collision between slots, see bug #169033 e.g.
375 + rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
376 + rm -rf "${ED}"/usr/share/{appdata,applications,icons}
377 + rm -rf "${ED}"/var
378 +
379 + # remove unused <version>/site-lisp dir
380 + rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
381 +
382 + # remove COPYING file (except for etc/COPYING used by describe-copying)
383 + rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING
384 +
385 + if use gzip-el; then
386 + # compress .el files when a corresponding .elc exists
387 + find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
388 + -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
389 + assert "gzip .el failed"
390 + fi
391 +
392 + local cdir
393 + if use source; then
394 + cdir="/usr/share/emacs/${FULL_VERSION}/src"
395 + insinto "${cdir}"
396 + # This is not meant to install all the source -- just the
397 + # C source you might find via find-function
398 + doins src/*.{c,h,m}
399 + elif has installsources ${FEATURES}; then
400 + cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
401 + fi
402 +
403 + sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF
404 + X
405 + ;;; ${PN}-${SLOT} site-lisp configuration
406 + X
407 + (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
408 + Y (setq find-function-C-source-directory
409 + Y "${EPREFIX}${cdir}")
410 + X (let ((path (getenv "INFOPATH"))
411 + X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
412 + X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
413 + X (and path
414 + X ;; move Emacs Info dir before anything else in /usr/share/info
415 + X (let* ((p (cons nil (split-string path ":" t))) (q p))
416 + X (while (and (cdr q) (not (string-match re (cadr q))))
417 + X (setq q (cdr q)))
418 + X (setcdr q (cons dir (delete dir (cdr q))))
419 + X (setq Info-directory-list (prune-directory-list (cdr p)))))))
420 + EOF
421 + elisp-site-file-install "${T}/${SITEFILE}" || die
422 +
423 + dodoc README README.xwidget BUGS CONTRIBUTE
424 +
425 + if use aqua; then
426 + dodir /Applications/Gentoo
427 + rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
428 + mv nextstep/Emacs.app \
429 + "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
430 + fi
431 +
432 + DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
433 + through the Emacs eselect module, which also redirects man and info
434 + pages. Therefore, several Emacs versions can be installed at the
435 + same time. \"man emacs.eselect\" for details.
436 + \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
437 + strongly recommended that you use app-admin/emacs-updater to rebuild
438 + all byte-compiled elisp files of the installed Emacs packages."
439 + use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
440 + Installing media-fonts/font-adobe-{75,100}dpi on the X server's
441 + machine would satisfy basic Emacs requirements under X11.
442 + See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
443 + for how to enable anti-aliased fonts."
444 + use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
445 + \"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink
446 + it into /Applications by yourself."
447 + readme.gentoo_create_doc
448 +}
449 +
450 +pkg_preinst() {
451 + # move Info dir file to correct name
452 + local infodir=/usr/share/info/${EMACS_SUFFIX} f
453 + if [[ -f ${ED}${infodir}/dir.orig ]]; then
454 + mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
455 + elif [[ -d "${ED}"${infodir} ]]; then
456 + # this should not happen in EAPI 4
457 + ewarn "Regenerating Info directory index in ${infodir} ..."
458 + rm -f "${ED}"${infodir}/dir{,.*}
459 + for f in "${ED}"${infodir}/*; do
460 + if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
461 + install-info --info-dir="${ED}"${infodir} "${f}" \
462 + || die "install-info failed"
463 + fi
464 + done
465 + fi
466 +}
467 +
468 +pkg_postinst() {
469 + elisp-site-regen
470 +
471 + local pvr
472 + for pvr in ${REPLACING_VERSIONS}; do
473 + [[ ${pvr%%[-_]*} = 24.[12] ]] && FORCE_PRINT_ELOG=1
474 + done
475 + readme.gentoo_print_elog
476 +
477 + if use livecd; then
478 + # force an update of the emacs symlink for the livecd/dvd,
479 + # because some microemacs packages set it with USE=livecd
480 + eselect emacs update
481 + elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then
482 + # refresh symlinks in case any installed files have changed
483 + eselect emacs set ${EMACS_SUFFIX}
484 + else
485 + eselect emacs update ifunset
486 + fi
487 +}
488 +
489 +pkg_postrm() {
490 + elisp-site-regen
491 + eselect emacs update ifunset
492 +}
493
494 diff --git a/app-editors/emacs-xwidget/metadata.xml b/app-editors/emacs-xwidget/metadata.xml
495 new file mode 100644
496 index 0000000..7e27373
497 --- /dev/null
498 +++ b/app-editors/emacs-xwidget/metadata.xml
499 @@ -0,0 +1,48 @@
500 +<?xml version="1.0" encoding="UTF-8"?>
501 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
502 +<pkgmetadata>
503 +<herd>emacs</herd>
504 +<longdescription>
505 + GNU Emacs is an extensible, customizable text editor - and more. At its core
506 + is an interpreter for Emacs Lisp, a dialect of the Lisp programming language
507 + with extensions to support text editing. The features of GNU Emacs include:
508 + * Content-sensitive editing modes, including syntax coloring, for a variety
509 + of file types including plain text, source code, and HTML.
510 + * Complete built-in documentation, including a tutorial for new users.
511 + * Full Unicode support for nearly all human languages and their scripts.
512 + * Highly customizable, using Emacs Lisp code or a graphical interface.
513 + * A large number of extensions that add other functionality, including a
514 + project planner, mail and news reader, debugger interface, calendar, and
515 + more. Many of these extensions are distributed with GNU Emacs; others are
516 + available separately.
517 +</longdescription>
518 +<use>
519 + <flag name='athena'>Enable the MIT Athena widget set
520 + (<pkg>x11-libs/libXaw</pkg>)</flag>
521 + <flag name='games'>Support shared score files for games</flag>
522 + <flag name='gconf'>Use <pkg>gnome-base/gconf</pkg> to read the system
523 + font name</flag>
524 + <flag name='gfile'>Use gfile (<pkg>dev-libs/glib</pkg>) for file
525 + notification</flag>
526 + <flag name='gsettings'>Use gsettings (<pkg>dev-libs/glib</pkg>) to read the
527 + system font name</flag>
528 + <flag name='gtk3'>Link against version 3 of the GIMP Toolkit instead of
529 + version 2 (<pkg>x11-libs/gtk+</pkg>)</flag>
530 + <flag name='gzip-el'>Compress bundled Emacs Lisp source</flag>
531 + <flag name='hesiod'>Enable support for <pkg>net-dns/hesiod</pkg></flag>
532 + <flag name='imagemagick'>Use <pkg>media-gfx/imagemagick</pkg> for image
533 + processing</flag>
534 + <flag name='libxml2'>Use <pkg>dev-libs/libxml2</pkg> to parse XML instead
535 + of the internal Lisp implementations</flag>
536 + <flag name='pax_kernel'>Enable building under a PaX enabled kernel
537 + (<pkg>sys-apps/paxctl</pkg>)</flag>
538 + <flag name='source'>Install C source files and make them available for
539 + find-function</flag>
540 + <flag name='toolkit-scroll-bars'>Use the selected toolkit's scrollbars in
541 + preference to Emacs' own scrollbars</flag>
542 + <flag name='wide-int'>Prefer wide Emacs integers (typically 62-bit).
543 + This option has an effect only on architectures where "long" and
544 + "long long" types have different size.</flag>
545 + <flag name='xwidgets'>Enable use of some gtk widgets it Emacs buffers</flag>
546 +</use>
547 +</pkgmetadata>