Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/lsof: ChangeLog lsof-4.82.ebuild
Date: Mon, 11 May 2009 18:08:33
Message-Id: E1M3ZvM-0001vh-PN@stork.gentoo.org
1 vapier 09/05/11 18:08:24
2
3 Modified: ChangeLog lsof-4.82.ebuild
4 Log:
5 Improve how we past build flags/settings to avoid custom patches.
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.63 sys-process/lsof/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/lsof/ChangeLog?rev=1.63&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/lsof/ChangeLog?rev=1.63&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/lsof/ChangeLog?r1=1.62&r2=1.63
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v
18 retrieving revision 1.62
19 retrieving revision 1.63
20 diff -u -r1.62 -r1.63
21 --- ChangeLog 11 May 2009 06:09:07 -0000 1.62
22 +++ ChangeLog 11 May 2009 18:08:24 -0000 1.63
23 @@ -1,6 +1,9 @@
24 # ChangeLog for sys-process/lsof
25 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.62 2009/05/11 06:09:07 vapier Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.63 2009/05/11 18:08:24 vapier Exp $
28 +
29 + 11 May 2009; Mike Frysinger <vapier@g.o> lsof-4.82.ebuild:
30 + Improve how we past build flags/settings to avoid custom patches.
31
32 *lsof-4.82 (11 May 2009)
33
34
35
36
37 1.2 sys-process/lsof/lsof-4.82.ebuild
38
39 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/lsof/lsof-4.82.ebuild?rev=1.2&view=markup
40 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/lsof/lsof-4.82.ebuild?rev=1.2&content-type=text/plain
41 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/lsof/lsof-4.82.ebuild?r1=1.1&r2=1.2
42
43 Index: lsof-4.82.ebuild
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.82.ebuild,v
46 retrieving revision 1.1
47 retrieving revision 1.2
48 diff -u -r1.1 -r1.2
49 --- lsof-4.82.ebuild 11 May 2009 06:09:07 -0000 1.1
50 +++ lsof-4.82.ebuild 11 May 2009 18:08:24 -0000 1.2
51 @@ -1,8 +1,8 @@
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.82.ebuild,v 1.1 2009/05/11 06:09:07 vapier Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.82.ebuild,v 1.2 2009/05/11 18:08:24 vapier Exp $
56
57 -inherit eutils flag-o-matic fixheadtails toolchain-funcs
58 +inherit flag-o-matic toolchain-funcs
59
60 MY_P=${P/-/_}
61 DESCRIPTION="Lists open files for running Unix processes"
62 @@ -26,24 +26,26 @@
63 unpack ./${MY_P}_src.tar
64 cd "${S}"
65
66 - # now patch the scripts to automate everything
67 - ht_fix_file Configure Customize
68 - touch .neverInv
69 - epatch "${FILESDIR}"/${PN}-4.78-answer-config.patch
70 sed -i \
71 + -e '/LSOF_CFGF="-/s:=":="$LSOF_CFGF :' \
72 + -e '/^LSOF_CFGF=/s:$:" ${CFLAGS} ${CPPFLAGS}":' \
73 + -e "/^LSOF_CFGL=/s:\$:' \$(LDFLAGS)':" \
74 -e "/^LSOF_RANLIB/s:ranlib:$(tc-getRANLIB):" \
75 Configure
76 }
77
78 +yesno() { use $1 && echo y || echo n ; }
79 +target() { use kernel_FreeBSD && echo freebsd || echo linux ; }
80 +
81 src_compile() {
82 use static && append-ldflags -static
83 - use selinux && export LINUX_HASSELINUX=Y
84 - export LSOF_CC=$(tc-getCC)
85 - export LSOF_AR="$(tc-getAR) rc"
86 -
87 - local target="linux"
88 - use kernel_FreeBSD && target=freebsd
89 - ./Configure ${target} || die "configure failed"
90 +
91 + touch .neverInv
92 + LINUX_HASSELINUX=$(yesno selinux) \
93 + LSOF_CC=$(tc-getCC) \
94 + LSOF_AR="$(tc-getAR) rc" \
95 + ./Configure -n $(target) || die
96 +
97 emake DEBUG="" all || die "emake failed"
98 }