summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-01-29 16:07:55 +0100
committerLars Wendler <polynomial-c@gentoo.org>2018-01-29 16:07:55 +0100
commit5863fac7671b3f01a3f712f7ba1bab069a01ff88 (patch)
tree131aecac289f51032e0b0dbd4d52479500dce274 /app-misc
parentapp-misc/mc: Revbump to add "unicode" USE flag. (diff)
downloadgentoo-5863fac7671b3f01a3f712f7ba1bab069a01ff88.tar.gz
gentoo-5863fac7671b3f01a3f712f7ba1bab069a01ff88.tar.bz2
gentoo-5863fac7671b3f01a3f712f7ba1bab069a01ff88.zip
app-misc/mc: Synced live ebuild.
Package-Manager: Portage-2.3.20, Repoman-2.3.6
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/mc/mc-4.8.20-r2.ebuild2
-rw-r--r--app-misc/mc/mc-9999.ebuild57
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 26a9982ce6a5..5b6a3787b528 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 1f19e217d3ac..ef5501c8bc47 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
}