1 |
williamh 12/01/10 22:19:09 |
2 |
|
3 |
Modified: kmod-9999.ebuild |
4 |
Log: |
5 |
add a doc use flag for the api documentation |
6 |
|
7 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.7 sys-apps/kmod/kmod-9999.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?rev=1.7&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?rev=1.7&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?r1=1.6&r2=1.7 |
15 |
|
16 |
Index: kmod-9999.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild,v |
19 |
retrieving revision 1.6 |
20 |
retrieving revision 1.7 |
21 |
diff -u -r1.6 -r1.7 |
22 |
--- kmod-9999.ebuild 9 Jan 2012 16:01:44 -0000 1.6 |
23 |
+++ kmod-9999.ebuild 10 Jan 2012 22:19:09 -0000 1.7 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2012 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild,v 1.6 2012/01/09 16:01:44 williamh Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild,v 1.7 2012/01/10 22:19:09 williamh Exp $ |
29 |
|
30 |
EAPI=4 |
31 |
|
32 |
@@ -20,18 +20,26 @@ |
33 |
|
34 |
LICENSE="LGPL-2" |
35 |
SLOT="0" |
36 |
-IUSE="+compat debug lzma static-libs +tools zlib" |
37 |
+IUSE="+compat doc debug lzma static-libs +tools zlib" |
38 |
|
39 |
REQUIRED_USE="compat? ( tools )" |
40 |
|
41 |
-DEPEND="compat? ( !!sys-apps/module-init-tools ) |
42 |
+COMMON_DEPEND="compat? ( !!sys-apps/module-init-tools ) |
43 |
lzma? ( app-arch/xz-utils ) |
44 |
zlib? ( sys-libs/zlib )" |
45 |
-RDEPEND="${DEPEND}" |
46 |
+ |
47 |
+DEPEND="${COMMON_DEPEND} |
48 |
+ doc? ( dev-util/gtk-doc )" |
49 |
+RDEPEND="${COMMON_DEPEND}" |
50 |
|
51 |
src_prepare() |
52 |
{ |
53 |
if [ ! -e configure ]; then |
54 |
+ if use doc; then |
55 |
+ gtkdocize --copy --docdir libkmod/docs || die "gtkdocize failed" |
56 |
+ else |
57 |
+ touch libkmod/docs/gtk-doc.make |
58 |
+ fi |
59 |
eautoreconf |
60 |
else |
61 |
elibtoolize |
62 |
@@ -42,6 +50,7 @@ |
63 |
{ |
64 |
econf \ |
65 |
$(use_enable debug) \ |
66 |
+ $(use_enable doc gtk-doc) \ |
67 |
$(use_with lzma xz) \ |
68 |
$(use_enable static-libs static) \ |
69 |
$(use_enable tools) \ |
70 |
@@ -56,7 +65,7 @@ |
71 |
find "${D}" -name libkmod.la -delete |
72 |
|
73 |
if use compat && use tools; then |
74 |
- dodir /sbin |
75 |
+ dodir /sbin |
76 |
for cmd in depmod insmod lsmod modinfo modprobe rmmod; do |
77 |
dosym /usr/bin/kmod /sbin/$cmd |
78 |
done |