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.7.3-r3.ebuild mc-4.7.0.8-r1.ebuild
Date: Wed, 25 Aug 2010 22:04:20
Message-Id: 20100825220416.6DBA020051@flycatcher.gentoo.org
1 wired 10/08/25 22:04:16
2
3 Modified: ChangeLog
4 Added: mc-4.7.3-r3.ebuild mc-4.7.0.8-r1.ebuild
5 Log:
6 make cons.saver sgid (tty). fixes bug #334383
7
8 (Portage version: 2.2_rc67_p716/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.206 app-misc/mc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/ChangeLog?rev=1.206&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/ChangeLog?rev=1.206&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/ChangeLog?r1=1.205&r2=1.206
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v
20 retrieving revision 1.205
21 retrieving revision 1.206
22 diff -u -r1.205 -r1.206
23 --- ChangeLog 25 Aug 2010 21:55:38 -0000 1.205
24 +++ ChangeLog 25 Aug 2010 22:04:16 -0000 1.206
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-misc/mc
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.205 2010/08/25 21:55:38 wired Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.206 2010/08/25 22:04:16 wired Exp $
30 +
31 +*mc-4.7.3-r3 (25 Aug 2010)
32 +*mc-4.7.0.8-r1 (25 Aug 2010)
33 +
34 + 25 Aug 2010; Alex Alexander <wired@g.o> +mc-4.7.0.8-r1.ebuild,
35 + +mc-4.7.3-r3.ebuild:
36 + make cons.saver sgid (tty). fixes bug #334383
37
38 25 Aug 2010; Alex Alexander <wired@g.o> -mc-4.7.0.6.ebuild,
39 -mc-4.7.0.7.ebuild, -mc-4.7.2.ebuild, -mc-4.7.3.ebuild,
40
41
42
43 1.1 app-misc/mc/mc-4.7.3-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/mc-4.7.3-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/mc-4.7.3-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mc-4.7.3-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.7.3-r3.ebuild,v 1.1 2010/08/25 22:04:16 wired Exp $
53
54 EAPI=3
55
56 inherit base
57
58 MY_P=${P/_/-}
59
60 DESCRIPTION="GNU Midnight Commander is a text based file manager"
61 HOMEPAGE="http://www.midnight-commander.org"
62 SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.bz2"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
67 IUSE="+edit gpm nls samba slang X"
68
69 RDEPEND=">=dev-libs/glib-2.8:2
70 gpm? ( sys-libs/gpm )
71 kernel_linux? ( sys-fs/e2fsprogs )
72 samba? ( net-fs/samba )
73 slang? ( >=sys-libs/slang-2 )
74 !slang? ( sys-libs/ncurses )
75 X? ( x11-libs/libX11
76 x11-libs/libICE
77 x11-libs/libXau
78 x11-libs/libXdmcp
79 x11-libs/libSM )"
80 DEPEND="${RDEPEND}
81 dev-util/pkgconfig
82 nls? ( sys-devel/gettext )"
83
84 S=${WORKDIR}/${MY_P}
85
86 # bug #327573
87 PATCHES=(
88 "${FILESDIR}/${P}_advanced_chown_segfault_fix.patch"
89 "${FILESDIR}/${P}_mcedit_quit_dialog_default.patch"
90 "${FILESDIR}/${P}_copy_move_dialog_to_field_fix.patch"
91 )
92
93 src_configure() {
94 local myscreen=ncurses
95 use slang && myscreen=slang
96
97 econf \
98 --disable-dependency-tracking \
99 $(use_enable nls) \
100 --enable-vfs \
101 $(use_enable kernel_linux vfs-undelfs) \
102 --enable-charset \
103 $(use_with X x) \
104 $(use_with samba) \
105 --with-configdir="${EPREFIX}"/etc/samba \
106 --with-codepagedir="${EPREFIX}"/var/lib/samba/codepages \
107 $(use_with gpm gpm-mouse) \
108 --with-screen=${myscreen} \
109 $(use_with edit)
110 }
111
112 src_install() {
113 emake DESTDIR="${D}" install || die
114 dodoc AUTHORS README
115
116 # fix bug #334383
117 fowners root:tty /usr/libexec/mc/cons.saver ||
118 die "setting cons.saver's owner failed"
119 fperms g+s /usr/libexec/mc/cons.saver ||
120 die "setting cons.saver's permissions failed"
121 }
122
123 pkg_postinst() {
124 elog "To enable exiting to latest working directory,"
125 elog "put this into your ~/.bashrc:"
126 elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
127 }
128
129
130
131 1.1 app-misc/mc/mc-4.7.0.8-r1.ebuild
132
133 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/mc-4.7.0.8-r1.ebuild?rev=1.1&view=markup
134 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/mc-4.7.0.8-r1.ebuild?rev=1.1&content-type=text/plain
135
136 Index: mc-4.7.0.8-r1.ebuild
137 ===================================================================
138 # Copyright 1999-2010 Gentoo Foundation
139 # Distributed under the terms of the GNU General Public License v2
140 # $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.7.0.8-r1.ebuild,v 1.1 2010/08/25 22:04:16 wired Exp $
141
142 EAPI=3
143
144 inherit base
145
146 MY_P=${P/_/-}
147
148 DESCRIPTION="GNU Midnight Commander is a text based file manager"
149 HOMEPAGE="http://www.midnight-commander.org"
150 SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.bz2"
151
152 LICENSE="GPL-2"
153 SLOT="0"
154 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
155 IUSE="+edit gpm nls samba slang X"
156
157 RDEPEND=">=dev-libs/glib-2.8:2
158 gpm? ( sys-libs/gpm )
159 kernel_linux? ( sys-fs/e2fsprogs )
160 samba? ( net-fs/samba )
161 slang? ( >=sys-libs/slang-2 )
162 !slang? ( sys-libs/ncurses )
163 X? ( x11-libs/libX11
164 x11-libs/libICE
165 x11-libs/libXau
166 x11-libs/libXdmcp
167 x11-libs/libSM )"
168 DEPEND="${RDEPEND}
169 dev-util/pkgconfig
170 nls? ( sys-devel/gettext )"
171
172 S=${WORKDIR}/${MY_P}
173
174 src_configure() {
175 local myscreen=ncurses
176 use slang && myscreen=slang
177
178 econf \
179 --disable-dependency-tracking \
180 $(use_enable nls) \
181 --enable-vfs \
182 $(use_enable kernel_linux vfs-undelfs) \
183 --enable-charset \
184 $(use_with X x) \
185 $(use_with samba) \
186 --with-configdir="${EPREFIX}"/etc/samba \
187 --with-codepagedir="${EPREFIX}"/var/lib/samba/codepages \
188 $(use_with gpm gpm-mouse) \
189 --with-screen=${myscreen} \
190 $(use_with edit)
191 }
192
193 src_install() {
194 emake DESTDIR="${D}" install || die
195 dodoc AUTHORS README
196
197 # fix bug #334383
198 fowners root:tty /usr/libexec/mc/cons.saver ||
199 die "setting cons.saver's owner failed"
200 fperms g+s /usr/libexec/mc/cons.saver ||
201 die "setting cons.saver's permissions failed"
202 }
203
204 pkg_postinst() {
205 elog "To enable exiting to latest working directory,"
206 elog "put this into your ~/.bashrc:"
207 elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
208 }