From: | "Robin H. Johnson (robbat2)" <robbat2@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: db.eclass |
Date: | Mon, 03 May 2010 23:14:19 |
Message-Id: | 20100503231416.4632B2C3B6@corvid.gentoo.org |
1 | robbat2 10/05/03 23:14:16 |
2 | |
3 | Modified: db.eclass |
4 | Log: |
5 | Bug #275652: Install examples with USE=examples. |
6 | |
7 | Revision Changes Path |
8 | 1.34 eclass/db.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?rev=1.34&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?rev=1.34&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?r1=1.33&r2=1.34 |
13 | |
14 | Index: db.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/db.eclass,v |
17 | retrieving revision 1.33 |
18 | retrieving revision 1.34 |
19 | diff -p -w -b -B -u -u -r1.33 -r1.34 |
20 | --- db.eclass 3 May 2010 22:13:39 -0000 1.33 |
21 | +++ db.eclass 3 May 2010 23:14:16 -0000 1.34 |
22 | @@ -1,11 +1,11 @@ |
23 | # Copyright 1999-2004 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.33 2010/05/03 22:13:39 robbat2 Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.34 2010/05/03 23:14:16 robbat2 Exp $ |
27 | # This is a common location for functions used in the sys-libs/db ebuilds |
28 | # |
29 | # Bugs: pauldv@g.o |
30 | |
31 | -IUSE="doc test" |
32 | +IUSE="doc test examples" |
33 | |
34 | EXPORT_FUNCTIONS src_test |
35 | |
36 | @@ -72,6 +72,20 @@ db_src_install_doc() { |
37 | else |
38 | rm -rf ${D}/usr/docs |
39 | fi |
40 | + |
41 | + db_src_install_examples |
42 | +} |
43 | + |
44 | +db_src_install_examples() { |
45 | + if use examples ; then |
46 | + local langs="c cxx stl" |
47 | + use java && langs="${langs} java" |
48 | + for i in $langs ; do |
49 | + destdir="/usr/share/doc/${PF}/" |
50 | + dodir "${destdir}" |
51 | + cp -ra "${S}/../examples_${i}/" "${D}${destdir}/" |
52 | + done |
53 | + fi |
54 | } |
55 | |
56 | db_src_install_usrbinslot() { |