mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
gentoo.ebuild: moved to http://repo.or.cz/w/slyfox-gentoo.git
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
3b1070fb3d
commit
55e7db14a5
2
contrib/dist/gentoo/Makefile.am
vendored
2
contrib/dist/gentoo/Makefile.am
vendored
@ -1 +1 @@
|
||||
|
||||
noinst_DATA = README
|
||||
|
39
contrib/dist/gentoo/README
vendored
Normal file
39
contrib/dist/gentoo/README
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
Hi! Currently bleeding-edge mc-9999.ebuild (git)
|
||||
hosts on repo.or.cz in overlay format:
|
||||
|
||||
git://repo.or.cz/slyfox-gentoo.git
|
||||
|
||||
In order to use it you need to perform some steps:
|
||||
|
||||
1. fetch overlay somewhere:
|
||||
$ cd ~/portage/
|
||||
$ git clone git://repo.or.cz/slyfox-gentoo.git
|
||||
|
||||
2. add overlay to your PM:
|
||||
* portage:
|
||||
$ cat /etc/make.conf | grep PORTDIR_OVERLAY
|
||||
PORTDIR_OVERLAY="/home/slyfox/portage/slyfox-gentoo"
|
||||
* paludis:
|
||||
$ cat /etc/paludis/repositories/slyfox-gentoo.conf
|
||||
location = ${ROOT}/home/slyfox/portage/slyfox-gentoo
|
||||
master_repository = gentoo
|
||||
format = ebuild
|
||||
|
||||
3. unmask unkeyworded ebuild:
|
||||
* portage:
|
||||
$ ACCEPT_KEYWORDS="~amd64 **" emerge -pv mc
|
||||
or
|
||||
$ cat /etc/portage/package.keywords | grep app-misc/mc
|
||||
=app-misc/mc-9999 ~amd64 **
|
||||
* paludis:
|
||||
$ cat /etc/paludis/keywords.conf.d/mc.conf
|
||||
=app-misc/mc-9999::slyfox-gentoo ~amd64 *
|
||||
|
||||
4. install ebuild the way you usually do it
|
||||
|
||||
5. update an overlay time to time:
|
||||
$ cd ~/portage/slyfox-gentoo
|
||||
$ git pull
|
||||
|
||||
Bugs/feature requests/patches are welcome: http://midnight-commander.org/
|
||||
Have fun!
|
89
contrib/dist/gentoo/mc-9999.ebuild
vendored
89
contrib/dist/gentoo/mc-9999.ebuild
vendored
@ -1,89 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
inherit autotools flag-o-matic git
|
||||
|
||||
DESCRIPTION="GNU Midnight Commander is a text mode file manager."
|
||||
HOMEPAGE="http://midnight-commander.org/"
|
||||
EGIT_REPO_URI="git://midnight-commander.org/git/mc.git"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS=""
|
||||
|
||||
IUSE="+background +editor ext2undel gpm +network nls samba +vfs X +slang +charset"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.6:2
|
||||
ext2undel? ( sys-fs/e2fsprogs )
|
||||
gpm? ( sys-libs/gpm )
|
||||
samba? ( net-fs/samba )
|
||||
slang? ( >=sys-libs/slang-2.1.3 )
|
||||
!slang? ( 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"
|
||||
|
||||
# needed only for SCM source tree (autopoint uses it)
|
||||
DEPEND="${DEPEND} dev-util/cvs"
|
||||
|
||||
src_unpack() {
|
||||
git_src_unpack
|
||||
cd "${S}"
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# 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=""
|
||||
# TODO: make sure we really need it (bundled samba?)
|
||||
append-flags "-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
|
||||
|
||||
if use samba; then
|
||||
myconf+=" --with-samba --with-configdir=/etc/samba --with-codepagedir=/var/lib/samba/codepages"
|
||||
else
|
||||
myconf+=" --without-samba"
|
||||
fi
|
||||
|
||||
myconf+=" --with-screen=ncurses"
|
||||
use slang && myconf+=" --with-screen=slang"
|
||||
|
||||
econf --disable-dependency-tracking \
|
||||
$(use_enable background) \
|
||||
$(use_enable network netcode) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable charset) \
|
||||
$(use_with editor edit) \
|
||||
$(use_with ext2undel) \
|
||||
$(use_with gpm gpm-mouse) \
|
||||
$(use_with vfs) \
|
||||
$(use_with X x) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed."
|
||||
dodoc doc/AUTHORS doc/COPYING doc/NEWS doc/README* doc/FAQ doc/HACKING doc/MAINTAINERS doc/TODO
|
||||
|
||||
# Install cons.saver setuid to actually work
|
||||
# for more actual info see mc/src/cons.saver.c
|
||||
fowners root:tty /usr/libexec/mc/cons.saver
|
||||
fperms g+s /usr/libexec/mc/cons.saver
|
||||
}
|
Loading…
Reference in New Issue
Block a user