diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-05-03 23:14:16 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-05-03 23:14:16 +0000 |
commit | dc7aa1c66b40658923fdac1bd722692d278fbdb3 (patch) | |
tree | 30db2157a0ae79b3cda33bc70730409ee26afa3a /eclass | |
parent | Remove USE="hal" wrt #313391. Tested with Optiarc DVD RW AD-72000S. (diff) | |
download | historical-dc7aa1c66b40658923fdac1bd722692d278fbdb3.tar.gz historical-dc7aa1c66b40658923fdac1bd722692d278fbdb3.tar.bz2 historical-dc7aa1c66b40658923fdac1bd722692d278fbdb3.zip |
Bug #275652: Install examples with USE=examples.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/db.eclass | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/eclass/db.eclass b/eclass/db.eclass index 49a4e0d9ce53..726777ec072f 100644 --- a/eclass/db.eclass +++ b/eclass/db.eclass @@ -1,11 +1,11 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.33 2010/05/03 22:13:39 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.34 2010/05/03 23:14:16 robbat2 Exp $ # This is a common location for functions used in the sys-libs/db ebuilds # # Bugs: pauldv@gentoo.org -IUSE="doc test" +IUSE="doc test examples" EXPORT_FUNCTIONS src_test @@ -72,6 +72,20 @@ db_src_install_doc() { else rm -rf ${D}/usr/docs fi + + db_src_install_examples +} + +db_src_install_examples() { + if use examples ; then + local langs="c cxx stl" + use java && langs="${langs} java" + for i in $langs ; do + destdir="/usr/share/doc/${PF}/" + dodir "${destdir}" + cp -ra "${S}/../examples_${i}/" "${D}${destdir}/" + done + fi } db_src_install_usrbinslot() { |