1 |
flameeyes 09/10/31 11:58:38 |
2 |
|
3 |
Modified: metadata.xml ChangeLog perf-2.6.32_rc5.ebuild |
4 |
Log: |
5 |
Add doc USE flag to build documentation and man pages. |
6 |
(Portage version: 2.2_rc47/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.2 dev-util/perf/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/metadata.xml?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/metadata.xml?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/metadata.xml?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/perf/metadata.xml,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- metadata.xml 30 Oct 2009 19:30:24 -0000 1.1 |
22 |
+++ metadata.xml 31 Oct 2009 11:58:37 -0000 1.2 |
23 |
@@ -12,5 +12,12 @@ |
24 |
package will have to be rebuilt after every version bump of |
25 |
binutils. |
26 |
</flag> |
27 |
+ <flag name="doc"> |
28 |
+ Build documentation and man pages. With thise USE flag disabled, |
29 |
+ the --help parameter for perf and its sub-tools will not be |
30 |
+ available. This is optional because it depends on a few |
31 |
+ documentation handling tools that are not always welcome on user |
32 |
+ systems. |
33 |
+ </flag> |
34 |
</use> |
35 |
</pkgmetadata> |
36 |
|
37 |
|
38 |
|
39 |
1.3 dev-util/perf/ChangeLog |
40 |
|
41 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?rev=1.3&view=markup |
42 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?rev=1.3&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?r1=1.2&r2=1.3 |
44 |
|
45 |
Index: ChangeLog |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v |
48 |
retrieving revision 1.2 |
49 |
retrieving revision 1.3 |
50 |
diff -u -r1.2 -r1.3 |
51 |
--- ChangeLog 30 Oct 2009 22:18:21 -0000 1.2 |
52 |
+++ ChangeLog 31 Oct 2009 11:58:37 -0000 1.3 |
53 |
@@ -1,6 +1,10 @@ |
54 |
# ChangeLog for dev-util/perf |
55 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.2 2009/10/30 22:18:21 flameeyes Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.3 2009/10/31 11:58:37 flameeyes Exp $ |
58 |
+ |
59 |
+ 31 Oct 2009; Diego E. Pettenò <flameeyes@g.o> |
60 |
+ perf-2.6.32_rc5.ebuild, metadata.xml: |
61 |
+ Add doc USE flag to build documentation and man pages. |
62 |
|
63 |
*perf-2.6.32_rc5 (30 Oct 2009) |
64 |
|
65 |
|
66 |
|
67 |
|
68 |
1.3 dev-util/perf/perf-2.6.32_rc5.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/perf-2.6.32_rc5.ebuild?rev=1.3&view=markup |
71 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/perf-2.6.32_rc5.ebuild?rev=1.3&content-type=text/plain |
72 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/perf-2.6.32_rc5.ebuild?r1=1.2&r2=1.3 |
73 |
|
74 |
Index: perf-2.6.32_rc5.ebuild |
75 |
=================================================================== |
76 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.32_rc5.ebuild,v |
77 |
retrieving revision 1.2 |
78 |
retrieving revision 1.3 |
79 |
diff -u -r1.2 -r1.3 |
80 |
--- perf-2.6.32_rc5.ebuild 30 Oct 2009 22:30:51 -0000 1.2 |
81 |
+++ perf-2.6.32_rc5.ebuild 31 Oct 2009 11:58:37 -0000 1.3 |
82 |
@@ -1,6 +1,6 @@ |
83 |
# Copyright 1999-2009 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.32_rc5.ebuild,v 1.2 2009/10/30 22:30:51 flameeyes Exp $ |
86 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.32_rc5.ebuild,v 1.3 2009/10/31 11:58:37 flameeyes Exp $ |
87 |
|
88 |
EAPI=2 |
89 |
|
90 |
@@ -28,11 +28,12 @@ |
91 |
LICENSE="GPL-2" |
92 |
SLOT="0" |
93 |
KEYWORDS="~amd64" |
94 |
-IUSE="+demangle" |
95 |
+IUSE="+demangle +doc" |
96 |
|
97 |
RDEPEND="demangle? ( sys-devel/binutils ) |
98 |
dev-libs/elfutils" |
99 |
-DEPEND="${RDEPEND}" |
100 |
+DEPEND="${RDEPEND} |
101 |
+ doc? ( app-text/asciidoc app-text/xmlto )" |
102 |
|
103 |
if [[ -n ${LINUX_PATH} ]]; then |
104 |
DEPEND="${DEPEND} |
105 |
@@ -93,6 +94,12 @@ |
106 |
prefix="/usr" bindir_relative="sbin" \ |
107 |
CFLAGS_OPTIMIZE="${CFLAGS}" \ |
108 |
LDFLAGS_OPTIMIZE="${LDFLAGS}" || die |
109 |
+ |
110 |
+ if use doc; then |
111 |
+ pushd Documentation |
112 |
+ emake ${makeargs} || die |
113 |
+ popd |
114 |
+ fi |
115 |
} |
116 |
|
117 |
src_test() { |
118 |
@@ -104,9 +111,18 @@ |
119 |
dosbin perf || die |
120 |
|
121 |
dodoc CREDITS || die |
122 |
+ |
123 |
+ if use doc; then |
124 |
+ dodoc Documentation/*.txt || die |
125 |
+ dohtml Documentation/*.html || die |
126 |
+ doman Documentation/*.1 || die |
127 |
+ fi |
128 |
} |
129 |
|
130 |
pkg_postinst() { |
131 |
- elog "We currently provide no documentation with perf; we're sorry" |
132 |
- elog "but there will be no man page nor --help output." |
133 |
+ if ! use doc; then |
134 |
+ elog "Without the doc USE flag you won't get any documentation nor man pages." |
135 |
+ elog "And without man pages, you won't get any --help output for perf and its" |
136 |
+ elog "sub-tools." |
137 |
+ fi |
138 |
} |