--- /usr/portage/app-misc/mc/mc-4.6.0-r11.ebuild 2004-10-21 15:10:58.000000000 +0300 +++ mc-4.6.0-r11.ebuild 2004-10-25 14:12:33.629685136 +0300 @@ -7,12 +7,13 @@ 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-3.0.0.patch.bz2" + http://www.spock.mga.com.pl/public/gentoo/${P}-sambalib-3.0.0.patch.bz2 + 7zip? ( Gentoo Mirror )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~ia64 x86 ppc sparc alpha ~mips hppa ~amd64 ~ppc64" -IUSE="gpm nls samba ncurses X slang unicode" +IUSE="gpm nls samba ncurses X slang unicode 7zip" PROVIDE="virtual/editor" @@ -24,9 +25,11 @@ slang? ( >=sys-libs/slang-1.4.9-r1 ) samba? ( >=net-fs/samba-3.0.0 ) unicode? ( >=sys-libs/slang-1.4.9-r1 ) - X? ( virtual/x11 )" + X? ( virtual/x11 ) + 7zip? ( app-arch/p7zip )" src_unpack() { + use 7zip && unpack u7z.zip unpack ${P}.tar.gz cd ${S} @@ -42,6 +45,10 @@ if use unicode && use slang; then epatch ${FILESDIR}/${P}-utf8.patch.bz2 fi + + if use 7zip; then + epatch ${FILESDIR}/${P}-7zip.patch + fi } src_compile() { @@ -83,6 +90,8 @@ } src_install() { + use 7zip && dobin ../u7z/u7z + cat ${FILESDIR}/chdir-4.6.0.gentoo >>\ ${S}/lib/mc-wrapper.sh