| 1 |
# Copyright 1999-2009 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/pretrace/pretrace-0.4.ebuild,v 1.5 2008/09/25 14:32:29 hawking Exp $
|
| 4 |
|
| 5 |
inherit eutils multilib
|
| 6 |
|
| 7 |
DESCRIPTION="start dynamically linked applications under debugging environment"
|
| 8 |
HOMEPAGE="http://dev.inversepath.com/trac/pretrace"
|
| 9 |
SRC_URI="http://dev.inversepath.com/pretrace/libpretrace-${PV}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~amd64 ~ppc ~x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
S="${WORKDIR}/lib${P}"
|
| 17 |
|
| 18 |
src_unpack() {
|
| 19 |
unpack ${A}
|
| 20 |
cd "${S}"
|
| 21 |
epatch "${FILESDIR}"/${P}--as-needed.diff
|
| 22 |
epatch "${FILESDIR}"/${P}-build.patch #227923
|
| 23 |
}
|
| 24 |
|
| 25 |
src_install() {
|
| 26 |
dodir /usr/bin /usr/share/man/man{3,8}
|
| 27 |
einstall LIBDIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" || die
|
| 28 |
prepalldocs
|
| 29 |
}
|
| 30 |
|
| 31 |
pkg_postinst() {
|
| 32 |
elog "remember to execute ptgenmap after modifying pretrace.conf"
|
| 33 |
}
|