blob: 7da7f5ee8a5d6e02827ee3338667bde2f4eabf71 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ltrace/ltrace-0.3.31.ebuild,v 1.12 2004/06/25 02:39:45 agriffis Exp $
inherit eutils
DESCRIPTION="ltrace shows runtime library call information for dynamically linked executables"
HOMEPAGE="http://packages.debian.org/unstable/utils/ltrace.html"
SRC_URI="mirror://debian/pool/main/l/ltrace/${PN}_${PV}.tar.gz
amd64?( http://gentoo.tamperd.net/distfiles/ltrace-0.3.26-x86_64.tar.bz2
mirror://gentoo/ltrace-0.3.26-x86_64.tar.bz2 )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc -sparc ~alpha ~hppa ~mips ~amd64 ~ia64"
IUSE=""
DEPEND=">=sys-apps/sed-4
virtual/glibc"
src_unpack() {
unpack ${PN}_${PV}.tar.gz ; cd ${S}
if [ "${ARCH}" == "amd64" ]; then
unpack ltrace-0.3.26-x86_64.tar.bz2
fi
epatch ${FILESDIR}/${P}-64bit-fixes.patch.bz2
}
src_compile() {
econf || die
# modify CFLAGS (hopefully in a more time friendly way)
sed -i "s/ -O2 / ${CFLAGS} /" Makefile
emake all || make all || die
}
src_install() {
einstall || die
# documentation
rm -rvf ${D}usr/doc/
dodoc BUGS COPYING debian/changelog README TODO
}
|