Add --subdir option to java-pkg_doexamples
Petteri Räty <[email protected]>
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Message-ID | <[email protected]> |
Patch attached. Needed for java-gnome because the examples are in the tests subdirectory with other stuff but the path to .glade file is hardcoded in the .java file and as such need for this. See https://overlays.gentoo.org/svn/proj/java/testcases/dev-java/java-gnome/EXAMPLES Regards, Petteri
examples-subdir.patch
(text/plain, 927 B)
Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.92
diff -u -r1.92 java-utils-2.eclass
--- java-utils-2.eclass 5 Aug 2007 08:17:05 -0000 1.92
+++ java-utils-2.eclass 27 Sep 2007 19:39:01 -0000
@@ -197,6 +197,7 @@
# java-pkg_doexamples demo
# java-pkg_doexamples demo/* examples/*
#
+# @param --subdir - If the examples need a certain directory structure
# @param $* - list of files to install
# ------------------------------------------------------------------------------
java-pkg_doexamples() {
@@ -207,6 +208,12 @@
java-pkg_check-phase install
local dest=/usr/share/doc/${PF}/examples
+ if [[ ${1} == --subdir ]]; then
+ local dest=${dest}/${2}
+ dodir ${dest}
+ shift 2
+ fi
+
if [[ ${#} = 1 && -d ${1} ]]; then
( # dont want to pollute calling env
insinto "${dest}"
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG/AiKcxLzpIGCsLQRAsEnAJ0VyPZM+wd2dgfLRsjY+q+DqCUoXACbB7dY sHa5AT8wcW9QvbWYxMstIZ0= =Y4NJ -----END PGP SIGNATURE-----