summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2003-09-21 15:50:41 +0000
committerHeinrich Wendel <lanius@gentoo.org>2003-09-21 15:50:41 +0000
commit98f2ef6b4c7ca450f51c01b13517f231784efbeb (patch)
tree39a4c6f0867791354eab1a8d6ad3c664f5546c52 /app-misc
parentchangelog ... (diff)
downloadgentoo-2-98f2ef6b4c7ca450f51c01b13517f231784efbeb.tar.gz
gentoo-2-98f2ef6b4c7ca450f51c01b13517f231784efbeb.tar.bz2
gentoo-2-98f2ef6b4c7ca450f51c01b13517f231784efbeb.zip
changelog ...
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/mc/Manifest2
-rw-r--r--app-misc/mc/files/digest-mc-4.6.0-r32
-rw-r--r--app-misc/mc/mc-4.6.0-r3.ebuild97
3 files changed, 100 insertions, 1 deletions
diff --git a/app-misc/mc/Manifest b/app-misc/mc/Manifest
index 614f225d0473..d4415bdd027e 100644
--- a/app-misc/mc/Manifest
+++ b/app-misc/mc/Manifest
@@ -1,7 +1,7 @@
MD5 d2d5359c2165abc5518cc77b2c3982c7 ChangeLog 4766
MD5 b392f5ff63cbd87230fa3798418fa22c mc-4.5.55-r7.ebuild 1973
MD5 4a0f9fcbb84e629fb68e563eb0d79814 mc-4.6.0-r2.ebuild 2308
-MD5 c5b3e72db36ae59101c751443f8640c2 mc-4.6.0-r3.ebuild 2508
+MD5 a462a2fc9c8400c25663d25159f5bc70 mc-4.6.0-r3.ebuild 2506
MD5 9f528fa7b6b4d2c202ce5f4e3a5173ba files/chdir-4.6.0.gentoo 159
MD5 d8853d9a555c715676945a15c98030c1 files/digest-mc-4.5.55-r7 125
MD5 8a984e82187b67b6f31c45005ea0ba3d files/digest-mc-4.6.0-r2 61
diff --git a/app-misc/mc/files/digest-mc-4.6.0-r3 b/app-misc/mc/files/digest-mc-4.6.0-r3
new file mode 100644
index 000000000000..cdfb5ed83449
--- /dev/null
+++ b/app-misc/mc/files/digest-mc-4.6.0-r3
@@ -0,0 +1,2 @@
+MD5 70804dc9e2049e24f294ff7090a82a12 mc-4.6.0.tar.gz 3727676
+MD5 3378ef7b8f4029f7aa4ee6944694cf1f mc-4.6.0-sambalib.patch.bz2 337051
diff --git a/app-misc/mc/mc-4.6.0-r3.ebuild b/app-misc/mc/mc-4.6.0-r3.ebuild
new file mode 100644
index 000000000000..f458093e4e4f
--- /dev/null
+++ b/app-misc/mc/mc-4.6.0-r3.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.6.0-r3.ebuild,v 1.1 2003/09/21 15:50:37 lanius Exp $
+
+IUSE="gpm nls samba ncurses X slang"
+
+S=${WORKDIR}/${P}
+DESCRIPTION="GNU Midnight Commander cli-based file manager"
+HOMEPAGE="http://www.ibiblio.org/mc/"
+SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/managers/${PN}/${P}.tar.gz
+ http://www.spock.mga.com.pl/public/gentoo/${P}-sambalib.patch.bz2"
+
+DEPEND=">=sys-fs/e2fsprogs-1.19
+ ncurses? ( >=sys-libs/ncurses-5.2-r5 )
+ =dev-libs/glib-2*
+ >=sys-libs/pam-0.72
+ gpm? ( >=sys-libs/gpm-1.19.3 )
+ slang? ( >=sys-libs/slang-1.4.2 )
+ samba? ( >=net-fs/samba-2.2.3a-r1 )
+ X? ( virtual/x11 )"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ epatch ${DISTDIR}/mc-4.6.0-sambalib.patch.bz2
+ epatch ${FILESDIR}/mc-4.6.0-find.patch
+}
+
+src_compile() {
+ local myconf=""
+
+ if ! use slang && ! use ncurses
+ then
+ myconf="${myconf} --with-screen=mcslang"
+ elif
+ use ncurses && ! use slang
+ then
+ myconf="${myconf} --with-screen=ncurses"
+ else
+ use slang && myconf="${myconf} --with-screen=slang"
+ fi
+
+ use gpm \
+ && myconf="${myconf} --with-gpm-mouse" \
+ || myconf="${myconf} --without-gpm-mouse"
+
+ use nls \
+ && myconf="${myconf} --with-included-gettext" \
+ || myconf="${myconf} --disable-nls"
+
+ use X \
+ && myconf="${myconf} --with-x" \
+ || myconf="${myconf} --without-x"
+
+ use samba \
+ && myconf="${myconf} --with-samba --with-configdir=/etc/samba
+ --with-codepagedir=/var/lib/samba/codepages" \
+ || myconf="${myconf} --without-samba"
+
+ econf \
+ --with-vfs \
+ --with-gnu-ld \
+ --with-ext2undel \
+ --with-edit \
+ --enable-charset \
+ ${myconf} || die
+
+ # bug 27212
+ sed -i '/#define HAVE_SYS_CAPABILITY_H 1/a#define _LINUX_VFS_H' vfs/samba/include/config.h
+
+ emake || die
+}
+
+src_install() {
+ cat ${FILESDIR}/chdir-4.6.0.gentoo >>\
+ ${S}/lib/mc-wrapper.sh
+
+ einstall || die
+
+ dodoc ABOUT-NLS COPYING* ChangeLog AUTHORS MAINTAINERS FAQ INSTALL* NEWS README*
+
+ insinto /usr/share/mc
+ doins ${FILESDIR}/mc.gentoo
+}
+
+pkg_postinst() {
+ einfo "Add the following line to your ~/.bashrc to"
+ einfo "allow mc to chdir to it's latest working dir at exit"
+ einfo ""
+ einfo "# Midnight Commander chdir enhancement"
+ einfo "if [ -f /usr/share/mc/mc.gentoo ]; then"
+ einfo " . /usr/share/mc/mc.gentoo"
+ einfo "fi"
+}