summaryrefslogtreecommitdiff
blob: ecc2685151370d26bc564d70c64647f85999bbea (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
46
47
48
49
50
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.4.93.ebuild,v 1.5 2003/07/12 14:28:13 aliz Exp $

inherit eutils

S=${WORKDIR}/${P}
DESCRIPTION="A usefull diagnostic, instructional, and debugging tool"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
HOMEPAGE="http://www.wi.leidenuniv.nl/~wichert/strace/"

IUSE=""
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 ~ppc ~sparc alpha ~hppa mips"

DEPEND="virtual/glibc >=sys-devel/autoconf-2.54"

src_unpack() {
    unpack ${A}
    cd ${S}
    # the patch change the autoconf dep to 2.54
    epatch ${FILESDIR}/${P}-configure.ac.patch
}

src_compile() {
	# Compile fails with -O3 on  but works on x86, sparc untested
#	if [ "${ARCH}" == "sparc" -o "${ARCH}" == "" ]; then
#		if [ -n "${CFLAGS}" ]; then
#			CFLAGS=`echo ${CFLAGS} | sed -e 's:-O3:-O2:'`
#		fi
#	fi
	# configure is broken by default for sparc and possibly others, regen
	# from configure.in
	autoconf
	./configure --prefix=/usr || die
	emake || die
}

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
}