Files
@ bf6f64173507
Branch filter:
Location: portage-overlay.git/dev-util/papi/papi-4.1.1.ebuild - annotation
bf6f64173507
1.2 KiB
application/vnd.gentoo.ebuild
add net-p2p/uhub to overlay
794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 | # Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit multilib
DESCRIPTION="Performance Application Programming Interface"
HOMEPAGE="http://icl.cs.utk.edu/papi/"
SRC_URI="http://icl.cs.utk.edu/projects/papi/downloads/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"
DEPEND=">=dev-util/perfctr-2.6.37"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/${P}/src
src_compile() {
local myconf
if use debug; then
myconf="${myconf} --with-debug=yes"
else
myconf="${myconf} --with-debug=no"
fi
econf ${myconf} \
--with-perfctr-incdir=/usr/include \
--with-perfctr-libdir=/usr/$(get_libdir) \
--with-perfctr-prefix=/usr \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
dodir /usr/$(get_libdir)
# there's something wrong inside those makefiles,
# so lets use the old and ugly way
emake \
DESTDIR="${D}" \
LIBDIR="/usr/$(get_libdir)" \
MANDIR="/usr/share/man" \
install || die "install failed"
}
src_test() {
emake check
emake test || die "initial test failed"
#if use fulltest; then
# ./run_tests.sh || ewarn "some tests failed, continuing anyway"
#fi
}
|