/[gentoo-x86]/app-misc/mc/mc-4.7.5.2.ebuild
Gentoo

Contents of /app-misc/mc/mc-4.7.5.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jul 21 15:59:49 2012 UTC (23 months, 3 weeks ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Added USE=spell to use aspell checker from live ebuild. Fix to view /var/log/*.1.gz files (https://www.midnight-commander.org/ticket/2852). Cleanup old unstable versions.

(Portage version: 2.2.0_alpha118_p1/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.7.5.2.ebuild,v 1.9 2012/05/03 19:41:32 jdhore Exp $
4
5 EAPI=4
6
7 inherit base
8
9 MY_P=${P/_/-}
10
11 DESCRIPTION="GNU Midnight Commander is a text based file manager"
12 HOMEPAGE="http://www.midnight-commander.org"
13 SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.lzma"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 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"
18 IUSE="+edit gpm +ncurses nls samba slang X"
19
20 REQUIRED_USE="^^ ( ncurses slang )"
21
22 RDEPEND=">=dev-libs/glib-2.8:2
23 gpm? ( sys-libs/gpm )
24 kernel_linux? ( sys-fs/e2fsprogs )
25 ncurses? ( sys-libs/ncurses )
26 samba? ( net-fs/samba )
27 slang? ( >=sys-libs/slang-2 )
28 X? ( x11-libs/libX11
29 x11-libs/libICE
30 x11-libs/libXau
31 x11-libs/libXdmcp
32 x11-libs/libSM )"
33 DEPEND="${RDEPEND}
34 app-arch/xz-utils
35 virtual/pkgconfig
36 nls? ( sys-devel/gettext )"
37
38 S=${WORKDIR}/${MY_P}
39
40 src_configure() {
41 local myscreen=ncurses
42 use slang && myscreen=slang
43
44 econf \
45 --disable-dependency-tracking \
46 $(use_enable nls) \
47 --enable-vfs \
48 $(use_enable kernel_linux vfs-undelfs) \
49 --enable-charset \
50 $(use_with X x) \
51 $(use_enable samba vfs-smb) \
52 $(use_with gpm gpm-mouse) \
53 --with-screen=${myscreen} \
54 $(use_with edit)
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install || die
59 dodoc AUTHORS README
60
61 # fix bug #334383
62 if use kernel_linux && [[ ${EUID} == 0 ]] ; then
63 fowners root:tty /usr/libexec/mc/cons.saver ||
64 die "setting cons.saver's owner failed"
65 fperms g+s /usr/libexec/mc/cons.saver ||
66 die "setting cons.saver's permissions failed"
67 fi
68 }
69
70 pkg_postinst() {
71 elog "To enable exiting to latest working directory,"
72 elog "put this into your ~/.bashrc:"
73 elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
74 }

  ViewVC Help
Powered by ViewVC 1.1.20