From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 333B713828B for ; Sat, 28 May 2016 06:53:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D20121C012; Sat, 28 May 2016 06:53:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C38921C012 for ; Sat, 28 May 2016 06:53:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 788E4340988 for ; Sat, 28 May 2016 06:53:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EBA9791A for ; Sat, 28 May 2016 06:53:16 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1464418330.1c7e7618c5a592049e94bdfd525c608ba59c9c3e.ulm@gentoo> Subject: [gentoo-commits] proj/emacs:master commit in: app-editors/emacs-vcs/ X-VCS-Repository: proj/emacs X-VCS-Files: app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild X-VCS-Directories: app-editors/emacs-vcs/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 1c7e7618c5a592049e94bdfd525c608ba59c9c3e X-VCS-Branch: master Date: Sat, 28 May 2016 06:53:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 00bb9e19-5ef5-4f81-9398-46745564e90b X-Archives-Hash: b647df6242eca39e44988f4009e8228c commit: 1c7e7618c5a592049e94bdfd525c608ba59c9c3e Author: Ulrich Müller gentoo org> AuthorDate: Sat May 28 06:52:10 2016 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat May 28 06:52:10 2016 +0000 URL: https://gitweb.gentoo.org/proj/emacs.git/commit/?id=1c7e7618 app-editors/emacs-vcs: Add pkg_pretend to warn early about USE flag problems. Package-Manager: portage-2.3.0_rc1 .../emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild b/app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild index 5457c54..4d274bf 100644 --- a/app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild +++ b/app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild @@ -104,6 +104,48 @@ fi EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}" SITEFILE="20${PN}-${SLOT}-gentoo.el" +pkg_pretend() { + local f + + if use alsa && ! use sound; then + ewarn "USE flag \"alsa\" overrides \"-sound\"; enabling sound support." + fi + + if use X; then + if ! use xft; then + for f in cairo m17n-lib; do + use ${f} && ewarn \ + "USE flag \"${f}\" has no effect if \"xft\" is not set." + done + fi + + if use gtk; then + while read line; do ewarn "${line}"; done <<-EOF + Your version of GTK+ will have problems with closing open + displays. This is no problem if you just use one display, but + if you use more than one and close one of them Emacs may crash. + See . + If you intend to use more than one display, then it is strongly + recommended that you compile Emacs with the Athena/Lucid or the + Motif toolkit instead. + EOF + for f in motif Xaw3d athena; do + use ${f} && ewarn \ + "USE flag \"${f}\" has no effect if \"gtk\" is set." + done + elif use motif; then + for f in Xaw3d athena; do + use ${f} && ewarn \ + "USE flag \"${f}\" has no effect if \"motif\" is set." + done + fi + + if ! use gtk && use xwidgets; then + ewarn "USE flag \"xwidgets\" has no effect if \"gtk\" is not set." + fi + fi +} + src_prepare() { if [[ ${PV##*.} = 9999 ]]; then FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \