Gentoo Archives: gentoo-commits

From: "Alex Alexander (wired)" <wired@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/mc: ChangeLog mc-4.8.2-r1.ebuild
Date: Thu, 22 Mar 2012 14:35:02
Message-Id: 20120322143449.E3C472004B@flycatcher.gentoo.org
1 wired 12/03/22 14:34:49
2
3 Modified: ChangeLog
4 Added: mc-4.8.2-r1.ebuild
5 Log:
6 fixed bug #409107
7
8 (Portage version: 2.2.0_alpha93/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.249 app-misc/mc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/ChangeLog?rev=1.249&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/ChangeLog?rev=1.249&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/ChangeLog?r1=1.248&r2=1.249
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v
20 retrieving revision 1.248
21 retrieving revision 1.249
22 diff -u -r1.248 -r1.249
23 --- ChangeLog 20 Mar 2012 19:58:49 -0000 1.248
24 +++ ChangeLog 22 Mar 2012 14:34:49 -0000 1.249
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-misc/mc
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.248 2012/03/20 19:58:49 slyfox Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.249 2012/03/22 14:34:49 wired Exp $
30 +
31 +*mc-4.8.2-r1 (22 Mar 2012)
32 +
33 + 22 Mar 2012; Alex Alexander <wired@g.o> +mc-4.8.2-r1.ebuild,
34 + +files/mc-4.8.2-mcedit-without-file-param-fix.patch:
35 + fixed bug #409107
36
37 *mc-4.8.2 (20 Mar 2012)
38
39
40
41
42 1.1 app-misc/mc/mc-4.8.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/mc-4.8.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/mc-4.8.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mc-4.8.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.8.2-r1.ebuild,v 1.1 2012/03/22 14:34:49 wired Exp $
52
53 EAPI=4
54
55 inherit flag-o-matic
56
57 MY_P=${P/_/-}
58
59 DESCRIPTION="GNU Midnight Commander is a text based file manager"
60 HOMEPAGE="http://www.midnight-commander.org"
61 SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
62
63 LICENSE="GPL-3"
64 SLOT="0"
65 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"
66 IUSE="+edit gpm mclib nls samba +slang test X +xdg"
67
68 RDEPEND=">=dev-libs/glib-2.8:2
69 gpm? ( sys-libs/gpm )
70 kernel_linux? ( sys-fs/e2fsprogs )
71 samba? ( net-fs/samba )
72 slang? ( >=sys-libs/slang-2 )
73 !slang? ( sys-libs/ncurses )
74 X? ( x11-libs/libX11
75 x11-libs/libICE
76 x11-libs/libXau
77 x11-libs/libXdmcp
78 x11-libs/libSM )"
79 DEPEND="${RDEPEND}
80 app-arch/xz-utils
81 dev-util/pkgconfig
82 nls? ( sys-devel/gettext )
83 test? ( dev-libs/check )
84 "
85
86 S=${WORKDIR}/${MY_P}
87
88 src_prepare() {
89 cp "${FILESDIR}"/${P}-missing-do_panel_cd_stub_env.c \
90 tests/src/filemanager/do_panel_cd_stub_env.c || die
91
92 # bug 409107
93 epatch "${FILESDIR}"/"${P}"-mcedit-without-file-param-fix.patch
94 }
95
96 src_configure() {
97 local myscreen=ncurses
98 use slang && myscreen=slang
99 [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
100
101 local homedir=".mc"
102 use xdg && homedir="XDG"
103
104 econf \
105 --disable-dependency-tracking \
106 $(use_enable nls) \
107 --enable-vfs \
108 $(use_enable kernel_linux vfs-undelfs) \
109 --enable-charset \
110 $(use_with X x) \
111 $(use_enable samba vfs-smb) \
112 $(use_with gpm gpm-mouse) \
113 --with-screen=${myscreen} \
114 $(use_with edit) \
115 $(use_enable mclib) \
116 $(use_enable test tests) \
117 --with-homedir=${homedir}
118 }
119
120 src_install() {
121 emake DESTDIR="${D}" install
122 dodoc AUTHORS README NEWS
123
124 # fix bug #334383
125 if use kernel_linux && [[ ${EUID} == 0 ]] ; then
126 fowners root:tty /usr/libexec/mc/cons.saver
127 fperms g+s /usr/libexec/mc/cons.saver
128 fi
129 }
130
131 pkg_postinst() {
132 elog "To enable exiting to latest working directory,"
133 elog "put this into your ~/.bashrc:"
134 elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
135 }