1 |
robbat2 10/05/11 08:19:44 |
2 |
|
3 |
Modified: db.eclass |
4 |
Log: |
5 |
Bug #318389: check for each examples directory before trying to use it. Also avoid QA warning on "use java" on ebuilds where java was not available. |
6 |
|
7 |
Revision Changes Path |
8 |
1.39 eclass/db.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?rev=1.39&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?rev=1.39&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?r1=1.38&r2=1.39 |
13 |
|
14 |
Index: db.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/db.eclass,v |
17 |
retrieving revision 1.38 |
18 |
retrieving revision 1.39 |
19 |
diff -p -w -b -B -u -u -r1.38 -r1.39 |
20 |
--- db.eclass 11 May 2010 08:00:20 -0000 1.38 |
21 |
+++ db.eclass 11 May 2010 08:19:44 -0000 1.39 |
22 |
@@ -1,6 +1,6 @@ |
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.38 2010/05/11 08:00:20 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.39 2010/05/11 08:19:44 robbat2 Exp $ |
27 |
# This is a common location for functions used in the sys-libs/db ebuilds |
28 |
# |
29 |
# Bugs: pauldv@g.o |
30 |
@@ -79,11 +79,16 @@ db_src_install_doc() { |
31 |
db_src_install_examples() { |
32 |
if use examples ; then |
33 |
local langs="c cxx stl" |
34 |
- use java && langs="${langs} java" |
35 |
+ [[ "${IUSE/java}" != "${IUSE}" ]] \ |
36 |
+ && use java \ |
37 |
+ && langs="${langs} java" |
38 |
for i in $langs ; do |
39 |
destdir="/usr/share/doc/${PF}/" |
40 |
+ src="${S}/../examples_${i}/" |
41 |
+ if [ -f "${src}" ]; then |
42 |
dodir "${destdir}" |
43 |
- cp -ra "${S}/../examples_${i}/" "${D}${destdir}/" |
44 |
+ cp -ra "${src}" "${D}${destdir}/" |
45 |
+ fi |
46 |
done |
47 |
fi |
48 |
} |