forked from calculate/calculate-overlay
Форк mc. Сайт проекта http://mc.redhat-club.org
git-svn-id: http://svn.calculate.ru/overlay@713 c91db197-33c1-4113-bf15-f8a5c547ca64master
parent
be6f371f5a
commit
63187b2048
@ -0,0 +1,2 @@
|
||||
DIST mc-4.6.3.tar.bz2 2379288 RMD160 ec86a2a49d738d5af476d06d5ac1c900fb02b2c9 SHA1 e6955479a95621c4c1a655812116ef1826ec1746 SHA256 4b08cf719f8e63830c5503734ec1e507ecc251042cc203760c89c71fd6030aa7
|
||||
EBUILD mc-4.6.3.ebuild 2408 RMD160 ef7e6e8e29405bddee39f99ffc4393f6ad49d519 SHA1 3542679de74516017cb8a64061a24af651e72c53 SHA256 acc215dba2e8ddf77f8b0c7adcabed307510c12e3d3a8173da1b3a03ae4d8a8f
|
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: Exp $
|
||||
|
||||
EAPI=1
|
||||
inherit flag-o-matic
|
||||
|
||||
DESCRIPTION="GNU Midnight Commander is a s-lang based file manager."
|
||||
HOMEPAGE="http://people.redhat-club.org/slavaz/trac/wiki/ProjectMc"
|
||||
SRC_URI="http://people.redhat-club.org/inf/mc-slavaz/source/${PF}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+7zip -attrs +background +editor ext2undel -dnotify gpm +network nls samba
|
||||
+unicode +vfs X"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2
|
||||
app-arch/zip
|
||||
app-arch/unzip
|
||||
7zip? ( app-arch/p7zip )
|
||||
ext2undel? ( sys-fs/e2fsprogs )
|
||||
gpm? ( sys-libs/gpm )
|
||||
samba? ( net-fs/samba )
|
||||
unicode? ( >=sys-libs/slang-2.1.3 )
|
||||
!unicode? ( sys-libs/ncurses )
|
||||
X? ( x11-libs/libX11
|
||||
x11-libs/libICE
|
||||
x11-libs/libXau
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libSM )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
dev-util/pkgconfig"
|
||||
|
||||
src_compile() {
|
||||
# check for conflicts (currently doesn't compile with --without-vfs)
|
||||
use vfs || {
|
||||
use network || use samba && \
|
||||
die "VFS is required for network or samba support."
|
||||
}
|
||||
|
||||
local myconf="--with-ext2undel --enable-charset"
|
||||
append-flags "-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
|
||||
|
||||
use attrs && {
|
||||
myconf+=" --enable-preserve-attrs"
|
||||
ewarn "'Preserve Attributes' support is currently BROKEN. Use at your own risk."
|
||||
}
|
||||
|
||||
use dnotify && {
|
||||
myconf+=" --enable-dnotify"
|
||||
ewarn "Support for dnotify is currently BROKEN. Use at your own risk."
|
||||
}
|
||||
|
||||
if use samba; then
|
||||
myconf+=" --with-samba --with-configdir=/etc/samba --with-codepagedir=/var/lib/samba/codepages"
|
||||
else
|
||||
myconf+=" --without-samba"
|
||||
fi
|
||||
|
||||
if use unicode; then
|
||||
myconf+=" --enable-utf8 --with-screen=slang"
|
||||
else
|
||||
myconf+=" --disable-utf8 --with-screen=ncurses"
|
||||
ewarn "Non UTF-8 setup is deprecated."
|
||||
ewarn "You are highly encouraged to use UTF-8 compatible system locale."
|
||||
fi
|
||||
|
||||
econf --disable-dependency-tracking \
|
||||
$(use_enable background) \
|
||||
$(use_enable network netcode) \
|
||||
$(use_enable nls) \
|
||||
$(use_with editor edit) \
|
||||
$(use_with ext2undel) \
|
||||
$(use_with gpm gpm-mouse) \
|
||||
$(use_with vfs) \
|
||||
$(use_with X x) \
|
||||
${myconf}
|
||||
|
||||
emake || die "emake failed."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed."
|
||||
dodoc AUTHORS FAQ HACKING MAINTAINERS NEWS README* TODO
|
||||
|
||||
# Install cons.saver setuid to actually work
|
||||
fperms u+s /usr/libexec/mc/cons.saver
|
||||
}
|
Loading…
Reference in new issue