blob: 62df5f50868436a6ee44d4396ea779d2e2a67844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.5.1.ebuild,v 1.7 2004/02/17 04:39:04 tgall Exp $
inherit flag-o-matic eutils
DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
HOMEPAGE="http://www.wi.leidenuniv.nl/~wichert/strace/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha hppa ~mips ~amd64 ~ia64 ppc64"
RESTRICT="nomirror"
DEPEND="virtual/glibc
>=sys-devel/autoconf-2.54"
src_compile() {
# Compile fails with -O3 on sparc but works on x86
if [ "${ARCH}" == "sparc" -o "${ARCH}" == "" ]; then
replace-flags -O[3-9] -O2
fi
filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
epatch ${FILESDIR}/${P}-2.6.patch
# configure is broken by default for sparc and possibly others, regen
# from configure.in
autoconf
./configure --prefix=/usr || die "configure died"
emake || die "make failed"
}
src_install() {
# Can't use make install because it is stupid and
# doesn't make leading directories before trying to
# install. Thus, one would have to make /usr/bin
# and /usr/man/man1 (at least).
# So, we do it by hand.
doman strace.1
dobin strace
dobin strace-graph
dodoc ChangeLog COPYRIGHT CREDITS NEWS PORTING README* TODO
}
|