From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 21F3A1382C5 for ; Mon, 29 Jan 2018 15:08:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CFB5E0AAC; Mon, 29 Jan 2018 15:08:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 29975E0AAC for ; Mon, 29 Jan 2018 15:08:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 073E8335C30 for ; Mon, 29 Jan 2018 15:08:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 883831A4 for ; Mon, 29 Jan 2018 15:08:01 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1517238475.5863fac7671b3f01a3f712f7ba1bab069a01ff88.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/mc/mc-4.8.20-r2.ebuild app-misc/mc/mc-9999.ebuild X-VCS-Directories: app-misc/mc/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 5863fac7671b3f01a3f712f7ba1bab069a01ff88 X-VCS-Branch: master Date: Mon, 29 Jan 2018 15:08:01 +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: e8f0c26f-a142-49d0-8ccd-5a4f7f220fb2 X-Archives-Hash: fade3ab53c9c30ff7abdb1c822cb2c60 commit: 5863fac7671b3f01a3f712f7ba1bab069a01ff88 Author: Lars Wendler gentoo org> AuthorDate: Mon Jan 29 15:07:55 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Jan 29 15:07:55 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5863fac7 app-misc/mc: Synced live ebuild. Package-Manager: Portage-2.3.20, Repoman-2.3.6 app-misc/mc/mc-4.8.20-r2.ebuild | 2 +- app-misc/mc/mc-9999.ebuild | 57 ++++++++++++++++++++++------------------- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/app-misc/mc/mc-4.8.20-r2.ebuild b/app-misc/mc/mc-4.8.20-r2.ebuild index 26a9982ce6a..5b6a3787b52 100644 --- a/app-misc/mc/mc-4.8.20-r2.ebuild +++ b/app-misc/mc/mc-4.8.20-r2.ebuild @@ -14,7 +14,7 @@ SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris" -IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg unicode" +IUSE="+edit gpm mclib nls samba sftp +slang spell test unicode X +xdg" REQUIRED_USE="spell? ( edit )" diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild index 1f19e217d3a..ef5501c8bc4 100644 --- a/app-misc/mc/mc-9999.ebuild +++ b/app-misc/mc/mc-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -9,7 +9,7 @@ if [[ ${PV} = *9999* ]]; then LIVE_EBUILD=yes fi -inherit eutils flag-o-matic ${LIVE_ECLASSES} +inherit flag-o-matic ${LIVE_ECLASSES} MY_P=${P/_/-} @@ -23,7 +23,7 @@ HOMEPAGE="https://www.midnight-commander.org" LICENSE="GPL-3" SLOT="0" -IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg" +IUSE="+edit gpm mclib nls samba sftp +slang spell test unicode X +xdg" REQUIRED_USE="spell? ( edit )" @@ -33,7 +33,7 @@ RDEPEND=">=dev-libs/glib-2.26.0:2 samba? ( net-fs/samba ) sftp? ( net-libs/libssh2 ) slang? ( >=sys-libs/slang-2 ) - !slang? ( sys-libs/ncurses:0= ) + !slang? ( sys-libs/ncurses:0=[unicode?] ) spell? ( app-text/aspell ) X? ( x11-libs/libX11 x11-libs/libICE @@ -47,6 +47,12 @@ DEPEND="${RDEPEND} test? ( dev-libs/check ) " +pkg_pretend() { + if use slang && use unicode ; then + ewarn "\"unicode\" USE flag only takes effect when the \"slang\" USE flag is disabled." + fi +} + src_prepare() { default @@ -54,30 +60,27 @@ src_prepare() { } src_configure() { - local myscreen=ncurses - use slang && myscreen=slang [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket" - local homedir=".mc" - use xdg && homedir="XDG" - - econf \ - --disable-silent-rules \ - --disable-dependency-tracking \ - $(use_enable nls) \ - --enable-vfs \ - $(use_enable kernel_linux vfs-undelfs) \ - --enable-charset \ - $(use_with X x) \ - $(use_enable samba vfs-smb) \ - $(use_enable sftp vfs-sftp) \ - $(use_enable spell aspell) \ - $(use_with gpm gpm-mouse) \ - --with-screen=${myscreen} \ - $(use_with edit internal-edit) \ - $(use_enable mclib) \ - $(use_enable test tests) \ - --with-homedir=${homedir} + local myeconfargs=( + --disable-dependency-tracking + --disable-silent-rules + --enable-charset + --enable-vfs + --with-homedir=$(usex xdg 'XDG' '.mc') + --with-screen=$(usex slang 'slang' "ncurses$(usex unicode 'w')") + $(use_enable kernel_linux vfs-undelfs) + $(use_enable mclib) + $(use_enable nls) + $(use_enable samba vfs-smb) + $(use_enable sftp vfs-sftp) + $(use_enable spell aspell) + $(use_enable test tests) + $(use_with gpm gpm-mouse) + $(use_with X x) + $(use_with edit internal-edit) + ) + econf "${myeconfargs[@]}" } src_install() { @@ -92,7 +95,7 @@ src_install() { if ! use xdg ; then sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \ - -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die + -i "${ED%/}"/usr/libexec/mc/ext.d/*.sh || die fi }