diff options
author | 2009-12-19 13:14:29 +0000 | |
---|---|---|
committer | 2009-12-19 13:14:29 +0000 | |
commit | 8f92461c047ba9115f238e63e2609368f03f4664 (patch) | |
tree | 9054c38402c9c3d5020da51dc074178857ed3fa8 /dev-util | |
parent | amd64 stable, bug 289072 (diff) | |
download | historical-8f92461c047ba9115f238e63e2609368f03f4664.tar.gz historical-8f92461c047ba9115f238e63e2609368f03f4664.tar.bz2 historical-8f92461c047ba9115f238e63e2609368f03f4664.zip |
Version bump.
Package-Manager: portage-2.2_rc60/cvs/Linux x86_64
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/perf/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/perf/Manifest | 10 | ||||
-rw-r--r-- | dev-util/perf/perf-2.6.33_rc1.ebuild | 131 |
3 files changed, 144 insertions, 5 deletions
diff --git a/dev-util/perf/ChangeLog b/dev-util/perf/ChangeLog index a45c391cd3ef..a7fae3295cf2 100644 --- a/dev-util/perf/ChangeLog +++ b/dev-util/perf/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/perf # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.7 2009/12/04 16:33:24 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.8 2009/12/19 13:14:29 flameeyes Exp $ + +*perf-2.6.33_rc1 (19 Dec 2009) + + 19 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org> + +perf-2.6.33_rc1.ebuild: + Version bump. *perf-2.6.32 (04 Dec 2009) diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest index 246509fb788c..759c92c2b588 100644 --- a/dev-util/perf/Manifest +++ b/dev-util/perf/Manifest @@ -2,13 +2,15 @@ Hash: SHA1 DIST linux-2.6.32.tar.bz2 64424138 RMD160 b93742cbaf8174f2200d2dbef0d47a26c618039c SHA1 410b4fc818023bfef60064e973ff0ab46d3bfb19 SHA256 5099786d80b8407d98a619df00209c2353517f22d804fdd9533b362adcb4504e +DIST patch-2.6.33-rc1.bz2 9848049 RMD160 fb9ab238ea7cd519e6e938ef2847fe4241b98dfc SHA1 a8f010b895fff8a381139f1525aa5300c51ede18 SHA256 a543f05f237dbdf4deecb8f9f2f0cc518cb597afac1355cdc709179f304381d2 EBUILD perf-2.6.32.ebuild 3487 RMD160 f86f2e8878b280aee1fa0a4ff2eb5f9f00da335d SHA1 f9c016bb6edf5c41aa8418f30aaaf24dab07c566 SHA256 312862ca7008b1a38a3b16b98b7a57f1af89ab4c4892de6c47811f0756081560 -MISC ChangeLog 1561 RMD160 9c75aac45b7ad77b683dae6d180ad895521b9a88 SHA1 d253660456fe777010818ad1115a49f0c8ae56a3 SHA256 2731d641d6c4a6720c82bce12fdf6d5d82479247352ad82144173160c43de0ff +EBUILD perf-2.6.33_rc1.ebuild 3446 RMD160 810f696b41bac387008a4ad3907776a88b74ab9b SHA1 fb1eb134621ee0b92c530aff71e42f52efa55fbe SHA256 e747ccbc8ae62a55e46389c72864c59153cc825ec1a003bb283f3206ea39db28 +MISC ChangeLog 1693 RMD160 52e085b295f7a98195c2da3046f43a3fa702f88d SHA1 199611381cbb038d39069bd5e68a15fb7cde592e SHA256 00e0ec183423eb8b3ca0bf5de486e0849ebaa13ba44a897e3fdf51ab9e096ab4 MISC metadata.xml 817 RMD160 333bacd0646c4aa7c16cc1209cd9032f5e7b2fed SHA1 c2bb6e9042768acd4a396f1d878ff3f29f389740 SHA256 77b02a80478445f267b4fd90809cebc2cb1fa7f2b4c8b31986b0bac9e0ec2b1d -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) -iEYEARECAAYFAksZOdAACgkQAiZjviIA2XisiQCeN10goaC3PuCZO7rvYR9jLYL5 -b7MAn3ihlFkB+gVUDfE9OJItS7Cm11Ev -=gf/m +iEYEARECAAYFAkss0bsACgkQAiZjviIA2XjHdACcCRC5yBCNIKwWtC8c5+U8SDF4 +zwEAnicLRBrZ+qKcfXWsh0KlXi/Cytbk +=Mfa1 -----END PGP SIGNATURE----- diff --git a/dev-util/perf/perf-2.6.33_rc1.ebuild b/dev-util/perf/perf-2.6.33_rc1.ebuild new file mode 100644 index 000000000000..82d4b7d642a9 --- /dev/null +++ b/dev-util/perf/perf-2.6.33_rc1.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.33_rc1.ebuild,v 1.1 2009/12/19 13:14:29 flameeyes Exp $ + +EAPI=2 + +inherit versionator eutils toolchain-funcs linux-info + +MY_PV="${PV/_/-}" +MY_PV="${MY_PV/-pre/-git}" + +DESCRIPTION="Userland tools for Linux Performance Counters" +HOMEPAGE="http://perf.wiki.kernel.org/" + +LINUX_V=$(get_version_component_range 1-2) + +if [ ${PV/_rc} != ${PV} ]; then + LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1)) + PATCH_VERSION=$(get_version_component_range 1-3) + LINUX_PATCH=patch-${PV//_/-}.bz2 + SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} + mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" +else + LINUX_VER=${PV} +fi + +LINUX_SOURCES=linux-${LINUX_VER}.tar.bz2 +SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+demangle +doc" + +RDEPEND="demangle? ( sys-devel/binutils ) + dev-libs/elfutils" +DEPEND="${RDEPEND} + ${LINUX_PATH+dev-util/patchutils} + doc? ( app-text/asciidoc app-text/xmlto )" + +S="${WORKDIR}/linux-${LINUX_VER}/tools/perf" + +CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" + +src_unpack() { + local _tarpattern= + local _filterdiff= + for _pattern in {tools/perf,include,lib,"arch/*/include"}; do + _tarpattern="${_tarpattern} linux-${LINUX_VER}/${_pattern}" + _filterdiff="${_filterdiff} -i ${_pattern}/*" + done + + # We expect the tar implementation to support the -j option (both + # GNU tar and libarchive's tar support that). + ebegin "Unpacking partial source tarball" + tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} ${_tarpattern} + eend $? || die "tar failed" + + ebegin "Filtering partial source patch" + filterdiff ${_filterdiff} -z "${DISTDIR}"/${LINUX_PATCH} > ${P}.patch || die + eend $? || die "filterdiff failed" + + MY_A= + for _AFILE in ${A}; do + [[ ${_AFILE} == ${LINUX_SOURCES} ]] && continue + [[ ${_AFILE} == ${LINUX_PATCH} ]] && continue + MY_A="${MY_A} ${_AFILE}" + done + [[ -n ${MY_A} ]] && unpack ${MY_A} +} + +src_prepare() { + # Drop some upstream too-developer-oriented flags and fix the + # Makefile in general + sed -i \ + -e 's:-Werror::' \ + -e 's:-ggdb3::' \ + -e 's:-fstack-protector-all::' \ + -e 's:^LDFLAGS =:EXTLIBS +=:' \ + -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \ + -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \ + -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \ + "${S}"/Makefile + + if [[ -n ${LINUX_PATCH} ]]; then + epatch "${WORKDIR}"/${P}.patch + fi +} + +src_compile() { + local makeargs= + + use demangle || makeargs="${makeargs} NO_DEMANGLE= " + + emake ${makeargs} \ + CC="$(tc-getCC)" AR="$(tc-getAR)" \ + prefix="/usr" bindir_relative="sbin" \ + CFLAGS_OPTIMIZE="${CFLAGS}" \ + LDFLAGS_OPTIMIZE="${LDFLAGS}" || die + + if use doc; then + pushd Documentation + emake ${makeargs} || die + popd + fi +} + +src_test() { + : +} + +src_install() { + # Don't use make install or it'll be re-building the stuff :( + dobin perf || die + + dodoc CREDITS || die + + if use doc; then + dodoc Documentation/*.txt || die + dohtml Documentation/*.html || die + doman Documentation/*.1 || die + fi +} + +pkg_postinst() { + if ! use doc; then + elog "Without the doc USE flag you won't get any documentation nor man pages." + elog "And without man pages, you won't get any --help output for perf and its" + elog "sub-tools." + fi +} |