From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libhugetlbfs/
Date: Mon, 14 Dec 2015 19:22:19 +0000 (UTC) [thread overview]
Message-ID: <1450120924.eafb5bff4795e5a83122ebcbfc37b86607119115.vapier@gentoo> (raw)
commit: eafb5bff4795e5a83122ebcbfc37b86607119115
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 14 19:19:48 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Dec 14 19:22:04 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eafb5bff
sys-libs/libhugetlbfs: make perl support optional #554688
sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild | 11 +++++++++--
sys-libs/libhugetlbfs/metadata.xml | 3 +++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild b/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild
index 4eebe01..960ad68 100644
--- a/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild
+++ b/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild
@@ -17,10 +17,10 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="static-libs test"
+IUSE="perl static-libs test"
DEPEND="test? ( ${PYTHON_DEPS} )"
-RDEPEND="dev-lang/perl:="
+RDEPEND="perl? ( dev-lang/perl:= )"
src_prepare() {
perl_set_version
@@ -53,6 +53,13 @@ src_install() {
default
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a
rm "${ED}"/usr/bin/oprofile* || die
+ if ! use perl ; then
+ rm -r \
+ "${ED}"/usr/bin/cpupcstat \
+ "${ED}"/usr/share/man/man8/cpupcstat.8 \
+ "${ED}/${VENDOR_LIB}" \
+ || die
+ fi
}
src_test_alloc_one() {
diff --git a/sys-libs/libhugetlbfs/metadata.xml b/sys-libs/libhugetlbfs/metadata.xml
index d1332ae..63e8fba 100644
--- a/sys-libs/libhugetlbfs/metadata.xml
+++ b/sys-libs/libhugetlbfs/metadata.xml
@@ -2,6 +2,9 @@
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<herd>base-system</herd>
+<use>
+ <flag name='perl'>Install the cpupcstat tool and some perl modules</flag>
+</use>
<upstream>
<remote-id type='github'>libhugetlbfs/libhugetlbfs</remote-id>
<remote-id type='sourceforge'>libhugetlbfs</remote-id>
next reply other threads:[~2015-12-14 19:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 19:22 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-27 11:25 [gentoo-commits] repo/gentoo:master commit in: sys-libs/libhugetlbfs/ Sam James
2022-05-07 7:17 Sam James
2022-04-14 8:22 Yixun Lan
2021-05-14 22:14 David Seifert
2020-09-09 21:43 Thomas Deutschmann
2020-09-02 16:20 Thomas Deutschmann
2020-09-02 16:20 Thomas Deutschmann
2019-09-09 6:04 Lars Wendler
2019-09-08 10:45 Lars Wendler
2019-09-08 10:45 Lars Wendler
2018-09-19 9:36 Lars Wendler
2015-12-14 19:22 Mike Frysinger
2015-12-14 19:22 Mike Frysinger
2015-12-14 19:22 Mike Frysinger
2015-12-12 12:44 Andreas Hüttel
2015-09-26 8:21 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450120924.eafb5bff4795e5a83122ebcbfc37b86607119115.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox