commit:     4067c9065950574e5b31967f74c6d12c5aa16cd8
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 31 08:05:41 2016 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 31 08:05:41 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4067c906

app-editors/emacs-vcs: First pretest for Emacs 25.1.

Add new "xwidgets" USE flag. Drop hppa keyword because of the conditional 
dependency on net-libs/webkit-gtk. Update description of the "gtk3" flag.

Package-Manager: portage-2.2.27

 app-editors/emacs-vcs/Manifest                     |  1 +
 ...5.0.9999-r2.ebuild => emacs-vcs-25.0.90.ebuild} | 35 +++++++++++++++-------
 .../emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild        | 33 +++++++++++++-------
 app-editors/emacs-vcs/metadata.xml                 |  6 ++--
 4 files changed, 52 insertions(+), 23 deletions(-)

diff --git a/app-editors/emacs-vcs/Manifest b/app-editors/emacs-vcs/Manifest
index 09e8fa8..e8314b9 100644
--- a/app-editors/emacs-vcs/Manifest
+++ b/app-editors/emacs-vcs/Manifest
@@ -1 +1,2 @@
 DIST emacs-25.0.50_pre20151113.tar.xz 26904832 SHA256 
dcfd575afa3123bd63eba12b2ae2c7d1390c8fbccc911e9a4a70028feb207240 SHA512 
cc8e871e9bb236ffd99ea93750aabc55401cdfad171f56df81c3127fba41b223196d31a64baf597268805b39015df773587e239192870f70671d131d9c6fc9b8
 WHIRLPOOL 
9571b10e49c028e4f8a10a54fce10bea16ff9b726e8a266650af180a57a370d225ac3bdffc12828c6d170680e514c9fb1179b3676dd4d4de3e6794147dc935ab
+DIST emacs-25.0.90.tar.xz 42218556 SHA256 
325f275b64eee106ad9aaadb42243619822e5e59bee35645f15e015176adb626 SHA512 
7fdc73bc62aa3d4456faaeedf5a121fbad3363dfb20d7564308012ffb49ea96af623ae291a245ab3228457942fea7f4a872695b57befc77bbaf8478a5124f577
 WHIRLPOOL 
4c566e40269aecf61ca1f3055d023fa4138f6a31436a7d7f2459b39818d33ae7d49e55719179239bd3d60936a85a83f062c2bc635fe8b3fa601749019bb17daa

diff --git a/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild 
b/app-editors/emacs-vcs/emacs-vcs-25.0.90.ebuild
similarity index 93%
copy from app-editors/emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild
copy to app-editors/emacs-vcs/emacs-vcs-25.0.90.ebuild
index 3db814a..59eed10 100644
--- a/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild
+++ b/app-editors/emacs-vcs/emacs-vcs-25.0.90.ebuild
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
+inherit autotools elisp-common flag-o-matic multilib readme.gentoo-r1
 
 if [[ ${PV##*.} = 9999 ]]; then
        inherit git-r3
@@ -15,13 +15,13 @@ if [[ ${PV##*.} = 9999 ]]; then
 else
        SRC_URI="https://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz
                mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz"
-       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc 
~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos"
+       KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 
~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
        # FULL_VERSION keeps the full version number, which is needed in
        # order to determine some path information correctly for copy/move
        # operations later on
        FULL_VERSION="${PV%%_*}"
-       #S="${WORKDIR}/emacs-${FULL_VERSION}"
-       S="${WORKDIR}/emacs"
+       S="${WORKDIR}/emacs-${FULL_VERSION}"
+       [[ ${FULL_VERSION} != ${PV} ]] && S="${WORKDIR}/emacs"
 fi
 
 DESCRIPTION="The extensible, customizable, self-documenting real-time display 
editor"
@@ -29,7 +29,7 @@ HOMEPAGE="https://www.gnu.org/software/emacs/";
 
 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
 SLOT="25"
-IUSE="acl alsa aqua athena cairo 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 zlib"
+IUSE="acl alsa aqua athena cairo 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"
 REQUIRED_USE="?? ( aqua X )"
 
 RDEPEND="sys-libs/ncurses:0
@@ -71,8 +71,14 @@ RDEPEND="sys-libs/ncurses:0
                        )
                )
                gtk? (
-                       gtk3? ( x11-libs/gtk+:3 )
-                       !gtk3? ( x11-libs/gtk+:2 )
+                       xwidgets? (
+                               x11-libs/gtk+:3
+                               net-libs/webkit-gtk:3=
+                       )
+                       !xwidgets? (
+                               gtk3? ( x11-libs/gtk+:3 )
+                               !gtk3? ( x11-libs/gtk+:2 )
+                       )
                )
                !gtk? (
                        motif? ( >=x11-libs/motif-2.3:0 )
@@ -111,7 +117,7 @@ src_prepare() {
                        || die "Upstream version number changed to 
${FULL_VERSION}"
        fi
 
-       epatch_user
+       eapply_user
 
        # Fix filename reference in redirected man page
        sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
@@ -182,7 +188,12 @@ src_configure() {
                                recommended that you compile Emacs with the 
Athena/Lucid or the
                                Motif toolkit instead.
                        EOF
-                       myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
+                       if use xwidgets; then
+                               myconf+=" --with-x-toolkit=gtk3 --with-xwidgets"
+                       else
+                               myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 
gtk2)"
+                               myconf+=" --without-xwidgets"
+                       fi
                        for f in motif Xaw3d athena; do
                                use ${f} && ewarn \
                                        "USE flag \"${f}\" has no effect if 
\"gtk\" is set."
@@ -201,6 +212,8 @@ src_configure() {
                        einfo "Configuring to build with no toolkit"
                        myconf+=" --with-x-toolkit=no"
                fi
+               ! use gtk && use xwidgets && ewarn \
+                       "USE flag \"xwidgets\" has no effect if \"gtk\" is not 
set."
        elif use aqua; then
                einfo "Configuring to build with Nextstep (Cocoa) support"
                myconf+=" --with-ns --disable-ns-self-contained"
@@ -305,7 +318,7 @@ src_install () {
        EOF
        elisp-site-file-install "${T}/${SITEFILE}" || die
 
-       dodoc README BUGS CONTRIBUTE
+       dodoc README BUGS #CONTRIBUTE
 
        if use aqua; then
                dodir /Applications/Gentoo

diff --git a/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild 
b/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild
index 3db814a..51815df 100644
--- a/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild
+++ b/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r2.ebuild
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
+inherit autotools elisp-common flag-o-matic multilib readme.gentoo-r1
 
 if [[ ${PV##*.} = 9999 ]]; then
        inherit git-r3
@@ -15,13 +15,13 @@ if [[ ${PV##*.} = 9999 ]]; then
 else
        SRC_URI="https://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz
                mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz"
-       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc 
~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos"
+       KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 
~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
        # FULL_VERSION keeps the full version number, which is needed in
        # order to determine some path information correctly for copy/move
        # operations later on
        FULL_VERSION="${PV%%_*}"
-       #S="${WORKDIR}/emacs-${FULL_VERSION}"
-       S="${WORKDIR}/emacs"
+       S="${WORKDIR}/emacs-${FULL_VERSION}"
+       [[ ${FULL_VERSION} != ${PV} ]] && S="${WORKDIR}/emacs"
 fi
 
 DESCRIPTION="The extensible, customizable, self-documenting real-time display 
editor"
@@ -29,7 +29,7 @@ HOMEPAGE="https://www.gnu.org/software/emacs/";
 
 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
 SLOT="25"
-IUSE="acl alsa aqua athena cairo 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 zlib"
+IUSE="acl alsa aqua athena cairo 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"
 REQUIRED_USE="?? ( aqua X )"
 
 RDEPEND="sys-libs/ncurses:0
@@ -71,8 +71,14 @@ RDEPEND="sys-libs/ncurses:0
                        )
                )
                gtk? (
-                       gtk3? ( x11-libs/gtk+:3 )
-                       !gtk3? ( x11-libs/gtk+:2 )
+                       xwidgets? (
+                               x11-libs/gtk+:3
+                               net-libs/webkit-gtk:3=
+                       )
+                       !xwidgets? (
+                               gtk3? ( x11-libs/gtk+:3 )
+                               !gtk3? ( x11-libs/gtk+:2 )
+                       )
                )
                !gtk? (
                        motif? ( >=x11-libs/motif-2.3:0 )
@@ -111,7 +117,7 @@ src_prepare() {
                        || die "Upstream version number changed to 
${FULL_VERSION}"
        fi
 
-       epatch_user
+       eapply_user
 
        # Fix filename reference in redirected man page
        sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
@@ -182,7 +188,12 @@ src_configure() {
                                recommended that you compile Emacs with the 
Athena/Lucid or the
                                Motif toolkit instead.
                        EOF
-                       myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
+                       if use xwidgets; then
+                               myconf+=" --with-x-toolkit=gtk3 --with-xwidgets"
+                       else
+                               myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 
gtk2)"
+                               myconf+=" --without-xwidgets"
+                       fi
                        for f in motif Xaw3d athena; do
                                use ${f} && ewarn \
                                        "USE flag \"${f}\" has no effect if 
\"gtk\" is set."
@@ -201,6 +212,8 @@ src_configure() {
                        einfo "Configuring to build with no toolkit"
                        myconf+=" --with-x-toolkit=no"
                fi
+               ! use gtk && use xwidgets && ewarn \
+                       "USE flag \"xwidgets\" has no effect if \"gtk\" is not 
set."
        elif use aqua; then
                einfo "Configuring to build with Nextstep (Cocoa) support"
                myconf+=" --with-ns --disable-ns-self-contained"

diff --git a/app-editors/emacs-vcs/metadata.xml 
b/app-editors/emacs-vcs/metadata.xml
index 0f9232f..a42a18a 100644
--- a/app-editors/emacs-vcs/metadata.xml
+++ b/app-editors/emacs-vcs/metadata.xml
@@ -29,8 +29,8 @@
     notification</flag>
   <flag name="gsettings">Use gsettings (<pkg>dev-libs/glib</pkg>) to read the
     system font name</flag>
-  <flag name="gtk3">Link against version 3 of the GIMP Toolkit instead of
-    version 2 (<pkg>x11-libs/gtk+</pkg>)</flag>
+  <flag name="gtk3">Prefer version 3 of the GIMP Toolkit to version 2
+    (<pkg>x11-libs/gtk+</pkg>)</flag>
   <flag name="gzip-el">Compress bundled Emacs Lisp source</flag>
   <flag name="hesiod">Enable support for <pkg>net-dns/hesiod</pkg></flag>
   <flag name="imagemagick">Use <pkg>media-gfx/imagemagick</pkg> for image
@@ -45,5 +45,7 @@
   <flag name="wide-int">Prefer wide Emacs integers (typically 62-bit).
     This option has an effect only on architectures where "long" and
     "long long" types have different size.</flag>
+  <flag name='xwidgets'>Enable use of GTK widgets in Emacs buffers
+    (requires GTK3)</flag>
 </use>
 </pkgmetadata>

Reply via email to