/[gentoo-x86]/sys-apps/more/more-2.12r.ebuild
Gentoo

Contents of /sys-apps/more/more-2.12r.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 8 10:59:24 2011 UTC (3 years, 1 month ago) by ssuominen
Branch: MAIN
Changes since 1.3: +3 -3 lines
Convert from "useq" to "use".

(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
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.3 2008/03/21 11:22:23 opfer Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="Primitive text file viewer"
8 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
9 SRC_URI="mirror://kernel/linux/utils/util-linux/util-linux-${PV}.tar.bz2"
10 S=${WORKDIR}/util-linux-${PV}
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86-fbsd"
15 IUSE="static nls selinux"
16
17 RDEPEND=">=sys-libs/ncurses-5.2-r2
18 selinux? ( sys-libs/libselinux )
19 !sys-apps/util-linux"
20 DEPEND="${RDEPEND}
21 nls? ( sys-devel/gettext )"
22
23 yesno() { use $1 && echo yes || echo no; }
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28
29 epatch "${FILESDIR}"/${P}-freebsd.patch
30
31 # Enable random features
32 local mconfigs="MCONFIG"
33 sed -i \
34 -e "/^HAVE_SELINUX=/s:no:$(yesno selinux):" \
35 -e "/^DISABLE_NLS=/s:no:$(yesno !nls):" \
36 -e "/^HAVE_KILL=/s:no:yes:" \
37 -e "/^HAVE_SLN=/s:no:yes:" \
38 -e "/^HAVE_TSORT/s:no:yes:" \
39 -e "s:-pipe -O2 \$(CPUOPT) -fomit-frame-pointer:${CFLAGS}:" \
40 -e "s:CPU=.*:CPU=${CHOST%%-*}:" \
41 -e "s:SUIDMODE=.*4755:SUIDMODE=4711:" \
42 ${mconfigs} || die "MCONFIG sed"
43 }
44
45 src_compile() {
46 use static && append-ldflags -static
47 export CC="$(tc-getCC)"
48
49 econf || die "configure failed"
50 emake -C lib xstrncpy.o || die "emake xstrncpy.o failed"
51 emake -C text-utils more || die "emake more failed"
52 }
53
54 src_install() {
55 exeinto /bin
56 doexe text-utils/more || die
57 doman text-utils/more.1 || die
58 dodoc HISTORY MAINTAINER README VERSION
59 }

  ViewVC Help
Powered by ViewVC 1.1.20