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-process/psmisc/psmisc-22.12.ebuild,v 1.2 2010/07/31 00:27:32 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-process/psmisc/psmisc-22.12.ebuild,v 1.2 2010/07/31 00:27:32 ssuominen Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=3 |
5 |
inherit autotools eutils |
6 |
inherit autotools eutils |
6 |
|
7 |
|
7 |
DESCRIPTION="A set of tools that use the proc filesystem" |
8 |
DESCRIPTION="A set of tools that use the proc filesystem" |
Lines 10-16
Link Here
|
10 |
|
11 |
|
11 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
SLOT="0" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
14 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux" |
14 |
IUSE="ipv6 nls selinux X" |
15 |
IUSE="ipv6 nls selinux X" |
15 |
|
16 |
|
16 |
RDEPEND=">=sys-libs/ncurses-5.2-r2 |
17 |
RDEPEND=">=sys-libs/ncurses-5.2-r2 |
Lines 19-33
Link Here
|
19 |
sys-devel/libtool |
20 |
sys-devel/libtool |
20 |
nls? ( sys-devel/gettext )" |
21 |
nls? ( sys-devel/gettext )" |
21 |
|
22 |
|
22 |
src_unpack() { |
23 |
src_prepare() { |
23 |
unpack ${A} |
|
|
24 |
cd "${S}" |
25 |
epatch "${FILESDIR}"/${P}-peekfd.patch |
24 |
epatch "${FILESDIR}"/${P}-peekfd.patch |
26 |
use nls || epatch "${FILESDIR}"/${PN}-22.12-no-nls.patch #193920 |
25 |
use nls || epatch "${FILESDIR}"/${PN}-22.12-no-nls.patch #193920 |
27 |
eautoreconf |
26 |
eautoreconf |
28 |
} |
27 |
} |
29 |
|
28 |
|
30 |
src_compile() { |
29 |
src_configure() { |
31 |
# the nls looks weird, but it's because we actually delete the nls stuff |
30 |
# the nls looks weird, but it's because we actually delete the nls stuff |
32 |
# above when USE=-nls. this should get cleaned up so we dont have to patch |
31 |
# above when USE=-nls. this should get cleaned up so we dont have to patch |
33 |
# it out, but until then, let's not confuse users ... #220787 |
32 |
# it out, but until then, let's not confuse users ... #220787 |
Lines 36-52
Link Here
|
36 |
$(use_enable selinux) \ |
35 |
$(use_enable selinux) \ |
37 |
$(use_enable ipv6) \ |
36 |
$(use_enable ipv6) \ |
38 |
$(use nls && use_enable nls) |
37 |
$(use nls && use_enable nls) |
39 |
|
|
|
40 |
emake || die |
41 |
} |
38 |
} |
42 |
|
39 |
|
43 |
src_install() { |
40 |
src_install() { |
44 |
emake DESTDIR="${D}" install || die |
41 |
emake DESTDIR="${D}" install || die |
45 |
dodoc AUTHORS ChangeLog NEWS README |
42 |
dodoc AUTHORS ChangeLog NEWS README |
46 |
use X || rm "${D}"/usr/bin/pstree.x11 |
43 |
use X || rm "${ED}"/usr/bin/pstree.x11 |
47 |
# fuser is needed by init.d scripts |
44 |
# fuser is needed by init.d scripts |
48 |
dodir /bin |
45 |
dodir /bin |
49 |
mv "${D}"/usr/bin/fuser "${D}"/bin/ || die |
46 |
mv "${ED}"/usr/bin/fuser "${ED}"/bin/ || die |
50 |
# easier to do this than forcing regen of autotools |
47 |
# easier to do this than forcing regen of autotools |
51 |
[[ -e ${D}/usr/bin/peekfd ]] || rm -f "${D}"/usr/share/man/man1/peekfd.1 |
48 |
[[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1 |
52 |
} |
49 |
} |