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

Collapse All | Expand All

(-)more-2.12r.ebuild.orig (-6 / +9 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/more/more-2.12r.ebuild,v 1.4 2011/07/08 10:59:24 ssuominen Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/more/more-2.12r.ebuild,v 1.4 2011/07/08 10:59:24 ssuominen Exp $
4
4
5
EAPI=2
6
5
inherit eutils flag-o-matic
7
inherit eutils flag-o-matic
6
8
7
DESCRIPTION="Primitive text file viewer"
9
DESCRIPTION="Primitive text file viewer"
Lines 14-31 Link Here
14
KEYWORDS="~x86-fbsd"
16
KEYWORDS="~x86-fbsd"
15
IUSE="static nls selinux"
17
IUSE="static nls selinux"
16
18
17
RDEPEND=">=sys-libs/ncurses-5.2-r2
19
RDEPEND="!static? ( >=sys-libs/ncurses-5.2-r2 )
18
	selinux? ( sys-libs/libselinux )
20
	selinux? ( sys-libs/libselinux )
19
	!sys-apps/util-linux"
21
	!sys-apps/util-linux"
20
DEPEND="${RDEPEND}
22
DEPEND="${RDEPEND}
23
	static? ( >=sys-libs/ncurses-5.2-r2[static-libs] )
21
	nls? ( sys-devel/gettext )"
24
	nls? ( sys-devel/gettext )"
22
25
23
yesno() { use $1 && echo yes || echo no; }
26
yesno() { use $1 && echo yes || echo no; }
24
27
25
src_unpack() {
28
src_prepare() {
26
	unpack ${A}
27
	cd "${S}"
28
29
	epatch "${FILESDIR}"/${P}-freebsd.patch
29
	epatch "${FILESDIR}"/${P}-freebsd.patch
30
30
31
	# Enable random features
31
	# Enable random features
Lines 42-52 Link Here
42
		${mconfigs} || die "MCONFIG sed"
42
		${mconfigs} || die "MCONFIG sed"
43
}
43
}
44
44
45
src_compile() {
45
src_configure() {
46
	use static && append-ldflags -static
46
	use static && append-ldflags -static
47
	export CC="$(tc-getCC)"
47
	export CC="$(tc-getCC)"
48
48
49
	econf || die "configure failed"
49
	econf || die "configure failed"
50
}
51
52
src_compile() {
50
	emake -C lib xstrncpy.o || die "emake xstrncpy.o failed"
53
	emake -C lib xstrncpy.o || die "emake xstrncpy.o failed"
51
	emake -C text-utils more || die "emake more failed"
54
	emake -C text-utils more || die "emake more failed"
52
}
55
}

Return to bug 432410