From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IazSa-0006GD-EI for garchives@archives.gentoo.org; Thu, 27 Sep 2007 19:55:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l8RJlBFu024436; Thu, 27 Sep 2007 19:47:11 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l8RJlABF024412 for ; Thu, 27 Sep 2007 19:47:10 GMT Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id CB41864D0E for ; Thu, 27 Sep 2007 19:47:09 +0000 (UTC) Received: from betelgeuse by stork.gentoo.org with local (Exim 4.60) (envelope-from ) id 1IazKG-0006BT-Ih for gentoo-commits@lists.gentoo.org; Thu, 27 Sep 2007 19:47:08 +0000 From: "Petteri Raty (betelgeuse)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, betelgeuse@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: java-utils-2.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: java-utils-2.eclass X-VCS-Directories: eclass X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Raty Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: Sender: Petteri Raty Date: Thu, 27 Sep 2007 19:47:08 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@gentoo.org X-Archives-Salt: c094765b-524c-475c-bd3a-3a77c080f5cb X-Archives-Hash: 73c38ab379863c4c7730719c811a7ea6 betelgeuse 07/09/27 19:47:08 Modified: java-utils-2.eclass Log: Add --subdir option to java-pkg_doexamples. Revision Changes Path 1.93 eclass/java-utils-2.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-utils-2.eclass?rev=1.93&view=markup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-utils-2.eclass?rev=1.93&content-type=text/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-utils-2.eclass?r1=1.92&r2=1.93 Index: java-utils-2.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v retrieving revision 1.92 retrieving revision 1.93 diff -u -r1.92 -r1.93 --- java-utils-2.eclass 5 Aug 2007 08:17:05 -0000 1.92 +++ java-utils-2.eclass 27 Sep 2007 19:47:08 -0000 1.93 @@ -6,7 +6,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.92 2007/08/05 08:17:05 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.93 2007/09/27 19:47:08 betelgeuse Exp $ # ----------------------------------------------------------------------------- # @eclass-begin @@ -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}" -- gentoo-commits@gentoo.org mailing list