Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 68037 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-misc/mc/mc-4.6.0-r13.ebuild (-4 / +28 lines)
Lines 4-18 Link Here
4
4
5
inherit flag-o-matic eutils
5
inherit flag-o-matic eutils
6
6
7
U7Z_PV="4.16"
8
U7Z="u7z-${U7Z_PV}beta.tar.bz2"
7
DESCRIPTION="GNU Midnight Commander cli-based file manager"
9
DESCRIPTION="GNU Midnight Commander cli-based file manager"
8
HOMEPAGE="http://www.ibiblio.org/mc/"
10
HOMEPAGE="http://www.ibiblio.org/mc/"
9
SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/managers/${PN}/${P}.tar.gz
11
SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/managers/${PN}/${P}.tar.gz
10
	http://www.spock.mga.com.pl/public/gentoo/${P}-sambalib-3.0.0.patch.bz2"
12
	http://www.spock.mga.com.pl/public/gentoo/${P}-sambalib-3.0.0.patch.bz2
13
	7zip? ( http://sgh.nightmail.ru/files/u7z/${U7Z} )"
11
14
12
LICENSE="GPL-2"
15
LICENSE="GPL-2"
13
SLOT="0"
16
SLOT="0"
14
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
17
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
15
IUSE="gpm nls samba ncurses X slang unicode"
18
IUSE="gpm nls samba ncurses X slang unicode 7zip"
16
19
17
PROVIDE="virtual/editor"
20
PROVIDE="virtual/editor"
18
21
Lines 24-35 Link Here
24
	slang? ( >=sys-libs/slang-1.4.9-r1 )
27
	slang? ( >=sys-libs/slang-1.4.9-r1 )
25
	samba? ( >=net-fs/samba-3.0.0 )
28
	samba? ( >=net-fs/samba-3.0.0 )
26
	unicode? ( >=sys-libs/slang-1.4.9-r1 )
29
	unicode? ( >=sys-libs/slang-1.4.9-r1 )
27
	X? ( virtual/x11 )"
30
	X? ( virtual/x11 )
31
	7zip? ( >=app-arch/p7zip-4.16 )"
28
32
29
DEPEND="${RDEPEND}
33
DEPEND="${RDEPEND}
30
	dev-util/pkgconfig"
34
	dev-util/pkgconfig"
31
35
32
src_unpack() {
36
src_unpack() {
37
	useq 7zip && unpack ${U7Z}
33
	unpack ${P}.tar.gz
38
	unpack ${P}.tar.gz
34
	cd ${S}
39
	cd ${S}
35
40
Lines 40-45 Link Here
40
	epatch ${FILESDIR}/${P}-can-2004-0226-0231-0232.patch.bz2
45
	epatch ${FILESDIR}/${P}-can-2004-0226-0231-0232.patch.bz2
41
	epatch ${FILESDIR}/${P}-can-2004-1004-1005-1092-1176.patch.bz2
46
	epatch ${FILESDIR}/${P}-can-2004-1004-1005-1092-1176.patch.bz2
42
	epatch ${FILESDIR}/${P}-vfs.patch
47
	epatch ${FILESDIR}/${P}-vfs.patch
48
	if useq 7zip; then
49
		epatch ${FILESDIR}/${P}-7zip.patch
50
	fi
43
	epatch ${FILESDIR}/${P}-ftp.patch
51
	epatch ${FILESDIR}/${P}-ftp.patch
44
	epatch ${FILESDIR}/${P}-largefile.patch
52
	epatch ${FILESDIR}/${P}-largefile.patch
45
	epatch ${FILESDIR}/${P}-key.c.patch
53
	epatch ${FILESDIR}/${P}-key.c.patch
Lines 101-106 Link Here
101
	insinto /usr/share/mc
109
	insinto /usr/share/mc
102
	doins ${FILESDIR}/mc.gentoo
110
	doins ${FILESDIR}/mc.gentoo
103
111
112
	if useq 7zip; then
113
		cd ../${U7Z_PV}
114
		exeinto /usr/share/mc/extfs
115
		doexe u7z
116
		dodoc readme.u7z
117
		newdoc ChangeLog ChangeLog.u7z
118
	fi
119
104
	insinto /usr/share/mc/syntax
120
	insinto /usr/share/mc/syntax
105
	doins ${FILESDIR}/ebuild.syntax
121
	doins ${FILESDIR}/ebuild.syntax
106
	cd ${D}/usr/share/mc/syntax
122
	cd ${D}/usr/share/mc/syntax
Lines 118-121 Link Here
118
	einfo "if [ -f /usr/share/mc/mc.gentoo ]; then"
134
	einfo "if [ -f /usr/share/mc/mc.gentoo ]; then"
119
	einfo "	. /usr/share/mc/mc.gentoo"
135
	einfo "	. /usr/share/mc/mc.gentoo"
120
	einfo "fi"
136
	einfo "fi"
121
}
137
	if useq 7zip; then
138
		einfo ""
139
		einfo "You need to remove ~/.mc/bindings or add the following lines"
140
		einfo "to it before '# Manual page' for the 7zip extfs to work"
141
		einfo "regex/\.(7z|7Z)$"
142
		einfo "	View=%view{ascii} 7za l %f"
143
		einfo "	Open=%cd %p#u7z"
144
	fi
145
}

Return to bug 68037