diff options
author | Alex Alexander <wired@gentoo.org> | 2011-12-16 13:17:35 +0000 |
---|---|---|
committer | Alex Alexander <wired@gentoo.org> | 2011-12-16 13:17:35 +0000 |
commit | 793046e4dde71d11cd63bd6d6ef1b2adf9e59683 (patch) | |
tree | b9c6fb804f289cc2ece4ea9cdae0ab42dc3e5b0c /app-misc/mc | |
parent | Stable for AMD64, wrt bug #394071 (diff) | |
download | gentoo-2-793046e4dde71d11cd63bd6d6ef1b2adf9e59683.tar.gz gentoo-2-793046e4dde71d11cd63bd6d6ef1b2adf9e59683.tar.bz2 gentoo-2-793046e4dde71d11cd63bd6d6ef1b2adf9e59683.zip |
new use flag: xdg - toggles mc's config dir location between $XDG_CONFIG_HOME/mc and $HOME/.mc
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/mc')
-rw-r--r-- | app-misc/mc/ChangeLog | 7 | ||||
-rw-r--r-- | app-misc/mc/mc-4.8.1-r1.ebuild | 10 | ||||
-rw-r--r-- | app-misc/mc/metadata.xml | 1 |
3 files changed, 14 insertions, 4 deletions
diff --git a/app-misc/mc/ChangeLog b/app-misc/mc/ChangeLog index f325c7931c84..e69508481b74 100644 --- a/app-misc/mc/ChangeLog +++ b/app-misc/mc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-misc/mc # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.234 2011/12/16 10:16:30 wired Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.235 2011/12/16 13:17:35 wired Exp $ + + 16 Dec 2011; Alex Alexander <wired@gentoo.org> mc-4.8.1-r1.ebuild, + metadata.xml: + new use flag: xdg - toggles mc's config dir location between + $XDG_CONFIG_HOME/mc and $HOME/.mc *mc-4.8.1-r1 (16 Dec 2011) *mc-4.7.5.6-r1 (16 Dec 2011) diff --git a/app-misc/mc/mc-4.8.1-r1.ebuild b/app-misc/mc/mc-4.8.1-r1.ebuild index 0ee12670949f..e0500fd73490 100644 --- a/app-misc/mc/mc-4.8.1-r1.ebuild +++ b/app-misc/mc/mc-4.8.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.8.1-r1.ebuild,v 1.1 2011/12/16 10:16:30 wired Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.8.1-r1.ebuild,v 1.2 2011/12/16 13:17:35 wired Exp $ EAPI=4 @@ -15,7 +15,7 @@ SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris" -IUSE="+edit gpm mclib +ncurses nls samba slang test X" +IUSE="+edit gpm mclib +ncurses nls samba slang test X +xdg" REQUIRED_USE="^^ ( ncurses slang )" @@ -44,6 +44,9 @@ src_configure() { use slang && myscreen=slang [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket" + local homedir=".mc" + use xdg && homedir="XDG" + econf \ --disable-dependency-tracking \ $(use_enable nls) \ @@ -56,7 +59,8 @@ src_configure() { --with-screen=${myscreen} \ $(use_with edit) \ $(use_enable mclib) \ - $(use_enable test tests) + $(use_enable test tests) \ + --with-homedir=${homedir} } src_install() { diff --git a/app-misc/mc/metadata.xml b/app-misc/mc/metadata.xml index 4cf95b5121ff..3334c7cec3d1 100644 --- a/app-misc/mc/metadata.xml +++ b/app-misc/mc/metadata.xml @@ -13,5 +13,6 @@ <use> <flag name="edit">Compile and install the mcedit application</flag> <flag name="mclib">Compile and install the libmc.so shared library</flag> + <flag name="xdg">Toggles mc's config dir location. Enable for $XDG_CONFIG_HOME/mc, disable for $HOME/.mc</flag> </use> </pkgmetadata> |